unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org, bojohan+news@dd.chalmers.se
Subject: Re: delete-overlay causes recentering
Date: Wed, 25 Apr 2007 10:51:45 -0400	[thread overview]
Message-ID: <E1HgiqP-0003Jy-FH@fencepost.gnu.org> (raw)
In-Reply-To: <87zm4yr1ty.fsf@stupidchicken.com> (message from Chong Yidong on Mon, 23 Apr 2007 21:35:53 -0400)

      When the filling command has reformatted the buffer text, the
      redisplay code still starts window display at the old window start
      -- which still is in the middle of a line, but not at the same
      relative position in the line as before ... so it gets confused.

      This is just one way in which a buffer change can mess things up
      when window start is not at the start of a line, so I think it is
      generally a bit difficult to find a method which will always select
      the intuitively best window start after such a change.

In that case, it is supposed to recenter.  However, the bug of
spurious recentering occurs when the buffer has not been changed at
all.  It should be easy to distinguish that case and recognize that
there is no need to recenter.


In any case, the bug is not fixed.  I observed it after C-c C-c to
send a message, in an Emacs I built yesterday which has your fix in
it.

  reply	other threads:[~2007-04-25 14:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14 10:18 [alinsoar@voila.fr: a bug in global-hl-line-mode] A Soare
2007-03-14 12:52 ` Kim F. Storm
2007-04-13 13:22   ` delete-overlay causes recentering (was: [alinsoar@voila.fr: a bug in global-hl-line-mode]) Johan Bockgård
2007-04-14  9:13     ` delete-overlay causes recentering martin rudalics
2007-04-14 11:45       ` Johan Bockgård
2007-04-15  1:44     ` Chong Yidong
2007-04-15  1:50       ` Chong Yidong
2007-04-15 19:06         ` Chong Yidong
2007-04-15 20:13           ` Kim F. Storm
2007-04-23 13:57           ` Johan Bockgård
2007-04-23 14:11             ` Chong Yidong
2007-04-23 14:17               ` Chong Yidong
2007-04-23 15:42                 ` Stefan Monnier
2007-04-23 23:07             ` Richard Stallman
2007-04-24  1:35               ` Chong Yidong
2007-04-25 14:51                 ` Richard Stallman [this message]
2007-04-27 19:03                   ` Chong Yidong
2007-04-28  4:07                     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1HgiqP-0003Jy-FH@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=bojohan+news@dd.chalmers.se \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).