GNU bug report logs -
#30407
dired-diff ignores backup-directory-alist
Previous Next
Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Date: Sat, 10 Feb 2018 01:59:01 UTC
Severity: minor
Merged with 24474
Found in version 25.1
Fixed in version 26.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
dired-diff prompts with
Diff p with (default !home!jidanni!org!debconf!p.~8~): ~/org/debconf/ #WRONG
Diff p with (default ~/.backups/!home!jidanni!org!debconf!p.~8~): ~/org/debconf/ #Correct
when in .emacs the user does
(setq
auto-save-list-file-prefix "~/.backups/.saves-";less clutter in $HOME
backup-directory-alist '((".*" . "~/.backups/"))
backup-by-copying-when-linked t ;don't destroy other hard links
backup-by-copying-when-mismatch t)
It correctly detects that we are already at version ~8~ in that faraway
directory, but then it forgets to add the prefix to the default.
It then prompts with a non-existent wrong file doomed to fail if the
user hits RET.
Also using M-n, M-p do not make the default that it shows available to
the user to edit.
In fact the total correct prompt should probably look like one of
Diff p with (default ~/.backups/!home!jidanni!org!debconf!p.~8~): ~/.backups/
Diff p with (default ~/.backups/!home!jidanni!org!debconf!p.~8~): ~/.backups/!home!jidanni!org!debconf!p.~8~
Diff p with: ~/.backups/!home!jidanni!org!debconf!p.~8~
The idea being that the user can easily change
Diff p with: ~/.backups/!home!jidanni!org!debconf!p.~8~ to
Diff p with: ~/.backups/!home!jidanni!org!debconf!p.~7~ etc.
emacs-version "25.2.2" and I do recall I reported something similar
years ago...
This bug report was last modified 7 years and 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.