From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#30407: dired-diff ignores backup-directory-alist Date: Sat, 10 Feb 2018 06:53:47 +0800 Message-ID: <87d11dpyf8.fsf@jidanni.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518227855 25748 195.159.176.226 (10 Feb 2018 01:57:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Feb 2018 01:57:35 +0000 (UTC) To: 30407@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 10 02:57:30 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 1ekKPa-0004yb-UR for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 02:57:07 +0100 Original-Received: from localhost ([::1]:39905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekKRc-0006Kb-A9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Feb 2018 20:59:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekKRW-0006K1-Lq for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 20:59:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekKRS-0007Wz-I8 for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 20:59:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56236) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekKRS-0007Wb-Dp for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 20:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekKRS-0001C6-23 for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 20:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2018 01:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30407 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15182279204559 (code B ref -1); Sat, 10 Feb 2018 01:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Feb 2018 01:58:40 +0000 Original-Received: from localhost ([127.0.0.1]:35900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekKR6-0001BS-3D for submit@debbugs.gnu.org; Fri, 09 Feb 2018 20:58:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekKR3-0001BE-Lw for submit@debbugs.gnu.org; Fri, 09 Feb 2018 20:58:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekKQx-0006nV-Kj for submit@debbugs.gnu.org; Fri, 09 Feb 2018 20:58:32 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ekKQx-0006nR-HP for submit@debbugs.gnu.org; Fri, 09 Feb 2018 20:58:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekKQw-0005xq-Dc for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 20:58:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekKQs-0006ZO-HY for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 20:58:30 -0500 Original-Received: from homie.mail.dreamhost.com ([208.97.132.208]:51583 helo=homiemail-a6.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ekKQs-0006Uv-94 for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 20:58:26 -0500 Original-Received: from homiemail-a6.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTP id E5665598074 for ; Fri, 9 Feb 2018 17:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=xvwoa4Z8Cly87WyCf5kcpLidlvo=; b=KRkQS86bBTlJYKco LZQjcVLYiE+uum+/t0+LO04AeY2Yhx4cicN3jzUyBjV48DCLW1rxlYB5FEc0DELH SbUeDB7VKUcHXbk74xGqO6fpGTcHvbCRKuAj94QR6ROWiUPNKmhe2rQezibKCGhm wDvARaHThO/zvJ3AT3Stgxqujak= Original-Received: from jidanni.org (1-170-85-90.dynamic-ip.hinet.net [1.170.85.90]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 5DBB259806B for ; Fri, 9 Feb 2018 17:58:23 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:143062 Archived-At: 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...