From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#12170: save-excursion fails boundary case with recenter Date: Sat, 11 Aug 2012 18:05:14 +0200 Message-ID: <502682BA.5050704@gmx.at> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344701148 3204 80.91.229.3 (11 Aug 2012 16:05:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 16:05:48 +0000 (UTC) Cc: 12170@debbugs.gnu.org, wbrodie@panix.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 11 18:05: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 1T0EC9-0004zs-1B for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2012 18:05:45 +0200 Original-Received: from localhost ([::1]:49094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EC8-0005lY-4i for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2012 12:05:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EC6-0005lN-7H for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:05:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0EC4-0007zC-MK for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:05:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EC4-0007z8-Il for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:05:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T0EKA-00036h-3i for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Aug 2012 16:14: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.134470162911915 (code B ref 12170); Sat, 11 Aug 2012 16:14:02 +0000 Original-Received: (at 12170) by debbugs.gnu.org; 11 Aug 2012 16:13:49 +0000 Original-Received: from localhost ([127.0.0.1]:49661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0EJx-000368-4m for submit@debbugs.gnu.org; Sat, 11 Aug 2012 12:13:49 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:40337) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T0EJu-000360-Cd for 12170@debbugs.gnu.org; Sat, 11 Aug 2012 12:13:47 -0400 Original-Received: (qmail invoked by alias); 11 Aug 2012 16:05:23 -0000 Original-Received: from 62-47-59-168.adsl.highway.telekom.at (EHLO [62.47.59.168]) [62.47.59.168] by mail.gmx.net (mp028) with SMTP; 11 Aug 2012 18:05:23 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1983/4gvs9887adhANoB/tCbl0zR5xH5lGtujMF3c At9lw+IgHQv+Eg In-Reply-To: <83mx21cvml.fsf@gnu.org> X-Y-GMX-Trusted: 0 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:63046 Archived-At: > Maybe. If it's really important, It's not. > I could try looking at this in the > debugger, although doing so to investigate such situations is > notoriously hard, because redisplay is entered several times. > > IMO, save-excursion is simply not designed to make sure display isn't > changed in such cases. Agreed. But `save-window-excursion' doesn't handle this case either. 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. martin