unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Landscheidt <tim@tim-landscheidt.de>
To: help-gnu-emacs@gnu.org
Subject: Re: listing auto-save files that are newer
Date: Sat, 24 Dec 2022 15:52:00 +0000	[thread overview]
Message-ID: <87tu1khk9r.fsf@vagabond.tim-landscheidt.de> (raw)
In-Reply-To: CAJcAo8tC3sPHkjRGZ4cb8gagYU_=eBaG+Js=w0o=WqUq9b2cCQ@mail.gmail.com

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




  reply	other threads:[~2022-12-24 15:52 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 [this message]
2022-12-31  5:01   ` Samuel Wales

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=87tu1khk9r.fsf@vagabond.tim-landscheidt.de \
    --to=tim@tim-landscheidt.de \
    --cc=help-gnu-emacs@gnu.org \
    /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).