From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: 24.2.90: Confusion in "Top" "nn%" and "Bot". Date: Sat, 01 Dec 2012 15:43:32 +0200 Message-ID: <838v9hubuj.fsf@gnu.org> References: <20121130214558.GA3163@acm.acm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1354369436 5029 80.91.229.3 (1 Dec 2012 13:43:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2012 13:43:56 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 01 14:44:08 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TenMV-00062Y-Et for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2012 14:44:07 +0100 Original-Received: from localhost ([::1]:49489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TenMJ-0001hO-Nf for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2012 08:43:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TenMH-0001hJ-B8 for emacs-devel@gnu.org; Sat, 01 Dec 2012 08:43:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TenMG-0008F8-8N for emacs-devel@gnu.org; Sat, 01 Dec 2012 08:43:53 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:46577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TenMG-0008Ev-0K for emacs-devel@gnu.org; Sat, 01 Dec 2012 08:43:52 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MEC00200TFN3E00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 01 Dec 2012 15:43:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEC001V7U4VXYA0@a-mtaout23.012.net.il>; Sat, 01 Dec 2012 15:43:44 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155162 Archived-At: > From: Andreas Schwab > Date: Sat, 01 Dec 2012 14:06:08 +0100 > Cc: emacs-devel@gnu.org > > 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.