emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-write-agenda failure


From: David Maus
Subject: Re: [Orgmode] org-write-agenda failure
Date: Sun, 23 Jan 2011 14:14:42 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Thu, 6 Jan 2011 23:24:37 -0500,
Christopher Genovese wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; ISO-8859-1 (7bit)>]
> 
> [1.2  <text/html; ISO-8859-1 (quoted-printable)>]
> 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.... address@hidden
Email..... address@hidden

Attachment: pgpdqabP99zFO.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]