This is a spot of code I've been using to get filladapt.el recognising
nroff comment prefixes, like \" \# .\" etc, to fill paragraphs of
comments, or commented-out paragraphs, etc.

There's some related paragraph/comment setups too; a couple of them
might suit the main emacs nroff-mode, like auto-fill-inhibit-regexp not
breaking in long directive lines (non-comment directive lines).

I went a few rounds with fill-comment-paragraph, but had to concede
defeat and forcibly turn off fill-paragraph-handle-comment.  I suspect
comment-search-forward doesn't enjoy comment-start-skip matching both
.\" and and \" -- on a line beginning .\" it chooses only \" as the
comment bit.  Something to do with the way it searches backwards for the
match, maybe, perhaps.

Attachment: nroff-filladapt.el
Description: application/emacs-lisp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBG9E09LFMCIV9q3ToRAngAAKC4aI2ANp8CInp+3gjt2keu3SuxxACfXZfF
Lo0JgmMtJdvUjhIs2eCQ+AI=
=SFXR
-----END PGP SIGNATURE-----
_______________________________________________
gnu-emacs-sources mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to