From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12170: save-excursion fails boundary case with recenter Date: Sat, 11 Aug 2012 19:31:53 +0300 Message-ID: <83ipcpcruu.fsf@gnu.org> References: <000001cd7696$b0e93d60$12bbb820$@com> <5024D593.7080305@gmx.at> <003601cd76fd$b21cd590$165680b0$@com> <50251EED.3010804@gmx.at> <83393uefkw.fsf@gnu.org> <502626AD.1080505@gmx.at> <83sjbtd6p0.fsf@gnu.org> <50266AAF.4000504@gmx.at> <83mx21cvml.fsf@gnu.org> <502682BA.5050704@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344702768 15168 80.91.229.3 (11 Aug 2012 16:32:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 16:32:48 +0000 (UTC) Cc: 12170@debbugs.gnu.org, wbrodie@panix.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 11 18:32:47 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 1T0EcI-0006B4-9i for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2012 18:32:46 +0200 Original-Received: from localhost ([::1]:50753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EcH-0001Q3-Fe for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2012 12:32:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EcE-0001Po-TT for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:32:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0EcC-0001oQ-Q5 for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:32:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EcC-0001oM-Ma for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:32:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T0EkI-0003hy-8n for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Aug 2012 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12170-submit@debbugs.gnu.org id=B12170.134470320914191 (code B ref 12170); Sat, 11 Aug 2012 16:41:02 +0000 Original-Received: (at 12170) by debbugs.gnu.org; 11 Aug 2012 16:40:09 +0000 Original-Received: from localhost ([127.0.0.1]:49694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0EjQ-0003gq-Um for submit@debbugs.gnu.org; Sat, 11 Aug 2012 12:40:09 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:48986) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0EjP-0003gg-95 for 12170@debbugs.gnu.org; Sat, 11 Aug 2012 12:40:08 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8L00600N5EM200@a-mtaout22.012.net.il> for 12170@debbugs.gnu.org; Sat, 11 Aug 2012 19:31:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8L006XSN8V5BE0@a-mtaout22.012.net.il>; Sat, 11 Aug 2012 19:31:44 +0300 (IDT) In-reply-to: <502682BA.5050704@gmx.at> X-012-Sender: halo1@inter.net.il 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 (newer, 2) 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:63049 Archived-At: > Date: Sat, 11 Aug 2012 18:05:14 +0200 > From: martin rudalics > CC: wbrodie@panix.com, 12170@debbugs.gnu.org > > So the difference should be in one of the four assignments > > w->start_at_line_beg = 0; > w->update_mode_line = 1; > w->last_modified = 0; > w->last_overlay_modified = 0; > > and I'd obviously vote for the first one. Interesting side-effect. FWIW, there are only 2 places in redisplay that look at w->start_at_line_beg, but neither your nor Bill's recipe don't exercise the code of either of these two places.