Gnus development mailing list
 help / color / mirror / Atom feed
From: Olivier Sirven <the.slaa@gmail.com>
To: ding@gnus.org
Subject: Compilation error with gnus-topic-line-format
Date: Wed, 13 Oct 2010 14:11:59 +0200	[thread overview]
Message-ID: <87k4lme1gw.fsf@corwin.home.thebuble.org> (raw)

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




             reply	other threads:[~2010-10-13 12:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-13 12:11 Olivier Sirven [this message]
2010-10-13 18:24 ` Lars Magne Ingebrigtsen
2010-10-14 11:42   ` Olivier Sirven

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k4lme1gw.fsf@corwin.home.thebuble.org \
    --to=the.slaa@gmail.com \
    --cc=ding@gnus.org \
    /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.
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).