From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78899 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: setting face in gnus-user-format-function-x Date: Thu, 26 May 2011 08:37:19 +0200 Message-ID: <87r57mnf1c.fsf@marauder.physik.uni-ulm.de> References: <87sjs5thro.fsf@micropit.couberia.bzh> <877h9gpqnp.fsf@marauder.physik.uni-ulm.de> <87zkmaq4sj.fsf@micropit.couberia.bzh> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1306392025 31518 80.91.229.12 (26 May 2011 06:40:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 May 2011 06:40:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27199@lists.math.uh.edu Thu May 26 08:40:21 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 1QPUF2-0006QA-K3 for ding-account@gmane.org; Thu, 26 May 2011 08:40:20 +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 1QPUE2-0004qo-TW; Thu, 26 May 2011 01:39:18 -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 1QPUE1-0004qb-5k for ding@lists.math.uh.edu; Thu, 26 May 2011 01:39:17 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QPUDx-0003gf-3s for ding@lists.math.uh.edu; Thu, 26 May 2011 01:39:14 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QPUDu-0001C5-6p for ding@gnus.org; Thu, 26 May 2011 08:39:10 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QPUDu-0005sH-0Y for ding@gnus.org; Thu, 26 May 2011 08:39:10 +0200 Original-Received: from p4fd43b9a.dip.t-dialin.net ([79.212.59.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 May 2011 08:39:10 +0200 Original-Received: from Reiner.Steib by p4fd43b9a.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 May 2011 08:39:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p4fd43b9a.dip.t-dialin.net X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+ > Yes, but it does not help. This test fails (a literal "%{...%}" is printed): > > (defun gnus-user-format-function-x (header) > (format "%%%d{%c%%}" (if (equal gnus-tmp-unread gnus-ancient-mark) 2 3) > gnus-tmp-unread)) You should use e.g. `%3{' and `%3}' _directly_ in `gnus-summary-line-format' after defining face `gnus-face-2' with `defface'. No need for a user-format-function. [ Re-reading you goal... Hm, maybe this is not sufficient for you. ] Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/