From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70242 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: user format functions Date: Wed, 01 Sep 2010 02:02:44 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283299384 7239 80.91.229.12 (1 Sep 2010 00:03:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2010 00:03:04 +0000 (UTC) Cc: ding@gnus.org To: Richard Riley Original-X-From: ding-owner+M18628@lists.math.uh.edu Wed Sep 01 02:03: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 1Oqan8-0006JL-DD for ding-account@gmane.org; Wed, 01 Sep 2010 02:03:02 +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 1Oqamw-0004TI-Nh; Tue, 31 Aug 2010 19:02:50 -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 1Oqamu-0004T1-Tn for ding@lists.math.uh.edu; Tue, 31 Aug 2010 19:02:48 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Oqamt-0003fh-Sj for ding@lists.math.uh.edu; Tue, 31 Aug 2010 19:02:48 -0500 Original-Received: from mail-ew0-f44.google.com ([209.85.215.44]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Oqamt-0005Df-00 for ; Wed, 01 Sep 2010 02:02:47 +0200 Original-Received: by ewy22 with SMTP id 22so5497355ewy.17 for ; Tue, 31 Aug 2010 17:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=acNHv4dawmM/lj3SU75jBcBYB0qfwE/0MWnXGM8BWQg=; b=EWAZb/IKO6OmmsnXJwVCXSbwpB32KmGCb/LOt7AFT9PZd+9CyTwj1K++z1J5hsopfj CMb4CnFnlTT0i1QwSn3XrDtkRq1lSfBfJDqQd4LtQqpZadTrn47d79k6jTcB3uBmOgGN 5rUOSVBr4+Y7rUEVHceelva3MN9JBhspoAe68= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; b=Jt6BhcleqwUm++DNOP+9kmWgwSfr/mOvqKbuYiKkhcHWzxMUxmVxUvzxakF18ATcj5 SYQYhrHzhDfSUXA3ErYIKDfJ8+77mkChrTXktIFkDXLRsfLWcPsKJysXRQlG9zoXVNME Ay+8aZz+pIwnfID69NkbfTp4JAn1DmlYvH8B0= Original-Received: by 10.213.63.142 with SMTP id b14mr10854353ebi.33.1283299366749; Tue, 31 Aug 2010 17:02:46 -0700 (PDT) Original-Received: from localhost ([85.183.18.158]) by mx.google.com with ESMTPS id u9sm15003553eeh.23.2010.08.31.17.02.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Aug 2010 17:02:46 -0700 (PDT) In-Reply-To: (Richard Riley's message of "Wed, 01 Sep 2010 01:50:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70242 Archived-At: Apologies. Same question, but this time the correct code :- ,---- | (defun gnus-user-format-function-g (headers) | (string-match "\\(^.*\\)\\+\\(.*\\):\\(.*\\)" gnus-tmp-group)=20=20=20 | (replace-regexp-in-string "INBOX" "=E2=9C=89" (concat (propertize (up= case(substring (match-string 2 gnus-tmp-group) 0 1)) 'face 'bold 'color 're= d) " -- " (match-string 3 gnus-tmp-group)))) `---- Richard Riley writes: > I have defined a user format function for my group line formar :- > > ,---- > | (defun gnus-user-format-function-g (headers) > | (string-match "\\(^.*\\)\\+\\(.*\\):\\(.*\\)" gnus-tmp-group) > | (setq gnus-tmp-group (concat (propertize (upcase(substring (match-s= tring 2 gnus-tmp-group) 0 1)) 'face 'bold 'color 'red) " -- " (match-string= 3 gnus-tmp-group))) > | (replace-regexp-in-string "INBOX" "=E2=9C=89" gnus-tmp-group) > | ) > `---- > > The propertize doesnt work. Am I doing it correctly or does Gnus wipe > the properties I try to apply to part of the returned string? >