unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: acm@muc.de, emacs-devel@gnu.org
Subject: Re: 24.2.90: Confusion in "Top" "nn%" and "Bot".
Date: Sat, 01 Dec 2012 15:43:32 +0200	[thread overview]
Message-ID: <838v9hubuj.fsf@gnu.org> (raw)
In-Reply-To: <m2k3t1j51b.fsf@igel.home>

> From: Andreas Schwab <schwab@linux-m68k.org>
> 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.



  reply	other threads:[~2012-12-01 13:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-30 21:45 24.2.90: Confusion in "Top" "nn%" and "Bot" Alan Mackenzie
2012-12-01 10:40 ` Dani Moncayo
2012-12-01 13:06 ` Andreas Schwab
2012-12-01 13:43   ` Eli Zaretskii [this message]
2012-12-02  1:08     ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838v9hubuj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).