* Buttonize man page links (was Re: newuser, help)
[not found] ` <ilu8z2c4hl5.fsf@latte.josefsson.org>
@ 2002-09-08 15:56 ` Simon Josefsson
0 siblings, 0 replies; only message in thread
From: Simon Josefsson @ 2002-09-08 15:56 UTC (permalink / raw)
The following message is a courtesy copy of an article
that has been posted to gnu.emacs.gnus as well.
Simon Josefsson <jas@extundo.com> writes:
> ftp(1)
Wouldn't it be nice if Gnus buttonized such links? Oort does now,
please report if the regexp creates false positives.
2002-09-08 Simon Josefsson <jas@extundo.com>
* gnus-art.el (gnus-button-alist): Buttonize man page links.
Index: gnus-art.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-art.el,v
retrieving revision 6.228
diff -u -p -u -w -r6.228 gnus-art.el
--- gnus-art.el 2002/09/07 19:48:26 6.228
+++ gnus-art.el 2002/09/08 16:31:38
@@ -5249,7 +5249,9 @@ groups."
;; This is how URLs _should_ be embedded in text...
("<URL: *\\([^<>]*\\)>" 1 t gnus-button-embedded-url 1)
;; Raw URLs.
- (gnus-button-url-regexp 0 t browse-url 0))
+ (gnus-button-url-regexp 0 t browse-url 0)
+ ;; man pages
+ ("\\b\\([a-z]+\\)([0-9])\\W" 0 t man 1))
"*Alist of regexps matching buttons in article bodies.
Each entry has the form (REGEXP BUTTON FORM CALLBACK PAR...), where
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-08 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <lcoumukovevvjjmjdn1svsl8ns6316aoca@4ax.com>
[not found] ` <3D6FED17.6040201@yahoo.com.cn>
[not found] ` <m3ptvr2j4k.fsf@hartford-hwp.com>
[not found] ` <ilu8z2c4hl5.fsf@latte.josefsson.org>
2002-09-08 15:56 ` Buttonize man page links (was Re: newuser, help) Simon Josefsson
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).