all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.