all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Adam Porter <adam@alphapapa.net>, Philip Kaludercic <philipk@posteo.net>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: [ELPA] New package: salv
Date: Mon, 18 Jul 2022 16:39:10 -0700	[thread overview]
Message-ID: <CADwFkm==8k-55tXVR5W8Xg8MJ5jvQJN5cHgbggOMj66j4XkjHw@mail.gmail.com> (raw)
In-Reply-To: <8ff5d294-36b3-2dab-ea56-9170fad14b91@alphapapa.net>

Adam Porter <adam@alphapapa.net> writes:

> I've no objection to adding it to core, other than that it wouldn't be
> easily available to users until Emacs 29 is released, which will be
> quite a while.

Yes, that's unfortunately true for any new feature we add to Emacs.
OTOH, everyone will have it once it's released.

To my mind, it should be feasible to release a forwards-compatibility
package with just the new behavior, if there's demand for it on Emacs 28
or older.

> Do you mean that the code should be essentially copied into files.el
> as-is, or that other changes should be made accordingly?
>
> What if salv.el were added to emacs.git as a separate file, so that it
> wouldn't need to be loaded unless activated?

I wonder why `auto-save-visited-mode' is not just changed to fit your
needs here.

The main difference I can see is that it is not a local minor mode?  I
do think a local mode would be useful for adding to mode hooks, etc.  So
how about just adding a new local mode `auto-save-visited-local-mode'?
Would that cover your use-case(s)?

See also the new options `remote-file-name-inhibit-auto-save-visited'
and `auto-save-visited-predicate' that were inspired by the recent
discussion about `super-saver-mode' and `salve' on /r/emacs.



  parent reply	other threads:[~2022-07-18 23:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-18 17:02 [ELPA] New package: salv Adam Porter
2022-07-18 17:14 ` Philip Kaludercic
2022-07-18 17:24   ` Akib Azmain Turja
2022-07-18 18:00   ` Adam Porter
2022-07-18 18:54     ` Philip Kaludercic
2022-07-18 19:21       ` Adam Porter
2022-07-19  2:28         ` Eli Zaretskii
2022-07-18 23:39     ` Stefan Kangas [this message]
2022-07-19  5:43     ` Richard Stallman
2022-07-18 17:27 ` Akib Azmain Turja

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkm==8k-55tXVR5W8Xg8MJ5jvQJN5cHgbggOMj66j4XkjHw@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=adam@alphapapa.net \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.