* bug#36780: 26.1; request: savehist should also save log-edit-comment-ring by default
[not found] ` <<83blwgb6ni.fsf@gnu.org>
@ 2019-08-23 18:04 ` Drew Adams
0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2019-08-23 18:04 UTC (permalink / raw)
To: Eli Zaretskii, Lars Ingebrigtsen; +Cc: emacsuser, 36780
> > `savehist-additional-variables' is explicitly reserved for users to
> > add stuff to, so I don't think it'd be appropriate for log-edit.el
> > to add anything to it.
+1
> I don't see why the solution of customizing
> savehist-additional-variables by the user is not the right one.
> After all, we are not talking about minibuffer history here.
+1
> The savehist package defines itself as being for "saving the
> minibuffer history". What you suggest makes it a much more general
> facility, and we then would need to review many other variables and
> decide whether they are candidates for saving (some of them are
> already saved by separate features). Maybe we should do that, but
> that's a much broader issue than this particular bug report.
YAGNI. Emacs doesn't need to pre-populate a list
of variables to save. `savehist-additional-variables'
is the right way (for users) to save variables, IMO.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#36780: 26.1; request: savehist should also save log-edit-comment-ring by default
@ 2019-07-24 8:59 ndame
2019-08-23 5:12 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: ndame @ 2019-07-24 8:59 UTC (permalink / raw)
To: 36780
[-- Attachment #1: Type: text/plain, Size: 640 bytes --]
When committing things with vc I often reuse previous commit messages, usually
by editing them a bit. So it's very annoying when I restart emacs and lose the commit
message history.
I now added log-edit-comment-ring to savehist-additional-variables, but it should be
the default, because minibuffer histories are saved by default, so I'd expect vc commit
messages are also saved, though it does not use the minibuffer, but it is frequently used
input field.
I recommend adding
(add-to-list 'savehist-additional-variables 'log-edit-comment-ring)
to log-edit.el, so if savehist is enabled then it is saved as well.
[-- Attachment #2: Type: text/html, Size: 749 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#36780: 26.1; request: savehist should also save log-edit-comment-ring by default
2019-07-24 8:59 ndame
@ 2019-08-23 5:12 ` Lars Ingebrigtsen
2019-08-23 8:57 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-23 5:12 UTC (permalink / raw)
To: ndame; +Cc: 36780
ndame <emacsuser@freemail.hu> writes:
> When committing things with vc I often reuse previous commit messages,
> usually by editing them a bit. So it's very annoying when I restart
> emacs and lose the commit message history.
>
> I now added log-edit-comment-ring to savehist-additional-variables,
> but it should be the default, because minibuffer histories are saved
> by default, so I'd expect vc commit messages are also saved, though it
> does not use the minibuffer, but it is frequently used input field.
>
> I recommend adding
>
> (add-to-list 'savehist-additional-variables 'log-edit-comment-ring)
>
> to log-edit.el, so if savehist is enabled then it is saved as well.
`savehist-additional-variables' is explicitly reserved for users to add
stuff to, so I don't think it'd be appropriate for log-edit.el to add
anything to it.
But we could add a new variable, say `savehist-variables', that as a
default value could be
(log-edit-comment-ring)
and anything else the Emacs maintainers think could be saved by default.
Opinions?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#36780: 26.1; request: savehist should also save log-edit-comment-ring by default
2019-08-23 5:12 ` Lars Ingebrigtsen
@ 2019-08-23 8:57 ` Eli Zaretskii
2019-08-23 18:36 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2019-08-23 8:57 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacsuser, 36780
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Fri, 23 Aug 2019 07:12:57 +0200
> Cc: 36780@debbugs.gnu.org
>
> > I recommend adding
> >
> > (add-to-list 'savehist-additional-variables 'log-edit-comment-ring)
> >
> > to log-edit.el, so if savehist is enabled then it is saved as well.
>
> `savehist-additional-variables' is explicitly reserved for users to add
> stuff to, so I don't think it'd be appropriate for log-edit.el to add
> anything to it.
>
> But we could add a new variable, say `savehist-variables', that as a
> default value could be
>
> (log-edit-comment-ring)
>
> and anything else the Emacs maintainers think could be saved by default.
>
> Opinions?
I don't see why the solution of customizing
savehist-additional-variables by the user is not the right one. After
all, we are not talking about minibuffer history here.
The savehist package defines itself as being for "saving the
minibuffer history". What you suggest makes it a much more general
facility, and we then would need to review many other variables and
decide whether they are candidates for saving (some of them are
already saved by separate features). Maybe we should do that, but
that's a much broader issue than this particular bug report.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#36780: 26.1; request: savehist should also save log-edit-comment-ring by default
2019-08-23 8:57 ` Eli Zaretskii
@ 2019-08-23 18:36 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-23 18:36 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacsuser, 36780
Eli Zaretskii <eliz@gnu.org> writes:
> I don't see why the solution of customizing
> savehist-additional-variables by the user is not the right one. After
> all, we are not talking about minibuffer history here.
>
> The savehist package defines itself as being for "saving the
> minibuffer history".
Oh, I thought it was a more general facility. In that case, I'm closing
this bug report.
> What you suggest makes it a much more general facility, and we then
> would need to review many other variables and decide whether they are
> candidates for saving (some of them are already saved by separate
> features). Maybe we should do that, but that's a much broader issue
> than this particular bug report.
Yup.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-08-23 18:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <<Axt4dg.WUI45G8D7I2l.s1vDqjehdBkdaPEsarTp@freemail.hu>
[not found] ` <<87blwgforq.fsf@gnus.org>
[not found] ` <<83blwgb6ni.fsf@gnu.org>
2019-08-23 18:04 ` bug#36780: 26.1; request: savehist should also save log-edit-comment-ring by default Drew Adams
2019-07-24 8:59 ndame
2019-08-23 5:12 ` Lars Ingebrigtsen
2019-08-23 8:57 ` Eli Zaretskii
2019-08-23 18:36 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).