GNU bug report logs -
#744
nroff-mode auto-fill-mode not on directives
Previous Next
Reported by: Kevin Ryde <user42 <at> zip.com.au>
Date: Tue, 19 Aug 2008 22:40:04 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 744 in the body.
You can then email your comments to 744 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#744
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Kevin Ryde <user42 <at> zip.com.au>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
In nroff-mode it'd be good if auto-fill-mode didn't fill when you're
entering a long directive line like
.IP some long line going past your normal fill width ...
Almost always *roff directives have to be a single line. I struck the
problem with a groff .URL with a long url doubled-up to both display
literally and be clickable in -Thtml.
I've been using the regexp below, which suppresses auto-fill on .IP and
the like, but continues to auto-fill the comment directives (no change)
.\" traditional
.\# groff extension
''' another traditional, apparently
And of course non-directive lines ("." or "'") are still auto-filled
(either ordinary text, or comments starting \" and \#).
2008-08-18 Kevin Ryde <user42 <at> zip.com.au>
* textmodes/nroff-mode.el (nroff-mode): Set auto-fill-inhibit-regexp
so as not to auto-fill on directive lines, other than comment
directives.
[nroff-mode.el.auto-fill.diff (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
--
The Copenhagen Interpretation elucidated for the layman:
You can't be sure until you see for yourself.
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#744
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Werner LEMBERG <wl <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
> I've been using the regexp below, which suppresses auto-fill on .IP
> and the like, but continues to auto-fill the comment directives (no
> change)
>
> .\" traditional
> .\# groff extension
The real groff extension is that `\#' at the beginning of a line
completely removes it:
This is a
\# comment
test.
-> This is a test.
Auto-fill would be possible for .IP and friends too, provided you end
the line with `\'.
.IP This is a long title \
continued on the next line.
Werner
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#744
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Werner LEMBERG <wl <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Reply sent to
Chong Yidong <cyd <at> stupidchicken.com>
:
You have taken responsibility.
Full text and
rfc822 format available.
Notification sent to
Kevin Ryde <user42 <at> zip.com.au>
:
bug acknowledged by developer.
Full text and
rfc822 format available.
Message #20 received at 744-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> In nroff-mode it'd be good if auto-fill-mode didn't fill when you're
> entering a long directive line
Thanks. I've checked your patch in.
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#744
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Kevin Ryde <user42 <at> zip.com.au>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #25 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Werner LEMBERG <wl <at> gnu.org> writes:
>
> The real groff extension is that `\#' at the beginning of a line
> completely removes it:
Ah yes, so I guess .\# ends up as another flavour of empty directive.
> .IP This is a long title \
> continued on the next line.
I guess you'd definitely want that for very long lines. Might be a bit
scary doing it all the time though :-). makefile-mode has a
backslashing fill-paragraph for long variables lines, maybe something
similar could be worked in for a fill of a long directive line ...
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#744
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Werner LEMBERG <wl <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #30 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
> > The real groff extension is that `\#' at the beginning of a line
> > completely removes it:
>
> Ah yes, so I guess .\# ends up as another flavour of empty
> directive.
Yep. No guessing necessary :-)
> > .IP This is a long title \
> > continued on the next line.
>
> I guess you'd definitely want that for very long lines. Might be a bit
> scary doing it all the time though :-).
Scary? Why do you think so?
> makefile-mode has a backslashing fill-paragraph for long variables
> lines, maybe something similar could be worked in for a fill of a
> long directive line ...
If you can implement this, please do. BTW, to check whether
nroff-mode properly supports groff, you might have a look at, say,
`an-old.tmac'.
Werner
bug archived.
Request was from
Debbugs Internal Request <don <at> donarmstrong.com>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 20 Sep 2008 14:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 274 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.