From: Dani Moncayo <dmoncayo@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: Should ending successful Isearch with C-g restore the relative window position?
Date: Tue, 15 Jan 2013 00:07:54 +0100 [thread overview]
Message-ID: <CAH8Pv0gv2SKp9dheJgyFAZ1WTsg=X14a79qxnu54dkNgbLMpCQ@mail.gmail.com> (raw)
In-Reply-To: <7E5B63603B074626914E5DAEB90E738B@us.oracle.com>
> In a buffer with multiple occurrences of "the", position the window so that one
> of the occurrences is near the top of the window. Now do C-s the C-s C-s...
>
> This successfully visits occurrences of "the", and if there are enough of them
> then it scrolls the window to do this. Now hit C-g to exit Isearch.
>
> Point is moved back to its starting position (good). But now that position,
> instead of being near the window top, is in the center of the window.
> `goto-char' has, in effect, recentered the point in the window.
>
> To me, this is a misfeature. I would much rather have the original window
> position, as well as point, restored. That is, I would rather see the cursor in
> the same relative window location as it was before searching.
>
> Is there some advantage of the current behavior that I'm missing? Am I the only
> one who thinks that restoring the window position along with point would be
> better?
IMO, TRT would be to restore both point and the window position. I
filed bug #12799, which is about a similar issue:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12799
--
Dani Moncayo
next prev parent reply other threads:[~2013-01-14 23:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-14 22:29 Should ending successful Isearch with C-g restore the relative window position? Drew Adams
2013-01-14 23:07 ` Dani Moncayo [this message]
2013-01-14 23:17 ` Drew Adams
2013-01-15 3:49 ` Eli Zaretskii
2013-01-15 14:58 ` Drew Adams
2013-01-15 15:09 ` Alan Mackenzie
2013-01-15 16:22 ` Should ending successful Isearch with C-g restore the relativewindow position? Drew Adams
2013-01-15 16:36 ` Alan Mackenzie
2013-01-15 16:54 ` Should ending successful Isearch with C-g restore therelativewindow position? Drew Adams
2013-01-15 16:34 ` Should ending successful Isearch with C-g restore the relative window position? Eli Zaretskii
2013-01-15 16:58 ` Drew Adams
2013-01-15 17:10 ` Eli Zaretskii
2013-01-15 17:59 ` Drew Adams
2013-01-15 18:25 ` Eli Zaretskii
2013-01-15 22:04 ` Drew Adams
2013-01-16 16:55 ` Should ending successful Isearch with C-g restore therelative " Drew Adams
2013-01-16 21:29 ` Should ending successful Isearch with C-g restore the relative " Juri Linkov
2013-01-16 22:16 ` Drew Adams
2013-01-17 21:35 ` Juri Linkov
2013-01-15 9:52 ` Juri Linkov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH8Pv0gv2SKp9dheJgyFAZ1WTsg=X14a79qxnu54dkNgbLMpCQ@mail.gmail.com' \
--to=dmoncayo@gmail.com \
--cc=drew.adams@oracle.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.