emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: "Jose A. Ortega Ruiz" <jao@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Problem with agenda file list
Date: Sun, 27 Apr 2008 20:44:02 +0200	[thread overview]
Message-ID: <B0224D68-7E4A-4D5B-8DE8-4065F1DA9A30@science.uva.nl> (raw)
In-Reply-To: <yr0gr6crrzss.fsf@google.com>

Hi Jose,

in principle it would be possible, of course, to write a
custom function that directly modifies a special Org
configuration file.  However, that is even less clean than
what I was doing so far and is bound to cause problems.  What
if another person does *not* have a special file for Org?
Should I then directly manipulate .emacs?  I think this is
not acceptable.

There is of course, a simple solution for you:  Set the value
of org-agenda-files with a lisp setq form in .emacs, and never use
`C-c [' and `C-c ]' to modify the list.  If you want to be sure,
disable these functions with `disable-command'.

- Carsten

On Apr 27, 2008, at 7:08 PM, Jose A. Ortega Ruiz wrote:

> Carsten Dominik <dominik@science.uva.nl> writes:
>
>> On Apr 27, 2008, at 5:17 PM, Eddward DeVilla wrote:
>>
>
> [...]
>
>>> Anyhow, I'm pretty sure I only add files with the org-mode menu  
>>> and I
>>> think the key sequence C-].  (The machine I'm on doesn't have org- 
>>> mode
>>> at the moment.)  I don't modify the list much though.  I can try to
>>> stress it if you like.
>>
>>
>> Please do, I think this would be useful.  I will switch to this setup
>> myself.
>>
>
> I will too. But i think this solution is suboptimal: i already have a
> .el file to store my org-specific configuration, and this obligues  
> me to
> split my configuration into two files, the only reason being that i
> don't want org to overwrite my customisation variables.
>
> I'm not privy with the implementation details, but i guess the  
> overwrite
> is unavoidable when not using the additional file? I'm a bit surprised
> by this fact: i use dozens of emacs packages, and org is the first one
> wanting to modify my custom.el; even in cases where customising a
> variable must trigger some additional side-effect, there's some  
> function
> one can call in the init file to both set the variable and trigger the
> additional side-effects.
>
> That said, if this is the only workable solution, so be it :)
>
> jao
> -- 
> A student came to the master and asked, for the master was one of them
> who knew such things: "Does Emacs have the Buddha nature?" The master
> contemplated this for some time, and answered: "I don't see why not,
> it has about everything else."
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2008-04-27 18:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-26  3:11 Problem with agenda file list Dan Griswold
2008-04-26 11:06 ` Jose A. Ortega Ruiz
2008-04-26 11:28   ` Dan Griswold
2008-04-26 20:25   ` Carsten Dominik
2008-04-27 15:17     ` Eddward DeVilla
2008-04-27 15:51       ` Carsten Dominik
2008-04-27 17:08         ` Jose A. Ortega Ruiz
2008-04-27 18:44           ` Carsten Dominik [this message]
2008-04-27 20:11             ` Jose A. Ortega Ruiz
2008-04-28  4:12               ` Carsten Dominik

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=B0224D68-7E4A-4D5B-8DE8-4065F1DA9A30@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=jao@gnu.org \
    /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).