From: Richard Riley <rileyrg@googlemail.com>
To: ding@gnus.org
Subject: user format functions
Date: Wed, 01 Sep 2010 01:50:05 +0200 [thread overview]
Message-ID: <guoccipck2.fsf@news.eternal-september.org> (raw)
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-string 2 gnus-tmp-group) 0 1)) 'face 'bold 'color 'red) " -- " (match-string 3 gnus-tmp-group)))
| (replace-regexp-in-string "INBOX" "✉" 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?
next reply other threads:[~2010-08-31 23:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-31 23:50 Richard Riley [this message]
2010-09-01 0:02 ` Richard Riley
2010-09-01 20:15 ` Lars Magne Ingebrigtsen
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=guoccipck2.fsf@news.eternal-september.org \
--to=rileyrg@googlemail.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).