GNU bug report logs -
#12272
24.1.50; extra newline at end of node (elisp) Standard Regexps
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Fri, 24 Aug 2012 22:09:01 UTC
Severity: normal
Found in version 24.1.50
Done: Juri Linkov <juri <at> jurta.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 12272 in the body.
You can then email your comments to 12272 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12272
; Package
emacs
.
(Fri, 24 Aug 2012 22:09:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 24 Aug 2012 22:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This Info node has 3 empty lines at the end, not 2 like other nodes.
The symptom, in my setup (separate frame, fit to buffer) is that hitting
SPC scrolls down to an empty screen, instead of moving immediately to
the next node.
In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600)
of 2012-08-13 on MARVIN
Bzr revision: 109584 monnier <at> iro.umontreal.ca-20120813141247-76irjqslrfncn30u
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
`configure --with-gcc (4.6) --no-opt --enable-checking --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include
-ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
-ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12272
; Package
emacs
.
(Sat, 25 Aug 2012 19:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 12272 <at> debbugs.gnu.org (full text, mbox):
> This Info node has 3 empty lines at the end, not 2 like other nodes.
At the end of most nodes makeinfo adds 1 empty line (2 newline chars),
and at the end of chapters makeinfo adds 2 empty lines (3 newline chars).
There is no need to have empty lines at the end of nodes at all, so they
could be safely removed, exactly like the standalone Info reader already
does:
=== modified file 'lisp/info.el'
--- lisp/info.el 2012-08-25 18:49:47 +0000
+++ lisp/info.el 2012-08-25 19:40:45 +0000
@@ -4844,6 +4844,12 @@ (defun Info-fontify-node ()
mouse-face highlight
help-echo "mouse-2: go to this URL"))))
+ ;; Hide empty lines at the end of the node.
+ (goto-char (point-max))
+ (skip-chars-backward "\n")
+ (when (< (1+ (point)) (point-max))
+ (put-text-property (1+ (point)) (point-max) 'invisible t))
+
(set-buffer-modified-p nil))))
;;; Speedbar support:
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12272
; Package
emacs
.
(Sun, 26 Aug 2012 05:20:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 12272 <at> debbugs.gnu.org (full text, mbox):
> There is no need to have empty lines at the end of nodes at
> all, so they could be safely removed, exactly like the
> standalone Info reader already does:
> + ;; Hide empty lines at the end of the node.
> + (goto-char (point-max))
> + (skip-chars-backward "\n")
> + (when (< (1+ (point)) (point-max))
> + (put-text-property (1+ (point)) (point-max) 'invisible t))
> +
> (set-buffer-modified-p nil))))
Works for me. Thx.
Reply sent
to
Juri Linkov <juri <at> jurta.org>
:
You have taken responsibility.
(Tue, 28 Aug 2012 09:06:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Tue, 28 Aug 2012 09:06:03 GMT)
Full text and
rfc822 format available.
Message #16 received at 12272-done <at> debbugs.gnu.org (full text, mbox):
> Works for me. Thx.
Installed and closed. Thanks for the suggestion.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 25 Sep 2012 11:24:03 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Juri Linkov <juri <at> jurta.org>
to
control <at> debbugs.gnu.org
.
(Sun, 02 Dec 2012 01:07:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12272
; Package
emacs
.
(Sun, 02 Dec 2012 01:23:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 12272 <at> debbugs.gnu.org (full text, mbox):
To fix the problem reported at
http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00002.html
there is another patch that still retains 1 empty line
at the end of the node, but doesn't hide the last newline char.
Drew, could you please verify if it fixes the symptom
that you reported initially?
=== modified file 'lisp/info.el'
--- lisp/info.el 2012-11-21 10:32:38 +0000
+++ lisp/info.el 2012-12-02 00:57:20 +0000
@@ -4856,8 +4856,8 @@ (defun Info-fontify-node ()
;; Hide empty lines at the end of the node.
(goto-char (point-max))
(skip-chars-backward "\n")
- (when (< (1+ (point)) (point-max))
- (put-text-property (1+ (point)) (point-max) 'invisible t))
+ (when (< (point) (1- (point-max)))
+ (put-text-property (point) (1- (point-max)) 'invisible t))
(set-buffer-modified-p nil))))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12272
; Package
emacs
.
(Sun, 02 Dec 2012 02:26:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 12272 <at> debbugs.gnu.org (full text, mbox):
> To fix the problem reported at
> http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00002.html
> there is another patch that still retains 1 empty line
> at the end of the node, but doesn't hide the last newline char.
>
> Drew, could you please verify if it fixes the symptom
> that you reported initially?
Thanks for letting me know. I checked the original node reported for this bug,
and it still seems OK with that patch. Thx.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12272
; Package
emacs
.
(Mon, 03 Dec 2012 23:43:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 12272 <at> debbugs.gnu.org (full text, mbox):
> - (when (< (1+ (point)) (point-max))
> - (put-text-property (1+ (point)) (point-max) 'invisible t))
> + (when (< (point) (1- (point-max)))
> + (put-text-property (point) (1- (point-max)) 'invisible t))
Since this is a regression, I installed the fix to the emacs-24 branch.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 01 Jan 2013 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 126 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.