From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#17453: Framework extending window functions for Follow Mode (etc.). Date: Tue, 08 Dec 2015 02:42:39 +0200 Organization: LINKOV.NET Message-ID: <877fkpu5xc.fsf@mail.linkov.net> References: <20151117225558.GC5054@acm.fritz.box> <878u5w3zf2.fsf@mail.linkov.net> <20151118175814.GA1690@acm.fritz.box> <87egfmkea0.fsf@mail.linkov.net> <20151125193301.GI2007@acm.fritz.box> <8737vs8isw.fsf@mail.linkov.net> <20151130203723.GA24162@acm.fritz.box> <874mg33ubg.fsf@mail.linkov.net> <20151205164032.GD2698@acm.fritz.box> <87egf0ebs2.fsf@mail.linkov.net> <20151207191540.GD1904@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449535947 5472 80.91.229.3 (8 Dec 2015 00:52:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2015 00:52:27 +0000 (UTC) Cc: 17453@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 08 01:52:16 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a66Vr-0006QE-G0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 01:52:15 +0100 Original-Received: from localhost ([::1]:57249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a66Vq-0006LZ-J8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Dec 2015 19:52:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a66Vk-0006HM-25 for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2015 19:52:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a66Vf-0007AS-22 for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2015 19:52:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a66Ve-0007AO-WF for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2015 19:52:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a66Ve-00051p-I2 for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2015 19:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2015 00:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17453 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17453-submit@debbugs.gnu.org id=B17453.144953589919272 (code B ref 17453); Tue, 08 Dec 2015 00:52:02 +0000 Original-Received: (at 17453) by debbugs.gnu.org; 8 Dec 2015 00:51:39 +0000 Original-Received: from localhost ([127.0.0.1]:42176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a66VF-00050k-9U for submit@debbugs.gnu.org; Mon, 07 Dec 2015 19:51:37 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:37123 helo=homiemail-a100.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a66Ut-000506-A2 for 17453@debbugs.gnu.org; Mon, 07 Dec 2015 19:51:34 -0500 Original-Received: from homiemail-a100.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTP id 68F7B31A075; Mon, 7 Dec 2015 16:51:14 -0800 (PST) Original-Received: from localhost.linkov.net (m83-180-31-224.cust.tele2.ee [83.180.31.224]) (Authenticated sender: jurta@jurta.org) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTPA id 3F80131A073; Mon, 7 Dec 2015 16:51:13 -0800 (PST) In-Reply-To: <20151207191540.GD1904@acm.fritz.box> (Alan Mackenzie's message of "Mon, 7 Dec 2015 19:15:40 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109740 Archived-At: >> (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.