From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug? setting todo keywords Date: Wed, 4 Mar 2009 15:25:11 +0100 Message-ID: References: <536092.79697.qm@web28304.mail.ukl.yahoo.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Les27-0005QR-Gn for emacs-orgmode@gnu.org; Wed, 04 Mar 2009 09:25:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Les26-0005Ot-K3 for emacs-orgmode@gnu.org; Wed, 04 Mar 2009 09:25:14 -0500 Received: from [199.232.76.173] (port=39422 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Les26-0005OV-E1 for emacs-orgmode@gnu.org; Wed, 04 Mar 2009 09:25:14 -0500 Received: from mail-ew0-f179.google.com ([209.85.219.179]:50369) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Les26-0005cl-1C for emacs-orgmode@gnu.org; Wed, 04 Mar 2009 09:25:14 -0500 Received: by ewy27 with SMTP id 27so2857759ewy.42 for ; Wed, 04 Mar 2009 06:25:13 -0800 (PST) In-Reply-To: <536092.79697.qm@web28304.mail.ukl.yahoo.com> 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: giovanni.ridolfi@yahoo.it Cc: emacs-orgmode Org-Mode Hi Giovanni, I am doing exactly what you do: C-c C-e after the setq form, then M-x normal-mode. Works perfectly. The only reason I can think of is that you somehow managed to make org-todo-keywords a local variable. This can happen with a File Variable section in the buffer, or if you have something like (make-variable-buffer-local 'org-todo-keywords) in .emacs or elsewhere. You can check in the org buffer with C-h v org-todo-keywords RET If the variable is local in that buffer, the Help window will say so. org-todo-keywords should *not* be a local variable. However, if it is, your setq evaluation will set the local value only. Then you restart the major mode with normal-mode or similar, and the first thing this will do is *deleting* all local variables. HTH - Carsten On Mar 4, 2009, at 11:54 AM, Giovanni Ridolfi wrote: > > Hello everybody > > I'm not able to change the todo keywords in a file > with "setq org-todo-keywords" and restarting org-mode > as described in the manual =A7 5.2.1 . > > Org-mode version 6.23b > GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600) of 2009-02-01 on SOFT-=20 > MJASON > M$Widows XP > > ---------------------file--------- > -*- mode: org; -*- > * TODO 1st head > > (setq org-todo-keywords '((sequence "TODO" "FEEDBACK" "VERIFY" "|" =20 > "DONE" "DELEGATED"))) > > # + SEQ_TODO: TODO FEEDBACK VERIFY DONE > > (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE"))) > -------------- > > If I > + go to ))) > + C-x C-e > + M-x normal-mode (to restart Org-mode) > > the * TODO sequence is still TODO DONE > > The sequence is changed (feedback, delegated...) > - if I change it via the customization interface > - if I use #+SEQ_TODO: and C-c C-c on it > > I'm puzzled! the sequence is changed with the "type" keyword > (setq org-todo-keywords '((type > ^^^^^^^^^ > > Is it a bug or do I miss something? > > cheers, > Giovanni > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da =20= > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it > > > > _______________________________________________ > 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