[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12272: 24.1.50; extra newline at end of node (elisp) Standard Regexp
From: |
Juri Linkov |
Subject: |
bug#12272: 24.1.50; extra newline at end of node (elisp) Standard Regexps |
Date: |
Sun, 02 Dec 2012 03:10:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) |
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))))
- bug#12272: 24.1.50; extra newline at end of node (elisp) Standard Regexps,
Juri Linkov <=