From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: org-write-agenda failure Date: Sun, 23 Jan 2011 14:14:42 +0100 Message-ID: <87zkqrhid9.wl%dmaus@ictsoc.de> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1635958472==" Return-path: Received: from [140.186.70.92] (port=37782 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pgzn5-00010Y-My for emacs-orgmode@gnu.org; Sun, 23 Jan 2011 08:15:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pgzn3-0002ZN-C1 for emacs-orgmode@gnu.org; Sun, 23 Jan 2011 08:15:35 -0500 Received: from mailout110.xlhost.de ([213.202.242.110]:60838 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pgzn3-0002Yp-3s for emacs-orgmode@gnu.org; Sun, 23 Jan 2011 08:15:33 -0500 In-Reply-To: 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: Christopher Genovese Cc: emacs-orgmode@gnu.org --===============1635958472== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Jan_23_14:14:42_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Sun_Jan_23_14:14:42_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Thu, 6 Jan 2011 23:24:37 -0500, Christopher Genovese wrote: >=20 > [1 ] > [1.1 ] >=20 > [1.2 ] > On Mac OS X 10.5.8, GNU Emacs 23.2.1, Org Mode 7.4, > setting the following: >=20 > (setq org-todo-keywords > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '((sequence "TODO" "WAIT" "DON= E"))) > (setq org-todo-keyword-faces '(("WAIT" . "lightgoldenrod2"))) >=20 > 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.) >=20 > Note, however, that when doing the following instead > everything works: >=20 > =C2=A0(setq org-todo-keywords > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '((sequence "TODO" "WAIT" "DON= E"))) > =C2=A0(copy-face 'org-todo 'org-wait-face) ; bug with string when doing o= rg-write-agenda > =C2=A0(set-face-foreground 'org-wait-face "lightgoldenrod2") > =C2=A0(setq org-todo-keyword-faces '(("WAIT" . org-wait-face))) >=20 > In the former case (which fails), the problem appears in the call >=20 > =C2=A0 (ps-face-attribute-list '(:inherit org-todo :foreground "lightgold= enrod2")) >=20 > but if the property list is itself wrapped in a list as >=20 > =C2=A0(ps-face-attribute-list '((:inherit org-todo :foreground "lightgold= enrod2"))) >=20 > then this function does not raise an error. >=20 > 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=20 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 --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sun_Jan_23_14:14:42_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAk08KcIACgkQma24O1pEeOapkgD/dvt01oYtw9YPmqCARE6TK+lt cITSoLTZKdiPZQiDDvUA/iOY9ADp5EZklYhtkMCqKrWGqNQcJeaWohE3dr4QF6ni =OiBF -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Jan_23_14:14:42_2011-1-- --===============1635958472== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1635958472==--