emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: Christopher Genovese <genovese.cr@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-write-agenda failure
Date: Sun, 23 Jan 2011 14:14:42 +0100	[thread overview]
Message-ID: <87zkqrhid9.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <AANLkTi=x-CmPeByLynS1sT+K0A6hrbJiRo5nTEmwLGs8@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2649 bytes --]

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.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2011-01-23 13:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07  4:24 org-write-agenda failure Christopher Genovese
2011-01-23 13:14 ` David Maus [this message]

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=87zkqrhid9.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=genovese.cr@gmail.com \
    /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).