At Thu, 6 Jan 2011 23:24:37 -0500, Christopher Genovese wrote: > > [1 ] > [1.1 ] > > [1.2 ] > On Mac OS X 10.5.8, GNU Emacs 23.2.1, Org Mode 7.4, > setting the following: > > (setq org-todo-keywords >         '((sequence "TODO" "WAIT" "DONE"))) > (setq org-todo-keyword-faces '(("WAIT" . "lightgoldenrod2"))) > > has the intended effect, with WAIT items properly displayed, ... *until* > I do org-write-agenda in the Agenda buffer (writing to "foobar.pdf"), > which fails in ps-print with the stack trace shown below. > (The failure is not dependent on the color chosen in the string.) > > Note, however, that when doing the following instead > everything works: > >  (setq org-todo-keywords >         '((sequence "TODO" "WAIT" "DONE"))) >  (copy-face 'org-todo 'org-wait-face) ; bug with string when doing org-write-agenda >  (set-face-foreground 'org-wait-face "lightgoldenrod2") >  (setq org-todo-keyword-faces '(("WAIT" . org-wait-face))) > > In the former case (which fails), the problem appears in the call > >   (ps-face-attribute-list '(:inherit org-todo :foreground "lightgoldenrod2")) > > but if the property list is itself wrapped in a list as > >  (ps-face-attribute-list '((:inherit org-todo :foreground "lightgoldenrod2"))) > > then this function does not raise an error. > > This seems like a bug to me, as I'm pretty sure I'm matching the > documented form required for org-todo-keyword-faces (in both cases), > but I could be wrong. I have not had a chance to track this down all the way, but I thought I'd > pass it on in hopes it is either helpful or will help someone show me the error of my ways. I can confirm this for Org-mode version 7.4 (release_7.4.215.g1350) GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian Setting (setq org-todo-keyword-faces '(("WAIT" . "lightgoldenrod2"))) seems right according to the docstring: ,---- | This is a list of cons cells, with TODO keywords in the car | and faces in the cdr. The face can be a symbol, a color | as a string (in which case the rest is inherited from the `org-todo' face), | or a property list of attributes, like | (:foreground "blue" :weight bold :underline t). | If it is a color string, the variable `org-faces-easy-properties' | determines if it is a foreground or a background color. `--- Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de