emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Tommy Kelly <tommy.kelly@verilab.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Minor gotcha with org-agenda-files
Date: Sat, 22 Jan 2011 19:59:25 +0000	[thread overview]
Message-ID: <87ipxgg15u.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <m2lj2cltt2.fsf@verilab.com> (Tommy Kelly's message of "Sat, 22 Jan 2011 11:41:45 -0600")

Tommy Kelly <tommy.kelly@verilab.com> writes:

> suvayu ali <fatkasuvayu+linux@gmail.com> writes:
>
>> On Sat, Jan 22, 2011 at 5:31 PM, Tommy Kelly <tommy.kelly@verilab.com> wrote:
>>> I just figured out why, despite having a setq in my .emacs, my
>>> org-agenda-files wasn't what I thought it should be.
>>>
>>> It's because if you modify that variable using C-c [ or C-c ], then any
>>> explicit setq is rendered obsolete by the custom-set-variables
>>> entry that gets added automatically.

Yes, this has bitten me a few times.  I sometimes add a file to the
list, temporarily I think, only to have it make a permanent change.  I
*never* remember that this command uses customize to effect the change.

>>
>> This is nothing org specific. Its how customise works. This is the
>> reason people are encouraged to _not_ mix customise with setq. I for
>> example use customise for everything except org settings.
>
> Ah but hang on.
>
> First, is it reasonable to consider it obvious (I mean, it wasn't to me)
> that using C-c [ invokes customize?
>
> Second, even if it is reasonable, isn't it the case that customize
> offers a temporary change of variables? You have to explicitly ask it to
> make the change permanent, no?

It would indeed be friendlier if this were done here as well.

> Overall, it just caught me unawares that C-c [ should write something in
> one of my files without even telling me let alone asking me. Maybe it's
> just me though. 

It's not just you!
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.232.g8d003)

  reply	other threads:[~2011-01-22 20:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-22 16:31 Minor gotcha with org-agenda-files Tommy Kelly
2011-01-22 16:49 ` suvayu ali
2011-01-22 17:41   ` Tommy Kelly
2011-01-22 19:59     ` Eric S Fraga [this message]
2011-01-23  8:15       ` suvayu ali
2011-01-23 10:06         ` Eric S Fraga
2011-01-23 10:53           ` Carsten Dominik
2011-01-23 13:56             ` Bernt Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipxgg15u.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=tommy.kelly@verilab.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).