From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24089: 25.1; Dired: diff error on = if the file has a backup inside .~/ Date: Mon, 24 Aug 2020 19:17:37 +0200 Message-ID: <87v9h86k0e.fsf@gnus.org> References: <1469644946.16323.9.camel@gmail.com> <83popxrefr.fsf@gnu.org> <1469792610.16323.47.camel@gmail.com> <83bn1gqzco.fsf@gnu.org> <1469809763.28832.14.camel@gmail.com> <838twhq1zb.fsf@gnu.org> <1470189864.29404.3.camel@gmail.com> <83tweyjj3p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33730"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 24089@debbugs.gnu.org To: Jorge Morais Neto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 24 19:18:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAG6j-0008cp-PI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 19:18:09 +0200 Original-Received: from localhost ([::1]:52106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAG6i-000362-J2 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 13:18:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAG6c-00035r-N3 for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 13:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAG6c-0005Y6-Dy for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 13:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAG6c-00049D-AF for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 13:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Aug 2020 17:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24089 X-GNU-PR-Package: emacs Original-Received: via spool by 24089-submit@debbugs.gnu.org id=B24089.159828947115916 (code B ref 24089); Mon, 24 Aug 2020 17:18:02 +0000 Original-Received: (at 24089) by debbugs.gnu.org; 24 Aug 2020 17:17:51 +0000 Original-Received: from localhost ([127.0.0.1]:59087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAG6R-00048d-20 for submit@debbugs.gnu.org; Mon, 24 Aug 2020 13:17:51 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:59788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAG6P-00048N-D0 for 24089@debbugs.gnu.org; Mon, 24 Aug 2020 13:17:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JA8urY/aBszD+xHESyca//E0Wp9ZcY07Hl0vssAiIKQ=; b=RH3QcNcx2LEqS9beFrC3KeEANt 12TkIB5OWb5d+vFIXZrd1RS1ZCzXQYI8PWowFekYCsV1Xn6gJIpml5ErgyCMfAZ2plY/u2gfsmkLP SP/uRPoxQdNv5NhcPZsaUL0o6R41h/vCsLrwuMEwazB9igjuqdW9/ivqFWiw85sLZxb4=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAG6F-0000t9-1C; Mon, 24 Aug 2020 19:17:42 +0200 X-Now-Playing: Massive Attack v Mad Professor's _Part II_: "Angel (Angel Dust)" In-Reply-To: (Jorge Morais Neto's message of "Tue, 15 Nov 2016 14:14:47 -0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186189 Archived-At: Jorge Morais Neto writes: > I found a problem with the solution to this bug. The solution could be further > improved. > > My Emacs init file is "~/.emacs.d/init.el". It has numbered backups in > "~/.emacs.d/.~/". It is true that with the existing fix, I can invoke > dired-diff on init.el and immediately hit RET, and it will work as expected. > However, I often want to compare with an earlier backup.Therefore, I want to be > able to: > 1. Pull into the minibuffer (with M-n) the path to the latest backup, so I could > edit it to become the path of an earlier backup. Or even better, > 2. Pull into the minibuffer (with M-n) the path to the latest backup, and get > the path of earlier and earlier backups with successive invocations of M-n. > > The current fix lacks both of these features. That makes sense to me, and is something that sounds quite useful. I grepped around Emacs, but I could find any function that just returned the list of backup files conveniently, so I added one -- 'file-backup-file-names'. (Everybody -- feel free to change the name if that's too awkward.) I wrote it by ripping everything out of 'file-newest-backup', basically. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no