From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#12272: 24.1.50; extra newline at end of node (elisp) Standard Regexps Date: Sun, 02 Dec 2012 03:10:05 +0200 Organization: JURTA Message-ID: <87sj7p9rr0.fsf@mail.jurta.org> References: <720A203928C642C5AF70DB5C8BFE56D6@us.oracle.com> <87k3wmkbgg.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354411253 26074 80.91.229.3 (2 Dec 2012 01:20:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2012 01:20:53 +0000 (UTC) Cc: 12272@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 02:21:05 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TeyEy-0003I4-LH for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2012 02:21:04 +0100 Original-Received: from localhost ([::1]:51281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeyEn-00019X-4S for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 20:20:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeyEk-00019P-74 for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2012 20:20:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeyEi-0001c0-Jd for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2012 20:20:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeyEi-0001bv-Ey for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2012 20:20:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TeyGr-0003Pl-Rg for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2012 20:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Dec 2012 01:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12272-submit@debbugs.gnu.org id=B12272.135441136513101 (code B ref 12272); Sun, 02 Dec 2012 01:23:01 +0000 Original-Received: (at 12272) by debbugs.gnu.org; 2 Dec 2012 01:22:45 +0000 Original-Received: from localhost ([127.0.0.1]:48941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TeyGa-0003PG-Mr for submit@debbugs.gnu.org; Sat, 01 Dec 2012 20:22:45 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:45988 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TeyGY-0003P7-4q for 12272@debbugs.gnu.org; Sat, 01 Dec 2012 20:22:43 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id DF627451E1D4; Sat, 1 Dec 2012 17:20:24 -0800 (PST) In-Reply-To: <87k3wmkbgg.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 25 Aug 2012 22:41:43 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67751 Archived-At: 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))))