bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Drew Adams
Subject: bug#12272: 24.1.50; extra newline at end of node (elisp) Standard Regexps
Date: Sat, 25 Aug 2012 22:18:57 -0700

> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]