emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 24.2.90: Confusion in "Top" "nn%" and "Bot".


From: Eli Zaretskii
Subject: Re: 24.2.90: Confusion in "Top" "nn%" and "Bot".
Date: Sat, 01 Dec 2012 15:43:32 +0200

> From: Andreas Schwab <address@hidden>
> Date: Sat, 01 Dec 2012 14:06:08 +0100
> Cc: address@hidden
> 
> This is triggered by the invisible text property at the end of the
> narrowed region.  When removing it from the buffer the percentage
> display works correctly again.

A simple fix is not to hide the last newline.  This is from the end of
Info-fontify-node:

      ;; Hide empty lines at the end of the node.
      (goto-char (point-max))
      (skip-chars-backward "\n")
      (when (< (1+ (point)) (1- (point-max)))
        (put-text-property (1+ (point)) (1- (point-max)) 'invisible t))

where I decremented point-max in 2 last instances.



reply via email to

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