From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: Re: Defining capture-templates: custom and init file Date: Tue, 8 Mar 2011 21:05:33 +1000 Message-ID: References: <20110307213932.4dbda28a@bhishma.homelinux.net> <20110307223319.2aa9944b@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151747531a8302d0049df698cc Return-path: Received: from [140.186.70.92] (port=33917 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwujj-0004Nm-I4 for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 06:05:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwuji-0006cH-8o for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 06:05:55 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:55522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwuji-0006by-0N for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 06:05:54 -0500 Received: by wwi17 with SMTP id 17so734727wwi.0 for ; Tue, 08 Mar 2011 03:05:53 -0800 (PST) In-Reply-To: <20110307223319.2aa9944b@bhishma.homelinux.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: org-mode --00151747531a8302d0049df698cc Content-Type: text/plain; charset=ISO-8859-1 Very revealing. However, that post was written in 2005, and the following statement is found at the tail end: The good news The behaviour of custom due to more than one custom-set-... statement will be changed in Emacs 21.xx. I've been told that > Multiple calls to custom-set-variables should work in Emacs 21; > if you customize, all the variables go into the first one, > and the rest are deleted. I can still dream. I have to say, though, thank you very, very much. This certainly clarifies the issue well. Alan On Tue, Mar 8, 2011 at 4:33 PM, Suvayu Ali wrote: > Hi Alan, > > On Tue, 8 Mar 2011 16:13:34 +1000 > "Alan E. Davis" wrote: > > > I have noticed the message from within the customization interface > > that some variable or another was set outside of customization, and > > there may be unpredictable results. Wonder what that really means, > > though. It's still a variable, isn't it? > > > > Say you customise the templates outside your custom-set-variables > block. Now if you use the customise your templates with customize and > save them, it will be saved in the custom-set-variables block. For the > current session of emacs you might not experience any problems, but > when you restart emacs depending on which comes first the setq or the > custom-set-variables your templates will be set accordingly. It is > difficult to predict for me which will be the case. For more on this > you can look here[1]. > > Hope this helps you understand the issue with what you are attempting. > > [1] http://www.dotemacs.de/custbuffer.html > > > Alan > > -- > Suvayu > > Open source is the future. It sets us free. > --00151747531a8302d0049df698cc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Very revealing. =A0However, that post was written in 2005, and the followin= g statement is found at the tail end:

The good news

The behaviour of custom du= e to more than one custom-set-... statement will be changed in Emacs 21.xx.= I've been told that
> Multiple calls to custom-set-variab= les should work in Emacs 21;
> if you customize, all the variables go into the first one,
<= div>> and the rest are deleted.

I= can still dream. =A0I have to say, though, thank you very, very much. =A0T= his certainly clarifies the issue well.

Alan

On Tue, Mar 8, 2= 011 at 4:33 PM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
Hi Alan,

On Tue, 8 Mar 2011 16:13:34 +1000
"Alan E. Davis" <lngndvs@gmail.com> wrote:

> I have noticed the message from within the cus= tomization interface
> that some variable or another was set outside of customization, and > there may be unpredictable results. =A0Wonder what that really means,<= br> > though. =A0 It's still a variable, isn't it?
>

Say you customise the templates outside your custom-set-variables
block. Now if you use the customise your templates with customize and
save them, it will be saved in the custom-set-variables block. For the
current session of emacs you might not experience any problems, but
when you restart emacs depending on which comes first the setq or the
custom-set-variables your templates will be set accordingly. It is
difficult to predict for me which will be the case. For more on this
you can look here[1].

Hope this helps you understand the issue with what you are attempting.

[1] ht= tp://www.dotemacs.de/custbuffer.html

> Alan

--
Suvayu

Open source is the future. It sets us free.

--00151747531a8302d0049df698cc--