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: Tue, 9 Dec 2014 09:46:22 -0600 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a11346bd2e2ba580509ca71dd X-Trace: ger.gmane.org 1418140040 24698 80.91.229.3 (9 Dec 2014 15:47:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2014 15:47:20 +0000 (UTC) To: 19328@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 09 16:47:09 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 1XyN0G-0007Os-Jx for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Dec 2014 16:47:08 +0100 Original-Received: from localhost ([::1]:41103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyN0G-0000D2-65 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Dec 2014 10:47:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyN0B-0000AN-EI for bug-gnu-emacs@gnu.org; Tue, 09 Dec 2014 10:47:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyN0A-0007J3-Ix for bug-gnu-emacs@gnu.org; Tue, 09 Dec 2014 10:47:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyN0A-0007Iz-F8 for bug-gnu-emacs@gnu.org; Tue, 09 Dec 2014 10:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XyN0A-0005hK-41 for bug-gnu-emacs@gnu.org; Tue, 09 Dec 2014 10:47: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: Tue, 09 Dec 2014 15:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19328 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141813999221861 (code B ref -1); Tue, 09 Dec 2014 15:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Dec 2014 15:46:32 +0000 Original-Received: from localhost ([127.0.0.1]:59826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XyMzf-0005gX-Pd for submit@debbugs.gnu.org; Tue, 09 Dec 2014 10:46:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41642) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XyMzd-0005gM-18 for submit@debbugs.gnu.org; Tue, 09 Dec 2014 10:46:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyMzc-0007Dm-64 for submit@debbugs.gnu.org; Tue, 09 Dec 2014 10:46:28 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyMzc-0007Dg-3V for submit@debbugs.gnu.org; Tue, 09 Dec 2014 10:46:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyMzb-000807-3i for bug-gnu-emacs@gnu.org; Tue, 09 Dec 2014 10:46:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyMzX-0007Bd-FV for bug-gnu-emacs@gnu.org; Tue, 09 Dec 2014 10:46:27 -0500 Original-Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:45324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyMzX-0007BN-9X for bug-gnu-emacs@gnu.org; Tue, 09 Dec 2014 10:46:23 -0500 Original-Received: by mail-ie0-f182.google.com with SMTP id x19so754785ier.13 for ; Tue, 09 Dec 2014 07:46:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=R1FuNptU6+7QP1ErRVzEOg8mj/g9IINKO7xBVaxtTtg=; b=qf0yB8A6CK10cQtpiodNhFFflngx4DgGtGjUP90NccZxlD00+tuN4DYnRUuCnFuVh1 V8c5/yavmJAh/C1m8XvBSXhKRMceYET+898Afq2lTgwn6F2Z8jG+bOQB+L3zxD7m/BFL JPXBpl5dqXHRSwADKX5Tt/+ndl84XINuRAGsL4eGp8A0HDUl0VaNEiGjx7cbSlM9tvdP VEsLPh+UoPsCHOTE4nywUzbldzuu85Qpz3nr85dghzGc5ZjQEIOqvLq34o9znqW9NGqj cIh0vkmX9ld67X4LzMXUeNU9m7UmcbqI6o52p3epPNXx486hPTm3tDybexWewqe2Lz8v FCEQ== X-Received: by 10.42.4.201 with SMTP id 9mr2438129ict.23.1418139982248; Tue, 09 Dec 2014 07:46:22 -0800 (PST) Original-Received: by 10.107.43.8 with HTTP; Tue, 9 Dec 2014 07:46:22 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:97082 Archived-At: --001a11346bd2e2ba580509ca71dd Content-Type: multipart/alternative; boundary=001a11346bd2e2ba530509ca71db --001a11346bd2e2ba530509ca71db Content-Type: text/plain; charset=UTF-8 Implements the following, as requested in `etc/TODO`: ** A function to check for customizable options that have been set but not saved, and ask the user whether to save them. This could go in kill-emacs-query-functions, to remind people to save their changes. If the user says yes, show them in a Custom buffer using customize-customized. My copyright assignment info should be on file. Cheers. -- Cameron Desautels --001a11346bd2e2ba530509ca71db Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Implements the following, as requested in `etc/TODO`:=

** A function to check for customizable options t= hat have been
=C2=A0 =C2=A0set but not saved, and ask the user whether t= o save them.
=C2=A0 =C2=A0This could go in kill-emacs-query-functions, t= o remind people
=C2=A0 =C2=A0to save their changes. If the user says yes= , show them
=C2=A0 =C2=A0in a Custom buffer using customize-customized.<= /div>

My copyright assignment info should be on file.

Cheers.

--=C2=A0
Cameron Desautels <camdez@gmail.com>
--001a11346bd2e2ba530509ca71db-- --001a11346bd2e2ba580509ca71dd Content-Type: application/octet-stream; name="0001-Add-mechanism-to-prompt-about-unsaved-customizations.patch" Content-Disposition: attachment; filename="0001-Add-mechanism-to-prompt-about-unsaved-customizations.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i3hfswz50 RnJvbSBkZDE5MmNkN2M0NWYzZTgxNWI1YTczMTQyMGM1MjkzZDc0YzYwNzVhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBDYW1lcm9uIERlc2F1dGVscyA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