unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Cameron Desautels <camdez@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 19328@debbugs.gnu.org, Ted Zlatanov <tzz@lifelogs.com>
Subject: bug#19328: [PATCH] Add mechanism to prompt about unsaved customizations
Date: Thu, 11 Dec 2014 19:56:59 -0600	[thread overview]
Message-ID: <CALtQdckX1b-QhFcyc_-QjX2BwPDSncOAyRQQQ1OXHC7s_BrHng@mail.gmail.com> (raw)
In-Reply-To: <jwvr3w5abva.fsf-monnier+emacsbugs@gnu.org>

> I'm not necessarily opposed to it, but I wonder if it's
> sufficiently unintrusive.

Well, on quick sessions in-and-out of Emacs (say, on git commits), users
will never be prompted because there won't be any customizations.  But I
suspect that if someone took the time to edit their preferences, odds
are good they want them saved.  Experiments to try something like
`global-auto-revert-mode' seem like the minority of cases (plus "no" isn't
*that* long of a word in the event that you are prompted), and more
serious Emacs users (1) don't even close Emacs that often, (2) probably
have most of their configuration done through handwritten Elisp, and (3)
can easily disable the prompt.  Hell, we could even make the "prompt for
unsaved customizations" option customizable.

I don't have an exceedingly strong opinion but FWIW I sat down to hack
this out after seeing a friend and Emacs newbie spend quite a while
customizing faces for visibility and then lose it all at quit time.
Then I found the same request in the TODO file and it seemed worth
doing.  Obviously that's highly anecdotal, but I can imagine it being a
common problem.
--
Cameron Desautels <camdez@gmail.com>


On Thu, Dec 11, 2014 at 7:40 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> What about turning something like this on by default?
>
> I'm not necessarily opposed to it, but I wonder if it's
> sufficiently unintrusive.
>
> E.g. if you just want to try out a minor mode like global-auto-revert-mode,
> IIUC this will set the var and mark it as "set but unsaved", so when you
> exit, Emacs will prompt you to save this setting.
>
> Maybe it's actually the right thing to do, but I wonder if it will turn
> out to be more annoying than useful.  And I don't see a good solution for it.
>
>
>         Stefan





  reply	other threads:[~2014-12-12  1:56 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-09 15:46 bug#19328: [PATCH] Add mechanism to prompt about unsaved customizations Cameron Desautels
2014-12-09 15:54 ` Drew Adams
2014-12-09 16:16   ` Cameron Desautels
2014-12-09 16:24     ` Drew Adams
2014-12-09 17:05       ` Cameron Desautels
2014-12-09 17:46         ` Drew Adams
2014-12-09 19:47           ` Cameron Desautels
2014-12-09 20:10             ` Drew Adams
2014-12-10 15:32 ` Ted Zlatanov
2014-12-12  1:04   ` Cameron Desautels
2014-12-12  1:40     ` Stefan Monnier
2014-12-12  1:56       ` Cameron Desautels [this message]
2014-12-12  2:36         ` Stefan Monnier
2014-12-12  2:39           ` Cameron Desautels
2014-12-13  1:17             ` Ted Zlatanov
2014-12-13  5:55               ` Stefan Monnier
2014-12-13 13:06                 ` Ted Zlatanov
2014-12-13 23:23                   ` Cameron Desautels
2014-12-14 11:54                   ` Ted Zlatanov
2014-12-14 14:02                     ` Stefan Monnier
2014-12-14 16:31                       ` Ted Zlatanov
2016-02-23 11:36                 ` Lars Ingebrigtsen
2014-12-12  2:48       ` Drew Adams

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=CALtQdckX1b-QhFcyc_-QjX2BwPDSncOAyRQQQ1OXHC7s_BrHng@mail.gmail.com \
    --to=camdez@gmail.com \
    --cc=19328@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=tzz@lifelogs.com \
    /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 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).