From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30407: dired-diff ignores backup-directory-alist Date: Sat, 10 Feb 2018 11:52:25 +0200 Message-ID: <83o9kx2mue.fsf@gnu.org> References: <87d11dpyf8.fsf@jidanni.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=shift_jis Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1518256290 13273 195.159.176.226 (10 Feb 2018 09:51:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Feb 2018 09:51:30 +0000 (UTC) Cc: 30407@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 10 10:51:26 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekRoF-0001sQ-FU for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 10:51:03 +0100 Original-Received: from localhost ([::1]:47505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekRqH-0001Sf-6e for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 04:53:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekRqB-0001SI-Fg for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 04:53:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekRqA-0004t9-Lc for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 04:53:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56394) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekRqA-0004t3-IW for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 04:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekRqA-0001o1-C2 for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 04:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2018 09:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30407 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30407-submit@debbugs.gnu.org id=B30407.15182563756929 (code B ref 30407); Sat, 10 Feb 2018 09:53:02 +0000 Original-Received: (at 30407) by debbugs.gnu.org; 10 Feb 2018 09:52:55 +0000 Original-Received: from localhost ([127.0.0.1]:36058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekRq3-0001ng-Hm for submit@debbugs.gnu.org; Sat, 10 Feb 2018 04:52:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekRq1-0001nR-Ug for 30407@debbugs.gnu.org; Sat, 10 Feb 2018 04:52:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekRpr-0004bi-QE for 30407@debbugs.gnu.org; Sat, 10 Feb 2018 04:52:48 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekRpr-0004be-O2; Sat, 10 Feb 2018 04:52:43 -0500 Original-Received: from [176.228.60.248] (port=3411 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekRpq-00026W-R8; Sat, 10 Feb 2018 04:52:43 -0500 In-reply-to: <87d11dpyf8.fsf@jidanni.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143079 Archived-At: > From: ϒO Dan Jacobson > > Date: Sat, 10 Feb 2018 06:53:47 +0800 > > 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. I believe this bug is already fixed in Emacs 26, please try the latest pretest. > Also using M-n, M-p do not make the default that it shows available to > the user to edit. Because M-n and M-p show possible directories where that other file could live, not only possible backup file names. Dired-diff is not necessarily for comparison with the backup file, it's more general. > emacs-version "25.2.2" and I do recall I reported something similar > years ago... If you are willing to make such remarks, please always make a point of trying the latest codebase first.