From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73042 Path: news.gmane.org!not-for-mail From: Olivier Sirven Newsgroups: gmane.emacs.gnus.general Subject: Compilation error with gnus-topic-line-format Date: Wed, 13 Oct 2010 14:11:59 +0200 Message-ID: <87k4lme1gw.fsf@corwin.home.thebuble.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286973070 661 80.91.229.12 (13 Oct 2010 12:31:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 12:31:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21414@lists.math.uh.edu Wed Oct 13 14:31:03 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P60U2-0001kK-RG for ding-account@gmane.org; Wed, 13 Oct 2010 14:31:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P60T3-0008IC-06; Wed, 13 Oct 2010 07:30:01 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P60C7-0008DU-R6 for ding@lists.math.uh.edu; Wed, 13 Oct 2010 07:12:31 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P60C7-0001pR-6K for ding@lists.math.uh.edu; Wed, 13 Oct 2010 07:12:31 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P60C6-00063D-00 for ; Wed, 13 Oct 2010 14:12:30 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P60C1-0003Ye-Ew for ding@gnus.org; Wed, 13 Oct 2010 14:12:25 +0200 Original-Received: from aannecy-257-1-68-208.w90-36.abo.wanadoo.fr ([90.36.19.208]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Oct 2010 14:12:25 +0200 Original-Received: from the.slaa by aannecy-257-1-68-208.w90-36.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Oct 2010 14:12:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: aannecy-257-1-68-208.w90-36.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:1Lei8jNKV5HuJanif9qXoVlO7Z8= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73042 Archived-At: 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