bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redifine make-backup-file-name has no effect


From: Eli Zaretskii
Subject: Re: Redifine make-backup-file-name has no effect
Date: Mon, 29 Oct 2001 19:01:22 +0200

> From: gerd.moellmann@t-online.de (Gerd Moellmann)
> Date: 29 Oct 2001 15:20:12 +0100
> 
> Thanks, Jan.  Alas, I'm not sure what the right fix is here because
> I'm not sure from the docs if a make-backup-file-name-function is
> supposed to return a file name including versions or not.  There are
> indirect hints that it might have to return file names with versions,
> like the code of file-newest-backup using file-name-sans-versions,
> but not enough to be sure.
> 
> If it's supposed to do that, I think the fix would be
> 
> *** files.el  2001/10/29 14:13:31     1.532
> --- files.el  2001/10/29 14:13:50
> ***************
> *** 2411,2416 ****
> --- 2411,2417 ----
>       (if handler
>       (funcall handler 'find-backup-file-name fn)
>         (if (or (eq version-control 'never)
> +           (not (null make-backup-file-name-function))
>             ;; We don't support numbered backups on plain MS-DOS
>             ;; when long file names are unavailable.
>             (and (eq system-type 'ms-dos)

FWIW, I think Gerd's solution is correct.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]