From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13583: 24.3.50; Error when activating auto-revert-mode Date: Tue, 29 Jan 2013 14:35:46 +0200 Message-ID: <83boc8i2u5.fsf@gnu.org> References: <83ehh4i6rs.fsf@gnu.org> <83d2woi43u.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1359462995 27915 80.91.229.3 (29 Jan 2013 12:36:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jan 2013 12:36:35 +0000 (UTC) Cc: 13583@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 29 13:36:55 2013 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 1U0AQo-0000EU-2P for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2013 13:36:54 +0100 Original-Received: from localhost ([::1]:33135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0AQW-0003z2-3J for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2013 07:36:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0AQT-0003yo-TL for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2013 07:36:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0AQS-00007r-Bn for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2013 07:36:33 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0AQS-00007d-8N for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2013 07:36:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U0AQw-0001qs-Di for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2013 07:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Jan 2013 12:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13583 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13583-submit@debbugs.gnu.org id=B13583.13594629647052 (code B ref 13583); Tue, 29 Jan 2013 12:37:02 +0000 Original-Received: (at 13583) by debbugs.gnu.org; 29 Jan 2013 12:36:04 +0000 Original-Received: from localhost ([127.0.0.1]:53799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U0AQ0-0001ph-2w for submit@debbugs.gnu.org; Tue, 29 Jan 2013 07:36:04 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:46096) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U0APx-0001pG-5p for 13583@debbugs.gnu.org; Tue, 29 Jan 2013 07:36:02 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MHE003000B2Y800@a-mtaout20.012.net.il> for 13583@debbugs.gnu.org; Tue, 29 Jan 2013 14:35:28 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MHE001ZD0B31T41@a-mtaout20.012.net.il>; Tue, 29 Jan 2013 14:35:28 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:70430 Archived-At: > Date: Tue, 29 Jan 2013 13:18:58 +0100 > From: Dani Moncayo > Cc: 13583@debbugs.gnu.org > > >> I try to avoid the customize facility as much as I can, because it > >> doesn't allow to set values based on conditions like the system-type, > >> for example. > > > > Doesn't custom-set-variables work inside an "if" clause? If it does, > > then what's the problem of using it only on some systems? > > The problem with that approach is that, if I do some other > customization and save it ??? You just said that you "try to avoid the customize facility", so why in the world would you want to save your customizations?? Instead of saving them, use the custom-set-variables function to do what you want, when you want. > the custom facility writes _all_ current unsaved customization to > the custom file, therefore the customization of > `auto-revert-use-notify' would end up in the custom file, which is > not what I want, obviously. This is a misunderstanding, surely: custom-set-variables does not save anything. It arranges for the variable to be customized, as if you used the Customize user interface. So I don't understand how "unsaved customizations" and "custom file" come into play here. Could you perhaps give more details about the workflow which brings you to those issues, including the commands you use? > A workaround is to fool the customize facility by marking the relevant > customizations as "saved" just after the call to custom-set-variables, > but that is an ugly hack, IMO. Why would you need to save any customizations at all? If you want to customize yet another variable, add yet another custom-set-variables form to your .emacs, that's all. What am I missing?