* Re: texinfo-fill-workaround.el -- no break after @: when filling
[not found] ` <mailman.5657.1125538235.20277.gnu-emacs-sources@gnu.org>
@ 2005-09-01 4:00 ` Stefan Monnier
0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2005-09-01 4:00 UTC (permalink / raw)
> and a similarly tiny function for no break after <a in html "<a href",
> which I think much improves human readability
> http://www.emacswiki.org/cgi-bin/wiki/HtmlMode
In Emacs-22, this is already done for all tags:
(defun sgml-fill-nobreak ()
;; Don't break between a tag name and its first argument.
(save-excursion
(skip-chars-backward " \t")
(and (not (zerop (skip-syntax-backward "w_")))
(skip-chars-backward "/?!")
(eq (char-before) ?<))))
Only problem is that with <a href="..." the URL is often so long that the
space between <a and href is the only space on the line so fill.el ignores
fill-nobreak-predicate.
Stefan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-01 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1041.1121820984.20277.gnu-emacs-sources@gnu.org>
[not found] ` <873bq8d7yd.fsf-monnier+gnu.emacs.sources@gnu.org>
[not found] ` <mailman.1541.1122257048.20277.gnu-emacs-sources@gnu.org>
[not found] ` <87iry0jb0h.fsf-monnier+gnu.emacs.sources@gnu.org>
[not found] ` <mailman.5657.1125538235.20277.gnu-emacs-sources@gnu.org>
2005-09-01 4:00 ` texinfo-fill-workaround.el -- no break after @: when filling Stefan Monnier
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).