From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78897 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: setting face in gnus-user-format-function-x Date: Wed, 25 May 2011 15:38:04 +0200 Organization: Micropit Message-ID: <87zkmaq4sj.fsf@micropit.couberia.bzh> References: <87sjs5thro.fsf@micropit.couberia.bzh> <877h9gpqnp.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306330748 2637 80.91.229.12 (25 May 2011 13:39:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 May 2011 13:39:08 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27197@lists.math.uh.edu Wed May 25 15:39:05 2011 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 1QPEIf-0000Xp-If for ding-account@gmane.org; Wed, 25 May 2011 15:39:01 +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 1QPEI6-0000Iz-DD; Wed, 25 May 2011 08:38:26 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QPEI4-0000Ik-Dq for ding@lists.math.uh.edu; Wed, 25 May 2011 08:38:24 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QPEI2-0005uw-Ma for ding@lists.math.uh.edu; Wed, 25 May 2011 08:38:23 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QPEHz-0007d8-Qa for ding@gnus.org; Wed, 25 May 2011 15:38:19 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QPEHx-00084O-QL for ding@gnus.org; Wed, 25 May 2011 15:38:17 +0200 Original-Received: from arennes-651-1-158-164.w86-214.abo.wanadoo.fr ([86.214.45.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2011 15:38:17 +0200 Original-Received: from pmlists by arennes-651-1-158-164.w86-214.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2011 15:38:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-651-1-158-164.w86-214.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:m8S3QQW8lyEkydj+RUgT48mm020= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78897 Archived-At: On Tue, May 24 2011, Reiner Steib wrote: >> Here my test setup: >> >> (defun gnus-user-format-function-x (header) >> (propertize (format "%c" gnus-tmp-unread) 'face >> (if (equal gnus-tmp-unread gnus-ancient-mark) >> gnus-face-2 gnus-face-3) 'gnus-face t)) >> >> (setq gnus-summary-line-format "%ux...") > > Did you try (info "(gnus)Formatting Fonts")? Yes, but it does not help. This test fails (a literal "%{...%}" is printed): --8<---------------cut here---------------start------------->8--- (defun gnus-user-format-function-x (header) (format "%%%d{%c%%}" (if (equal gnus-tmp-unread gnus-ancient-mark) 2 3) gnus-tmp-unread)) --8<---------------cut here---------------end--------------->8--- -- Peter