Gnus development mailing list
 help / color / mirror / Atom feed
* Compilation error with gnus-topic-line-format
@ 2010-10-13 12:11 Olivier Sirven
  2010-10-13 18:24 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Sirven @ 2010-10-13 12:11 UTC (permalink / raw)
  To: ding

Hello,

I'm willing to customize gnus-topic-line-format using a custom face
declared like this:

--8<---------------cut here---------------start------------->8---
(copy-face 'bold 'my/face/unread-counter)
(set-face-foreground 'my/face/unread-counter "tomato")
(setq gnus-face-1 'my/face/unread-counter)

(setq gnus-topic-line-format "%i[ %(%{%n%}%) -- %1{%A%} ]%v\n")
--8<---------------cut here---------------end--------------->8---

But when I restart gnus to take advantage of it, I get a broken layout
with the following compile log:

,----
Warning: `(princ total-number-of-articles)' is a malformed function
`----

Here is the gnus-update-format output:
,----
(progn
  (insert indentation "[ ")
  (gnus-put-text-property
   (point)
   (progn
     (gnus-add-text-properties
      (point)
      (progn
        (insert name)
        (point))
      '(gnus-face t face bold))
     (point))
   gnus-mouse-face-prop gnus-mouse-face)
  (insert " -- ")
  (gnus-add-text-properties
   (point)
   (progn
     ((princ total-number-of-articles))
     (point))
   '(gnus-face t face my/face/unread-counter))
  (insert " ]" visible "\n"))
`----

What am I doing wrong here?

For the record, my emacs version is GNU Emacs 23.2.1 (i486-pc-linux-gnu,
GTK+ Version 2.20.1) of 2010-09-02 on rutherfordium, modified by Debian
and my gnus version is Gnus v5.13

Thanks

--
Olivier




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

* Re: Compilation error with gnus-topic-line-format
  2010-10-13 12:11 Compilation error with gnus-topic-line-format Olivier Sirven
@ 2010-10-13 18:24 ` Lars Magne Ingebrigtsen
  2010-10-14 11:42   ` Olivier Sirven
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-13 18:24 UTC (permalink / raw)
  To: ding

Olivier Sirven <the.slaa@gmail.com> writes:

> Warning: `(princ total-number-of-articles)' is a malformed function

This should now probably be fixed.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Compilation error with gnus-topic-line-format
  2010-10-13 18:24 ` Lars Magne Ingebrigtsen
@ 2010-10-14 11:42   ` Olivier Sirven
  0 siblings, 0 replies; 3+ messages in thread
From: Olivier Sirven @ 2010-10-14 11:42 UTC (permalink / raw)
  To: ding

On 2010-10-13 20:24:59, Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
> Olivier Sirven <the.slaa@gmail.com> writes:
>
>> Warning: `(princ total-number-of-articles)' is a malformed function
>
> This should now probably be fixed.

ok I guess I really have to switch the gnus git version then.
Thanks

--
Olivier




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

end of thread, other threads:[~2010-10-14 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 12:11 Compilation error with gnus-topic-line-format Olivier Sirven
2010-10-13 18:24 ` Lars Magne Ingebrigtsen
2010-10-14 11:42   ` Olivier Sirven

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 NNTP newsgroup(s).