From: Juri Linkov <juri@jurta.org>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: martin rudalics <rudalics@gmx.at>,
"12253@debbugs.gnu.org" <12253@debbugs.gnu.org>,
Drew Adams <drew.adams@oracle.com>
Subject: bug#12253: Restore window start position
Date: Wed, 10 Jan 2024 19:16:43 +0200 [thread overview]
Message-ID: <86y1cxp1hg.fsf@mail.linkov.net> (raw)
In-Reply-To: <CADwFkmkD6EBqy3K5v_mHHaA8ae1MOr5e_gMUhJdgbk5pdqUdLQ@mail.gmail.com> (Stefan Kangas's message of "Wed, 10 Jan 2024 03:31:57 -0800")
>>> This is not helpful. It was many years ago, and I don't remember the details.
>>> In bug#12253 there is a patch that restores the window position
>>> when navigating back in Info history. I could try to rebase it
>>> if there is still an interest in such improvement.
>>
>> I think you should try to do that. Any sort of navigation should
>> restore window start and window point positions whenever possible.
>
> Did you make any progress with this?
With Info history or with Isearch history?
Here is how to restore the window position
when navigating back in Isearch history:
#+begin_src emacs-lisp
(setq isearch-push-state-function
(lambda ()
;; Recenter new search hits outside of window boundaries
(when (and isearch-success
(not (pos-visible-in-window-p)))
(recenter))
`(lambda (cmd)
(when isearch-success
(set-window-start nil ,(window-start))))))
#+end_src
prev parent reply other threads:[~2024-01-10 17:16 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-21 22:17 bug#12253: Restore window start position Juri Linkov
2012-08-22 7:08 ` martin rudalics
2012-08-22 23:38 ` Juri Linkov
2012-08-23 8:48 ` martin rudalics
2012-08-23 22:00 ` Juri Linkov
2012-08-24 9:45 ` martin rudalics
2012-08-25 0:29 ` Juri Linkov
2012-08-25 13:40 ` martin rudalics
2012-08-25 19:29 ` Juri Linkov
2012-08-28 8:53 ` Juri Linkov
2013-01-16 16:57 ` Drew Adams
2013-01-18 22:42 ` Drew Adams
2013-01-19 10:17 ` Juri Linkov
2013-01-19 15:03 ` Drew Adams
2013-03-29 16:56 ` Drew Adams
2021-05-11 14:33 ` Drew Adams
2021-05-11 17:53 ` Juri Linkov
2021-05-11 18:46 ` bug#12253: [External] : " Drew Adams
2021-05-11 19:29 ` Juri Linkov
2021-05-11 20:18 ` Drew Adams
2021-05-12 8:47 ` martin rudalics
2024-01-10 11:31 ` Stefan Kangas
2024-01-10 17:16 ` Juri Linkov [this message]
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=86y1cxp1hg.fsf@mail.linkov.net \
--to=juri@jurta.org \
--cc=12253@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
--cc=rudalics@gmx.at \
--cc=stefankangas@gmail.com \
/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.