emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: giovanni.ridolfi@yahoo.it
Cc: emacs-orgmode Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: bug? setting todo keywords
Date: Wed, 4 Mar 2009 15:25:11 +0100	[thread overview]
Message-ID: <DB2DC500-2D65-497A-8916-E74C4C55C82B@uva.nl> (raw)
In-Reply-To: <536092.79697.qm@web28304.mail.ukl.yahoo.com>

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 § 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- 
> MJASON
> M$Widows XP
>
> ---------------------file---------
>    -*- mode: org; -*-
> * TODO 1st head
>
> (setq org-todo-keywords '((sequence "TODO" "FEEDBACK" "VERIFY" "|"  
> "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  
> 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

  parent reply	other threads:[~2009-03-04 14:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04 10:54 bug? setting todo keywords Giovanni Ridolfi
2009-03-04 13:13 ` Matthew Lundin
2009-03-04 14:25 ` Carsten Dominik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-03-04 14:07 Giovanni Ridolfi

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=DB2DC500-2D65-497A-8916-E74C4C55C82B@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=giovanni.ridolfi@yahoo.it \
    /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).