From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: toggling a minor mode should not tell Customize that the value has been set Date: Sun, 06 Jan 2008 20:26:58 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199669344 12097 80.91.229.12 (7 Jan 2008 01:29:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 01:29:04 +0000 (UTC) Cc: martin rudalics , Emacs-Devel To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 07 02:29:25 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBgns-0006d7-T2 for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 02:29:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBgnV-0003B4-R2 for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 20:29:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBgld-0002Cw-V5 for emacs-devel@gnu.org; Sun, 06 Jan 2008 20:27:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBglZ-0002Ao-75 for emacs-devel@gnu.org; Sun, 06 Jan 2008 20:27:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBglZ-0002Aj-3X for emacs-devel@gnu.org; Sun, 06 Jan 2008 20:27:01 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBglY-0003iN-Qj for emacs-devel@gnu.org; Sun, 06 Jan 2008 20:27:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAO4OgUfO+K+E/2dsb2JhbACmTg X-IronPort-AV: E=Sophos;i="4.24,251,1196658000"; d="scan'208";a="12348584" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 06 Jan 2008 20:26:59 -0500 Original-Received: from pastel.home ([206.248.175.132]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id NCH41459; Sun, 06 Jan 2008 20:26:59 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id BD7647F7C; Sun, 6 Jan 2008 20:26:58 -0500 (EST) In-Reply-To: (Drew Adams's message of "Sun, 6 Jan 2008 15:41:13 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86411 Archived-At: >> > Putting `customize-customized' on `kill-emacs-query-functions' >> > is analogous to Emacs telling you that you have unsaved modified >> > buffers, and asking if you want to quit anyway and lose your >> > changes. Toggling a mode variable is not an act of customization; >> > there is no loss if you exit without saving the latest value. >> >> There is. Suppose you have done "set for current session only" and some >> action changes this to "CHANGED outside Customize; operating on it here >> may be unreliable". When you now exit Emacs you will _not_ get warned >> that you have unsaved customizations. > Fair enough. Would you then change all commands that change option > values so that they too tell Customize that the value has been > customized? Yes, I think they should, whenever possible. > Would you somehow make sure that not only commands but all > Lisp code does the same thing? The "whenever possible" is key. Stefan