From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Problem with agenda file list Date: Sun, 27 Apr 2008 20:44:02 +0200 Message-ID: References: <87fxt9ux7n.fsf@cantor.griswold.home> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqBr8-00017c-Ph for emacs-orgmode@gnu.org; Sun, 27 Apr 2008 14:44:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqBr6-00016Z-T2 for emacs-orgmode@gnu.org; Sun, 27 Apr 2008 14:44:10 -0400 Received: from [199.232.76.173] (port=38367 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqBr6-00016P-Oa for emacs-orgmode@gnu.org; Sun, 27 Apr 2008 14:44:08 -0400 In-Reply-To: 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: "Jose A. Ortega Ruiz" Cc: emacs-orgmode@gnu.org 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 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