GNU bug report logs - #11591
23.4; woman.el .nf blank \&

Previous Next

Package: emacs;

Reported by: Kevin Ryde <user42 <at> zip.com.au>

Date: Wed, 30 May 2012 23:07:01 UTC

Severity: minor

Tags: patch

Found in version 23.4

Done: Chong Yidong <cyd <at> gnu.org>

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 11591 in the body.
You can then email your comments to 11591 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11591; Package emacs. (Wed, 30 May 2012 23:07:02 GMT) 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 bug-gnu-emacs <at> gnu.org. (Wed, 30 May 2012 23:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kevin Ryde <user42 <at> zip.com.au>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.4; woman.el .nf blank \&
Date: Thu, 31 May 2012 09:03:21 +1000
[Message part 1 (text/plain, inline)]
With the nf-blank.1 below,

    (woman-find-file "nf-blank.1")

produces

          Unfilled line 1.
          Unfilled line 2.

where I expected there would be a blank line in between, corresponding
to the \& line.

I think woman.el.nf-blank.diff below could correct this.

2012-05-29  Kevin Ryde  <user42 <at> zip.com.au>

	* woman.el (woman2-process-escapes): For .nf preserve newline
	following \&.  Fixes blank lines in perl pod2man "verbatim" blocks.


Perl pod2man makes such \& lines for blank lines in "verbatim" blocks
(usually sample code etc).  Dunno if it really needs to do that.  Maybe
it distinguishes line spacing from paragraph spacing in troff or
something.  In any case for woman I don't think a \& on the line should
remove it.


[nf-blank.1 (text/plain, inline)]
.TH FOO 1
.SH DESCRIPTION
.nf
Unfilled line 1.
\&
Unfilled line 2.
[woman.el.nf-blank.diff (text/x-diff, inline)]
diff -u /so/woman/woman-24.el /so/woman/woman.el
--- /so/woman/woman-24.el	2012-05-18 14:59:04.000000000 +1000
+++ /so/woman/woman.el	2012-05-29 10:41:25.000000000 +1000
@@ -3931,7 +3931,9 @@
     (while (re-search-forward "\\\\[&|^]" to t)
       (woman-delete-match 0)
       ;; If on a line by itself, consume newline as well (Bug#3651).
-      (and (eq (char-before (match-beginning 0)) ?\n)
+      ;; But not in a .nf region, preserve all newlines in that case.
+      (and (not woman-nofill)
+	   (eq (char-before (match-beginning 0)) ?\n)
 	   (eq (char-after (match-beginning 0)) ?\n)
 	   (delete-char 1)))
 

Diff finished.  Tue May 29 10:41:30 2012
[Message part 4 (text/plain, inline)]

In GNU Emacs 23.4.1 (i486-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-04-08 on biber, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.4/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -DDEBIAN -O2' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''



-- 
Even the white bits were black.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11591; Package emacs. (Sat, 07 Jul 2012 10:16:02 GMT) Full text and rfc822 format available.

Message #8 received at 11591 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Kevin Ryde <user42 <at> zip.com.au>
Cc: 11591 <at> debbugs.gnu.org
Subject: Re: bug#11591: 23.4; woman.el .nf blank \&
Date: Sat, 07 Jul 2012 18:10:50 +0800
Kevin Ryde <user42 <at> zip.com.au> writes:

> With the nf-blank.1 below,
>
>     (woman-find-file "nf-blank.1")
>
> produces
>
>           Unfilled line 1.
>           Unfilled line 2.
>
> where I expected there would be a blank line in between, corresponding
> to the \& line.
>
> I think woman.el.nf-blank.diff below could correct this.

Committed, thanks.




bug closed, send any further explanations to 11591 <at> debbugs.gnu.org and Kevin Ryde <user42 <at> zip.com.au> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 07 Jul 2012 10:17:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 04 Aug 2012 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.