From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cameron Desautels Newsgroups: gmane.emacs.bugs Subject: bug#19328: [PATCH] Add mechanism to prompt about unsaved customizations Date: Thu, 11 Dec 2014 19:56:59 -0600 Message-ID: References: <87egs7a5b0.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1418349517 7549 80.91.229.3 (12 Dec 2014 01:58:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2014 01:58:37 +0000 (UTC) Cc: 19328@debbugs.gnu.org, Ted Zlatanov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 02:58:28 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XzFUv-0005ip-LX for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 02:58:25 +0100 Original-Received: from localhost ([::1]:55095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzFUv-0002cZ-7x for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Dec 2014 20:58:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzFUm-0002c5-Vz for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2014 20:58:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzFUd-0002Gi-Sz for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2014 20:58:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzFUY-0002E2-IV for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2014 20:58:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XzFUY-0005i8-77 for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2014 20:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Cameron Desautels Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Dec 2014 01:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19328 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19328-submit@debbugs.gnu.org id=B19328.141834942821880 (code B ref 19328); Fri, 12 Dec 2014 01:58:02 +0000 Original-Received: (at 19328) by debbugs.gnu.org; 12 Dec 2014 01:57:08 +0000 Original-Received: from localhost ([127.0.0.1]:43384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzFTf-0005gp-Kp for submit@debbugs.gnu.org; Thu, 11 Dec 2014 20:57:07 -0500 Original-Received: from mail-lb0-f179.google.com ([209.85.217.179]:65197) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzFTd-0005gJ-Pw for 19328@debbugs.gnu.org; Thu, 11 Dec 2014 20:57:06 -0500 Original-Received: by mail-lb0-f179.google.com with SMTP id z11so5095713lbi.24 for <19328@debbugs.gnu.org>; Thu, 11 Dec 2014 17:56:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mRskNC4h5TOMlLm1O4UUGs1/W0fzNLCvz/Iuqm27NkA=; b=S+YOrKAhxPe873VQyl71Odocfv3a6Zh8vKkmIHwTrLNjU6gTd2xoqUKUqYOS1LAkSb Mwn4QsD3JuaYGk4fBWem4ndsqR5xh9REAkO4/krAqIWxH9s0uPCwvc/pWhrQAeAQ1zkb V3/OjAI1eToZnf1j2+JzmZh/O73bF9T4cpbgiK4jjT5TuQs3CgtBGOqX1sz1M5tWRNyI sazw3Mo7NezMnkRBfxQwqoBc/gLKOSVCAhKOfxHzERsXsD0yXfr/yI5mnzrck04bViyE bUdsw1wmteoo/Y0mEv1dPboeWK2Ec2g0Kdm6kKp4XOg3wKL//fywQGCMxlEDNTC/zhHh VroA== X-Received: by 10.112.235.164 with SMTP id un4mr3318677lbc.56.1418349419677; Thu, 11 Dec 2014 17:56:59 -0800 (PST) Original-Received: by 10.25.205.66 with HTTP; Thu, 11 Dec 2014 17:56:59 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97244 Archived-At: > 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 On Thu, Dec 11, 2014 at 7:40 PM, Stefan Monnier 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