unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Should ending successful Isearch with C-g restore the relative window position?
@ 2013-01-14 22:29 Drew Adams
  2013-01-14 23:07 ` Dani Moncayo
  0 siblings, 1 reply; 20+ messages in thread
From: Drew Adams @ 2013-01-14 22:29 UTC (permalink / raw)
  To: emacs-devel

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?




^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2013-01-17 21:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).