GNU bug report logs - #19328
[PATCH] Add mechanism to prompt about unsaved customizations

Previous Next

Package: emacs;

Reported by: Cameron Desautels <camdez <at> gmail.com>

Date: Tue, 9 Dec 2014 15:47:01 UTC

Severity: wishlist

Tags: fixed, patch

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 19328 <at> debbugs.gnu.org (full text, mbox):

From: Cameron Desautels <camdez <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 19328 <at> debbugs.gnu.org
Subject: Re: bug#19328: [PATCH] Add mechanism to prompt about unsaved
 customizations
Date: Tue, 9 Dec 2014 10:16:44 -0600
> On 2014-12-09, at 9:54 AM, Drew Adams <drew.adams <at> oracle.com> wrote:
> 
> Why is this in etc/TODO?

If you're asking me in particular, I don't know. I just found it there
and thought I'd help out.

> This already exists, no?  I've been using this for years:
> 
> (add-hook 'kill-emacs-query-functions
>          (lambda ()
>            (condition-case nil
>                (customize-unsaved)
>              (error t))))

A named function is probably more suitable for an end user than an
arbitrary lambda, no?  Plus using error handling for control flow is
generally not considered a best practice, especially when it's as
broad in scope as `(condition-case nil ...)`.

-- 
Cameron Desautels <camdez <at> gmail.com>






This bug report was last modified 9 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.