GNU bug report logs - #12170
save-excursion fails boundary case with recenter

Previous Next

Package: emacs;

Reported by: "Bill Brodie" <wbrodie <at> panix.com>

Date: Fri, 10 Aug 2012 02:01:02 UTC

Severity: normal

Tags: notabug

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #65 received at 12170 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 12170 <at> debbugs.gnu.org, wbrodie <at> panix.com
Subject: Re: bug#12170: save-excursion fails boundary case with recenter
Date: Sat, 11 Aug 2012 18:05:14 +0200
> 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




This bug report was last modified 8 years and 62 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.