emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Colored tags generate an error when C-x C-w'ing the agenda
@ 2013-09-11 12:48 Sebastien Vauban
  2013-09-27  7:23 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastien Vauban @ 2013-09-11 12:48 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

If you have colors for tags:

--8<---------------cut here---------------start------------->8---
  ;; faces for specific tags
  (setq org-tag-faces
        '(("home" .
           (:slant italic
            :foreground "#5C88D3" :background "#BBDDFF"))
          ("work" .
           (:slant italic
            :foreground "#5F7C43" :background "#C1D996"))))
--8<---------------cut here---------------end--------------->8---

you can't export the agenda views anymore; they all generate the following
error:

#+begin_src text
  Debugger entered--Lisp error: (wrong-type-argument listp "#5C88D3")
    ps-face-attributes("#5C88D3")
    ps-face-attribute-list((:slant italic :foreground "#5C88D3" :background "#BBDDFF"))
    ps-plot-with-face(459 463 (:slant italic :foreground "#5C88D3" :background "#BBDDFF"))
    ps-generate-postscript-with-faces1(1 6850)
    ps-generate-postscript-with-faces(1 6850)
    ps-generate(#<buffer Agenda View> 1 6850 ps-generate-postscript-with-faces)
    ps-spool-with-faces(1 6850 nil)
    ps-print-with-faces(1 6850 "~/agenda.ps")
    ps-print-buffer-with-faces("~/agenda.ps")
    ...
    command-execute(org-agenda-write)
#+end_src

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BUG] Colored tags generate an error when C-x C-w'ing the agenda
  2013-09-11 12:48 [BUG] Colored tags generate an error when C-x C-w'ing the agenda Sebastien Vauban
@ 2013-09-27  7:23 ` Carsten Dominik
  2013-09-27 11:35   ` Sebastien Vauban
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2013-09-27  7:23 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1870 bytes --]


On 11.9.2013, at 14:48, Sebastien Vauban <sva-news@mygooglest.com> wrote:

> Hello,
> 
> If you have colors for tags:
> 
> --8<---------------cut here---------------start------------->8---
>  ;; faces for specific tags
>  (setq org-tag-faces
>        '(("home" .
>           (:slant italic
>            :foreground "#5C88D3" :background "#BBDDFF"))
>          ("work" .
>           (:slant italic
>            :foreground "#5F7C43" :background "#C1D996"))))
> --8<---------------cut here---------------end--------------->8---
> 
> you can't export the agenda views anymore; they all generate the following
> error:

Since Emacs does display correctly with this way to specify a font, I'd say this is a bug in ps-print and should be reported to Emacs as such.

It does seem to work if you specify the faces like this (without the dot).


 (setq org-tag-faces
       '(("home" 
          (:slant italic
           :foreground "#5C88D3" :background "#BBDDFF"))
         ("work" 
          (:slant italic
           :foreground "#5F7C43" :background "#C1D996"))))

- Carsten

> 
> #+begin_src text
>  Debugger entered--Lisp error: (wrong-type-argument listp "#5C88D3")
>    ps-face-attributes("#5C88D3")
>    ps-face-attribute-list((:slant italic :foreground "#5C88D3" :background "#BBDDFF"))
>    ps-plot-with-face(459 463 (:slant italic :foreground "#5C88D3" :background "#BBDDFF"))
>    ps-generate-postscript-with-faces1(1 6850)
>    ps-generate-postscript-with-faces(1 6850)
>    ps-generate(#<buffer Agenda View> 1 6850 ps-generate-postscript-with-faces)
>    ps-spool-with-faces(1 6850 nil)
>    ps-print-with-faces(1 6850 "~/agenda.ps")
>    ps-print-buffer-with-faces("~/agenda.ps")
>    ...
>    command-execute(org-agenda-write)
> #+end_src
> 
> Best regards,
>  Seb
> 
> -- 
> Sebastien Vauban
> 
> 


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BUG] Colored tags generate an error when C-x C-w'ing the agenda
  2013-09-27  7:23 ` Carsten Dominik
@ 2013-09-27 11:35   ` Sebastien Vauban
  2013-09-27 13:15     ` Carsten Dominik
       [not found]     ` <86a9iyebuc.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Sebastien Vauban @ 2013-09-27 11:35 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Carsten,

Carsten Dominik wrote:
> On 11.9.2013, at 14:48, Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org> wrote:
>> If you have colors for tags:
>> 
>> --8<---------------cut here---------------start------------->8---
>>  ;; faces for specific tags
>>  (setq org-tag-faces
>>        '(("home" .
>>           (:slant italic
>>            :foreground "#5C88D3" :background "#BBDDFF"))
>>          ("work" .
>>           (:slant italic
>>            :foreground "#5F7C43" :background "#C1D996"))))
>> --8<---------------cut here---------------end--------------->8---
>> 
>> you can't export the agenda views anymore; they all generate the following
>> error:
>
> It does seem to work if you specify the faces like this (without the dot).
>
>  (setq org-tag-faces
>        '(("home" 
>           (:slant italic
>            :foreground "#5C88D3" :background "#BBDDFF"))
>          ("work" 
>           (:slant italic
>            :foreground "#5F7C43" :background "#C1D996"))))

Without the dot [1], I confirm that I can export both to HTML and PDF with no
error.

Though, in the PDF, these tags have a white background, not the one specified.
This is a small annoyance...

> Since Emacs does display correctly with this way to specify a font, I'd say
> this is a bug in ps-print and should be reported to Emacs as such.

... which I'll report (with your analysis) to Emacs.

Thanks for your help!

Best regards,
  Seb

[1] I'd never ever have thought to remove the "dot". How did you discover or
know that?

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BUG] Colored tags generate an error when C-x C-w'ing the agenda
  2013-09-27 11:35   ` Sebastien Vauban
@ 2013-09-27 13:15     ` Carsten Dominik
       [not found]     ` <86a9iyebuc.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2013-09-27 13:15 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1759 bytes --]


On Sep 27, 2013, at 1:35 PM, Sebastien Vauban <sva-news@mygooglest.com> wrote:

> Hi Carsten,
> 
> Carsten Dominik wrote:
>> On 11.9.2013, at 14:48, Sebastien Vauban <sva-news@mygooglest.com> wrote:
>>> If you have colors for tags:
>>> 
>>> --8<---------------cut here---------------start------------->8---
>>> ;; faces for specific tags
>>> (setq org-tag-faces
>>>       '(("home" .
>>>          (:slant italic
>>>           :foreground "#5C88D3" :background "#BBDDFF"))
>>>         ("work" .
>>>          (:slant italic
>>>           :foreground "#5F7C43" :background "#C1D996"))))
>>> --8<---------------cut here---------------end--------------->8---
>>> 
>>> you can't export the agenda views anymore; they all generate the following
>>> error:
>> 
>> It does seem to work if you specify the faces like this (without the dot).
>> 
>> (setq org-tag-faces
>>       '(("home" 
>>          (:slant italic
>>           :foreground "#5C88D3" :background "#BBDDFF"))
>>         ("work" 
>>          (:slant italic
>>           :foreground "#5F7C43" :background "#C1D996"))))
> 
> Without the dot [1], I confirm that I can export both to HTML and PDF with no
> error.
> 
> Though, in the PDF, these tags have a white background, not the one specified.
> This is a small annoyance...
> 
>> Since Emacs does display correctly with this way to specify a font, I'd say
>> this is a bug in ps-print and should be reported to Emacs as such.
> 
> ... which I'll report (with your analysis) to Emacs.

Thank you!

- Carsten

> 
> Thanks for your help!
> 
> Best regards,
>  Seb
> 
> [1] I'd never ever have thought to remove the "dot". How did you discover or
> know that?
> 
> -- 
> Sebastien Vauban
> 
> 


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BUG] Colored tags generate an error when C-x C-w'ing the agenda
       [not found]     ` <86a9iyebuc.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org>
@ 2013-11-07 18:45       ` Sebastien Vauban
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastien Vauban @ 2013-11-07 18:45 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg



Hi Carsten,

"Sebastien Vauban" wrote:
> Carsten Dominik wrote:
>> Sebastien Vauban wrote:
>>>
>>> If you have colors for tags:
>>>
>>> --8<---------------cut here---------------start------------->8---
>>>  ;; faces for specific tags
>>>  (setq org-tag-faces
>>>        '(("home" .
>>>           (:slant italic
>>>            :foreground "#5C88D3" :background "#BBDDFF"))
>>>          ("work" .
>>>           (:slant italic
>>>            :foreground "#5F7C43" :background "#C1D996"))))
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>> you can't export the agenda views anymore; they all generate the following
>>> error:
>>
>> It does seem to work if you specify the faces like this (without the dot).
>>
>>  (setq org-tag-faces
>>        '(("home"
>>           (:slant italic
>>            :foreground "#5C88D3" :background "#BBDDFF"))
>>          ("work"
>>           (:slant italic
>>            :foreground "#5F7C43" :background "#C1D996"))))
>
> Without the dot [1], I confirm that I can export both to HTML and PDF with no
> error.
>
> Though, in the PDF, these tags have a white background, not the one specified.
> This is a small annoyance...
>
>> Since Emacs does display correctly with this way to specify a font, I'd say
>> this is a bug in ps-print and should be reported to Emacs as such.
>
> ... which I'll report (with your analysis) to Emacs.

Reported to Emacs development team as bug #15827.

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-07 18:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 12:48 [BUG] Colored tags generate an error when C-x C-w'ing the agenda Sebastien Vauban
2013-09-27  7:23 ` Carsten Dominik
2013-09-27 11:35   ` Sebastien Vauban
2013-09-27 13:15     ` Carsten Dominik
     [not found]     ` <86a9iyebuc.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org>
2013-11-07 18:45       ` Sebastien Vauban

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).