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#10024: 24.0.91; save-restriction fails to restore the screen Date: Sun, 13 Nov 2011 15:09:52 +0100 Message-ID: <4EBFCFB0.6020707@gmx.at> References: <20158.24471.405000.559265@gargle.gargle.HOWL> <87ty68okfx.fsf@gnu.org> <4EBFA3A7.9060206@gmx.at> <20159.43541.578000.401186@gargle.gargle.HOWL> <877h34dxx0.fsf@gnu.org> NNTP-Posting-Host: lo.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 1321193445 16013 80.91.229.12 (13 Nov 2011 14:10:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2011 14:10:45 +0000 (UTC) Cc: 10024@debbugs.gnu.org, Uday S Reddy To: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 13 15:10:40 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 1RPalb-000263-HY for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Nov 2011 15:10:39 +0100 Original-Received: from localhost ([::1]:46463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPala-0001pk-GP for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Nov 2011 09:10:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPalX-0001pf-Fv for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2011 09:10:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPalW-00050Q-Hu for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2011 09:10:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPalW-00050M-Ce for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2011 09:10:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RPaly-0000mi-3J for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2011 09:11:02 -0500 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: Sun, 13 Nov 2011 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10024 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10024-submit@debbugs.gnu.org id=B10024.13211934322981 (code B ref 10024); Sun, 13 Nov 2011 14:11:01 +0000 Original-Received: (at 10024) by debbugs.gnu.org; 13 Nov 2011 14:10:32 +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 1RPalU-0000m2-5r for submit@debbugs.gnu.org; Sun, 13 Nov 2011 09:10:32 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RPalS-0000lo-8M for 10024@debbugs.gnu.org; Sun, 13 Nov 2011 09:10:31 -0500 Original-Received: (qmail invoked by alias); 13 Nov 2011 14:09:55 -0000 Original-Received: from 62-47-48-44.adsl.highway.telekom.at (EHLO [62.47.48.44]) [62.47.48.44] by mail.gmx.net (mp016) with SMTP; 13 Nov 2011 15:09:55 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+Q/2IGbnWQGxPBEZwrzdUamrUQVUMJeyn1kcb6rH 8/DMfZLSFN1zTz User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <877h34dxx0.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 13 Nov 2011 09:11:02 -0500 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:53861 Archived-At: > But save-excursion also does not restore the window. It restores point > (etc.). If a redisplay happens inside save-excursion, the window can > scroll. It _could_ scroll back to the initial position when, returning from the excursion, point is off-screen. Chances are that even the window-start position after that is the same as before the excursion. But there's _no_ guarantee. So you should restore the old position using something like either `recenter' or `set-window-start'. martin