From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24089: 25.1; Dired: diff error on = if the file has a backup inside .~/ Date: Fri, 29 Jul 2016 17:43:19 +0300 Message-ID: <83bn1gqzco.fsf@gnu.org> References: <1469644946.16323.9.camel@gmail.com> <83popxrefr.fsf@gnu.org> <1469792610.16323.47.camel@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1469803468 7096 80.91.229.3 (29 Jul 2016 14:44:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 14:44:28 +0000 (UTC) Cc: 24089@debbugs.gnu.org To: Jorge Peixoto de Morais Neto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 16:44:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bT91L-0002rC-Br for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 16:44:15 +0200 Original-Received: from localhost ([::1]:59942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT91F-00066R-Bg for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 10:44:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT91A-00066K-BV for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 10:44:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT918-0007Ln-AF for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 10:44:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT918-0007Lg-6m for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 10:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bT917-0004TK-V9 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 10:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jul 2016 14:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24089 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24089-submit@debbugs.gnu.org id=B24089.146980343717172 (code B ref 24089); Fri, 29 Jul 2016 14:44:01 +0000 Original-Received: (at 24089) by debbugs.gnu.org; 29 Jul 2016 14:43:57 +0000 Original-Received: from localhost ([127.0.0.1]:50858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bT913-0004Su-Ft for submit@debbugs.gnu.org; Fri, 29 Jul 2016 10:43:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bT912-0004Si-87 for 24089@debbugs.gnu.org; Fri, 29 Jul 2016 10:43:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT90t-0007Jv-QT for 24089@debbugs.gnu.org; Fri, 29 Jul 2016 10:43:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT90t-0007Jf-NF; Fri, 29 Jul 2016 10:43:47 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1582 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bT90p-0004MQ-PY; Fri, 29 Jul 2016 10:43:46 -0400 In-reply-to: <1469792610.16323.47.camel@gmail.com> (message from Jorge Peixoto de Morais Neto on Fri, 29 Jul 2016 08:43:30 -0300) 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:121684 Archived-At: > From: Jorge Peixoto de Morais Neto > Cc: 24089@debbugs.gnu.org > Date: Fri, 29 Jul 2016 08:43:30 -0300 > > On Thu, 2016-07-28 at 18:05 +0300, Eli Zaretskii wrote: > > It seems dired-diff was not prepared to deal with the situation where > > the backup file is in another directory.  Does the patch below produce > > good results? > In my brief testing, the patch solves the problem only when = is invoked > with point at the original file.  If it is invoked with point at the backup > file (inside .~), a diff error still occurs. I'm not sure why you expect that case to work. How can Emacs reverse-engineer backup-directory-alist, to figure out which of its elements was in effect when the original file was backed up? In your example, there's only one element in the alist, but in general there could be several. It sounds like in this case the users cannot just press RET, they should actually type a file name. Am I missing something?