From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bill Brodie" Newsgroups: gmane.emacs.bugs Subject: bug#12170: save-excursion fails boundary case with recenter Date: Sat, 11 Aug 2012 12:27:42 -0400 Message-ID: <7FB5A65153794BB5B65ED03DC376935B@Shallot> 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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344702525 13519 80.91.229.3 (11 Aug 2012 16:28:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 16:28:45 +0000 (UTC) Cc: 12170@debbugs.gnu.org To: "'Eli Zaretskii'" , "'martin rudalics'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 11 18:28:45 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 1T0EYO-0005sG-Eo for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2012 18:28:44 +0200 Original-Received: from localhost ([::1]:50551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EYN-0000mt-H4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2012 12:28:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EYL-0000mn-6X for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:28:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0EYK-0000CK-8u for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:28:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0EYK-0000CF-5u for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:28:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T0EgP-0003cU-Jy for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 12:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Bill Brodie" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Aug 2012 16:37:01 +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.134470297713862 (code B ref 12170); Sat, 11 Aug 2012 16:37:01 +0000 Original-Received: (at 12170) by debbugs.gnu.org; 11 Aug 2012 16:36:17 +0000 Original-Received: from localhost ([127.0.0.1]:49687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0Efh-0003bX-Er for submit@debbugs.gnu.org; Sat, 11 Aug 2012 12:36:17 -0400 Original-Received: from mailbackend.panix.com ([166.84.1.89]:57180) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0Eff-0003bQ-EW for 12170@debbugs.gnu.org; Sat, 11 Aug 2012 12:36:16 -0400 Original-Received: from Shallot (222.sub-166-248-12.myvzw.com [166.248.12.222]) by mailbackend.panix.com (Postfix) with ESMTP id 25FC528ED9; Sat, 11 Aug 2012 12:27:51 -0400 (EDT) In-Reply-To: <83mx21cvml.fsf@gnu.org> X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1302r3JAZsudhSRWmbHMp04vlrvAACj82g X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 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:63048 Archived-At: >From my point of view (the OP), I've generally used save-excursion to assemble or manipulate information elsewhere in the buffer or in other buffers, without explicit reference to window displays. This seems like a natural restriction. I've modified my original code to perform the window operations outside the form. Thanks for the illuminating discussion. -----Original Message----- From: Eli Zaretskii [mailto:eliz@gnu.org] IMO, save-excursion is simply not designed to make sure display isn't changed in such cases. It's for excursions into other portions of the buffer for processing those other parts, without affecting display. If the processing also scrolls the screen or calls recenter or otherwise affects the display, all bets are off, because scrolling can legitimately move point, and when that happens, it is no longer clear that restoring point should take precedence over window-start etc.