From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#8874: Redisplay confusion in Info, due to recentering fix Date: Sat, 18 Jun 2011 14:07:10 -0400 Message-ID: <878vszui7l.fsf@stupidchicken.com> References: <87sjrag7zp.fsf@stupidchicken.com> <83d3idydxn.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308420634 14385 80.91.229.12 (18 Jun 2011 18:10:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2011 18:10:34 +0000 (UTC) Cc: 8874@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 18 20:10:27 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QXzyT-00087L-O4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jun 2011 20:10:25 +0200 Original-Received: from localhost ([::1]:53840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXzyS-0007eb-QB for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jun 2011 14:10:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXzwD-0007DF-43 for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2011 14:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXzwA-0004ee-PT for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2011 14:08:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXzwA-0004eZ-Hs for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2011 14:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QXzw9-0005UX-Rs; Sat, 18 Jun 2011 14:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jun 2011 18:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8874-submit@debbugs.gnu.org id=B8874.130842043921059 (code B ref 8874); Sat, 18 Jun 2011 18:08:01 +0000 Original-Received: (at 8874) by debbugs.gnu.org; 18 Jun 2011 18:07:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXzvT-0005Tb-3I for submit@debbugs.gnu.org; Sat, 18 Jun 2011 14:07:19 -0400 Original-Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXzvR-0005TR-Ng for 8874@debbugs.gnu.org; Sat, 18 Jun 2011 14:07:18 -0400 Original-Received: from furball (dhcp128036226133.central.yale.edu [128.36.226.133]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5II7BAV031258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 18 Jun 2011 14:07:11 -0400 Original-Received: by furball (Postfix, from userid 1000) id 16D7016041A; Sat, 18 Jun 2011 14:07:11 -0400 (EDT) In-Reply-To: <83d3idydxn.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 16 Jun 2011 18:49:08 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 18 Jun 2011 14:08:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47287 Archived-At: Eli Zaretskii writes: > How urgent is it to fix this? Can it be postponed until I'm done with > bidi reordering of display strings, and we enter code freeze? The bidi work is more urgent, so feel free to postphone the fix for this until you have the time. FWIW, I took a quick look, and it appears that the following should do the trick. But it can wait till you have time to double-check the code. *** src/xdisp.c 2011-06-14 18:57:19 +0000 --- src/xdisp.c 2011-06-18 18:03:55 +0000 *************** *** 14391,14397 **** if (pt_offset) centering_position -= pt_offset; centering_position -= ! FRAME_LINE_HEIGHT (f) * (1 + margin + (last_line_misfit != 0)); /* Don't let point enter the scroll margin near top of the window. */ if (centering_position < margin * FRAME_LINE_HEIGHT (f)) --- 14391,14397 ---- if (pt_offset) centering_position -= pt_offset; centering_position -= ! FRAME_LINE_HEIGHT (f) * (2 + margin + (last_line_misfit != 0)); /* Don't let point enter the scroll margin near top of the window. */ if (centering_position < margin * FRAME_LINE_HEIGHT (f))