From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#46119: 28.0.50; this-error-recenter Date: Tue, 02 Feb 2021 19:04:06 +0200 Organization: LINKOV.NET Message-ID: <87wnvqafyx.fsf@mail.linkov.net> References: <8735yn1jjn.fsf@gmail.com> <87czxqbwp4.fsf@mail.linkov.net> <87im7eqxij.fsf@gmail.com> <87mtwqqose.fsf@mail.linkov.net> <87y2g9bgjc.fsf@mail.linkov.net> <87o8h5f6b9.fsf@gmail.com> <87sg6gbx4z.fsf@mail.linkov.net> <87k0rr97jj.fsf@mail.linkov.net> <8242543f-d690-859a-3156-a024c8a1ae51@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35891"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 46119@debbugs.gnu.org, uyennhi.qm@gmail.com To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 02 18:26:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6zRX-0009ER-9G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 18:26:23 +0100 Original-Received: from localhost ([::1]:37552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6zRW-0007B1-BY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 12:26:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6zLN-00018a-Uy for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 12:20:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52809) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6zLN-0006Dh-Mw for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 12:20:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6zLN-0004b9-IP for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 12:20:01 -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, 02 Feb 2021 17:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46119 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46119-submit@debbugs.gnu.org id=B46119.161228636317579 (code B ref 46119); Tue, 02 Feb 2021 17:20:01 +0000 Original-Received: (at 46119) by debbugs.gnu.org; 2 Feb 2021 17:19:23 +0000 Original-Received: from localhost ([127.0.0.1]:36111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6zKk-0004ZO-4u for submit@debbugs.gnu.org; Tue, 02 Feb 2021 12:19:23 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:35849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6zKf-0004Z2-FU for 46119@debbugs.gnu.org; Tue, 02 Feb 2021 12:19:20 -0500 Original-Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 361B5100002; Tue, 2 Feb 2021 17:19:08 +0000 (UTC) In-Reply-To: <8242543f-d690-859a-3156-a024c8a1ae51@gmail.com> (Tino Calancha's message of "Mon, 1 Feb 2021 19:45:45 +0100 (CET)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199159 Archived-At: >> (add-hook 'next-error-hook 'recenter-top-bottom) >> >> then use 'C-o' in any next-error capable buffer (compilation, occur, ...) >> to recenter its corresponding window exactly like you want. > > Thank you, that's nice. I still see superior adding a new command for > 2 resons. > > - I like to provide the binding by default to the users; same as we do with > `n' or `p' to navigate the matches without selecting the buffer. It is > quite convenient. > > - The hook above doesn't accept a prefix. With the original proposal I can > do: > 2 l ; scroll the current displayed match at the second line. > This become handy when you want to inspect the context of the match. Is it possible to add a prefix to `C-o'? What I'm worried about is two commands `C-o' and `l' doing the same thing. Or maybe these commands are used for different purposes?