* multiline urls
@ 2002-06-25 11:16 Sami Nuuttila
[not found] ` <m3u1nr5i5c.fsf@multivac.cwru.edu>
0 siblings, 1 reply; 2+ messages in thread
From: Sami Nuuttila @ 2002-06-25 11:16 UTC (permalink / raw)
What parameter should I change (or is editing the sources needed) to
make Gnus handle, e.g. the following URL:
<http://blah.blah/something_here_that_is_so_long_
that_it_continues_here> ?
Granted, it works as expected when the URL is written as:
<URL:http://blah.blah/something_here_that_is_so_long_
that_it_continues_here>,
but since many people seem to use the former variant I'd like to get it
working also.
--
Sami Nuuttila
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: multiline urls
[not found] ` <m3u1nq6lui.fsf@multivac.cwru.edu>
@ 2002-06-27 15:42 ` those who know me have no need of my name
0 siblings, 0 replies; 2+ messages in thread
From: those who know me have no need of my name @ 2002-06-27 15:42 UTC (permalink / raw)
in gnu.emacs.gnus i read:
>("<\\(URL:\\)? *\\([^<>]*\\)>" 2 t gnus-button-embedded-url 2)
and i think you'll want whitespace instead of just space, and in various
places, and at least one real(ish) character, e.g.,
("<\\s-*\\(URL:\\)?\\s-*\\([^<>]+\\)\\s-*>" 2 t gnus-button-embedded-url 2)
however, this is only for buttonizing the text (at least in oort). once
you are using this there is probably no need for `W u', but if you feel the
need ...
the alist doesn't have anything to do with how `W u' works, which is
handled by a function with a hard-coded format (at least in oort). here's
a quick hack, though it's not well tested and (still) doesn't handle all
the url types:
(defun article-unsplit-urls ()
"Remove the newlines that some other mailers insert into URLs."
(interactive)
(save-excursion
(let ((buffer-read-only nil))
(goto-char (point-min))
(while (re-search-forward
"\\(\\(<URL:\\)?\\s-*\\(https?\\|ftp\\)://\\S-+\\)\\s-*\n\\(\\S-+\\)" nil t)
(replace-match "\\1\\4" t))))
(gnus-article-add-buttons t))
it would be even better if the alist (or something) were used for both.
--
bringing you boring signatures for 17 years
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-27 15:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-25 11:16 multiline urls Sami Nuuttila
[not found] ` <m3u1nr5i5c.fsf@multivac.cwru.edu>
[not found] ` <m3n0tizjer.fsf@idwt.ett.utu.fi>
[not found] ` <m3adpiwkq9.fsf@idwt.ett.utu.fi>
[not found] ` <m3u1nq6lui.fsf@multivac.cwru.edu>
2002-06-27 15:42 ` those who know me have no need of my name
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).