From: Samuel Wales <samologist@gmail.com>
To: Tim Landscheidt <tim@tim-landscheidt.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: listing auto-save files that are newer
Date: Fri, 30 Dec 2022 22:01:41 -0700 [thread overview]
Message-ID: <CAJcAo8th7NvAPvv6y-RFV+-VoiPB+pGr2VBnmYD8OEUpmHCDMQ@mail.gmail.com> (raw)
In-Reply-To: <87tu1khk9r.fsf@vagabond.tim-landscheidt.de>
i forgot to mention, i have all of my auto-save files in one place:
(setq auto-save-list-file-prefix
(expand-file-name ".saves-" alpha-auto-save-directory))
(setq auto-save-file-name-transforms
`((".*" ,alpha-auto-save-directory t)))
your idea seems plausible.
i also have this, but it depends on buffers.
not files.
(defun alpha-file-auto-save-newer-p ()
(or (recent-auto-save-p)
(file-newer-than-file-p (or buffer-auto-save-file-name
(make-auto-save-file-name))
buffer-file-name)))
[i missed this message because i can't figure out how to filter
[webmail, nothing so sophisticated as gnus].]
On 12/24/22, Tim Landscheidt <tim@tim-landscheidt.de> wrote:
> Samuel Wales <samologist@gmail.com> wrote:
>
>> is there a function for listing all files that have auto
>> save files that are newer? e.g. for after a computer crash.
>
>> i found no such. i want to put such a list at top of scratch buffer
>> on startup. like this:
>
>> auto-save file is newer -- fixme: /home/whatever/wherever/executive.org
>> auto-save file is newer -- fixme: /home/whatever/wherever/config-file
>
> I don't know but I'm looking for something like that as
> well. I was thinking about a function that iterates over
> all ~/.emacs.d/auto-save-list files that are not of the cur-
> rent Emacs process, iterates over all filenames in those, if
> for one of those filenames there is an auto-save file, vis-
> its the first one or, if there is none, deletes that
> ~/.emacs.d/auto-save-list file.
>
> The UI flow would be to call the function and deal with the
> first file, lather, rinse, repeat. As a Gnus user there
> would be need to be an exception for ~/.newsrc.dribble~
> which Gnus handles itself.
>
> Tim
>
>
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
prev parent reply other threads:[~2022-12-31 5:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-22 3:44 listing auto-save files that are newer Samuel Wales
2022-12-24 15:52 ` Tim Landscheidt
2022-12-31 5:01 ` Samuel Wales [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJcAo8th7NvAPvv6y-RFV+-VoiPB+pGr2VBnmYD8OEUpmHCDMQ@mail.gmail.com \
--to=samologist@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tim@tim-landscheidt.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).