From: Juri Linkov <juri@linkov.net>
To: Alan Mackenzie <acm@muc.de>
Cc: 17453@debbugs.gnu.org
Subject: bug#17453: Framework extending window functions for Follow Mode (etc.).
Date: Tue, 08 Dec 2015 02:42:39 +0200 [thread overview]
Message-ID: <877fkpu5xc.fsf@mail.linkov.net> (raw)
In-Reply-To: <20151207191540.GD1904@acm.fritz.box> (Alan Mackenzie's message of "Mon, 7 Dec 2015 19:15:40 +0000")
>> (add-hook 'isearch-update-post-hook 'recenter)
>> (add-hook 'replace-update-post-hook 'recenter)
>
> First comment: this sort of thing will wreck Follow Mode, scrolling text
> in the current window rather than point moving forward to the next
> window.
I guess a lot of other customizations will wreck Follow Mode too.
>> How would you do the same without these hooks, using only post-command-hook?
>
> By putting #'recenter into `post-command-hook'? This should work for
> Isearch, and would work for Replace and Ispell if these two used the
> Emacs command loop.
This will call #'recenter on every command.
> I have indeed put *Choices* at the top of the RH window, to preserve
> sanity.
>
> I committed those changes, including changes to Ispell this afternoon. I
> think they're close to working fully.
Yes, pretty close.
next prev parent reply other threads:[~2015-12-08 0:42 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20151105192905.GA7986@acm.fritz.box>
[not found] ` <CAAdUY-+Myd4q=9JkS4Pe6gWDKSHNNoZ+jNxm=S_1dSD9np7uRA@mail.gmail.com>
[not found] ` <20151107182420.GA1774@acm.fritz.box>
[not found] ` <871tc18oai.fsf@mail.linkov.net>
[not found] ` <20151108002955.GC1774@acm.fritz.box>
2015-11-09 0:50 ` bug#17453: Framework extending window functions for Follow Mode (etc.) Juri Linkov
[not found] ` <8737wgou4z.fsf@mail.linkov.net>
2015-11-09 15:41 ` Alan Mackenzie
[not found] ` <20151109154124.GC2284@acm.fritz.box>
2015-11-10 0:51 ` Juri Linkov
2015-11-10 11:08 ` Alan Mackenzie
2015-11-11 0:12 ` Juri Linkov
2015-11-11 16:19 ` Alan Mackenzie
2015-11-12 0:52 ` Juri Linkov
2015-11-12 8:22 ` martin rudalics
2015-11-12 20:14 ` Juri Linkov
2015-11-17 22:55 ` Alan Mackenzie
2015-11-18 0:38 ` Juri Linkov
2015-11-18 17:58 ` Alan Mackenzie
2015-11-18 21:28 ` Alan Mackenzie
2015-11-19 0:45 ` Juri Linkov
2015-11-25 19:33 ` Alan Mackenzie
2015-11-26 23:03 ` Juri Linkov
2015-11-30 20:37 ` Alan Mackenzie
2015-12-01 0:07 ` Juri Linkov
2015-12-05 16:40 ` Alan Mackenzie
2015-12-05 23:06 ` Juri Linkov
2015-12-07 19:15 ` Alan Mackenzie
2015-12-08 0:42 ` Juri Linkov [this message]
2015-11-12 22:15 ` Alan Mackenzie
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=877fkpu5xc.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=17453@debbugs.gnu.org \
--cc=acm@muc.de \
/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).