unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Formatting labels used for URL buttons in Gnus articles
@ 2020-04-18 22:31 Narendra Joshi
       [not found] ` <mailman.633.1587249088.3066.help-gnu-emacs@gnu.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Narendra Joshi @ 2020-04-18 22:31 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

A lot of email that I get has very long URLs in the text 
version. I use `gnus-treat-buttonize' to convert those to 
clickable buttons. The labels are usually very long and I would 
like to use something like `gnus-shorten-url' to have a smaller 
string displayed as the label of the button. Any pointers to how I 
can achieve this would be great. 

Thanks,
-- 
Narendra Joshi



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Formatting labels used for URL buttons in Gnus articles
       [not found] ` <mailman.633.1587249088.3066.help-gnu-emacs@gnu.org>
@ 2020-04-30  5:38   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2020-04-30  5:38 UTC (permalink / raw)
  To: Narendra Joshi; +Cc: help-gnu-emacs

Narendra Joshi <narendraj9@gmail.com> writes:

> A lot of email that I get has very long URLs in the text version. I
> use `gnus-treat-buttonize' to convert those to clickable buttons. The
> labels are usually very long and I would like to use something like
> `gnus-shorten-url' to have a smaller string displayed as the label of
> the button. Any pointers to how I can achieve this would be great. 

There doesn't seem to be any pre-defined functionality for this in
Gnus -- gnus-button-alist just specifies regexps to react to and what
functions to call when you hit them, and not any way to specify a
transform of the text.

If you want to do something about that, then gnus-article-add-buttons in
gnus-art.el is the function to look at.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-30  5:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-18 22:31 Formatting labels used for URL buttons in Gnus articles Narendra Joshi
     [not found] ` <mailman.633.1587249088.3066.help-gnu-emacs@gnu.org>
2020-04-30  5:38   ` Lars Magne Ingebrigtsen

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 read-only IMAP folder(s) and NNTP newsgroup(s).