GNU bug report logs - #24089
25.1; Dired: diff error on = <RET> if the file has a backup inside .~/

Previous Next

Package: emacs;

Reported by: Jorge Peixoto de Morais Neto <jorge13515 <at> gmail.com>

Date: Wed, 27 Jul 2016 18:43:01 UTC

Severity: minor

Tags: fixed

Found in version 25.1

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jorge Morais Neto <jorge13515 <at> gmail.com>
Cc: 24089 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#24089: 25.1; Dired: diff error on = <RET> if the file has a backup inside .~/
Date: Mon, 24 Aug 2020 19:17:37 +0200
Jorge Morais Neto <jorge13515 <at> gmail.com> 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




This bug report was last modified 4 years and 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.