all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: 30407@debbugs.gnu.org
Subject: bug#30407: dired-diff ignores backup-directory-alist
Date: Sat, 10 Feb 2018 06:53:47 +0800	[thread overview]
Message-ID: <87d11dpyf8.fsf@jidanni.org> (raw)

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...





             reply	other threads:[~2018-02-09 22:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-09 22:53 積丹尼 Dan Jacobson [this message]
2018-02-10  9:52 ` bug#30407: dired-diff ignores backup-directory-alist Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d11dpyf8.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=30407@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.