From: Tino Calancha <tino.calancha@gmail.com>
To: Juri Linkov <juri@jurta.org>
Cc: 46119@debbugs.gnu.org, uyennhi.qm@gmail.com,
Tino Calancha <tino.calancha@gmail.com>
Subject: bug#46119: 28.0.50; this-error-recenter
Date: Sat, 30 Jan 2021 21:41:30 +0100 (CET) [thread overview]
Message-ID: <f92e84b5-9543-3c9a-a87e-d997179df358@gmail.com> (raw)
In-Reply-To: <87mtwqqose.fsf@mail.linkov.net>
On Sat, 30 Jan 2021, Juri Linkov wrote:
> Like the existing command scroll-other-window-down bound to 'S-C-M-v',
> a new command could be named recenter-other-window bound to 'S-C-l'.
I like that.
>> (defun this-error-recenter (&optional arg)
>> "Recenter the current displayed error in the `next-error' buffer.
>> If called not from a `next-error' buffer, then it just calls
>> `recenter-top-bottom' in the other window."
>> (interactive "P")
>> (if (not (or (eq major-mode 'occur-mode) (derived-mode-p 'compilation-mode)))
>> (with-selected-window (other-window-for-scrolling) (recenter-top-bottom arg))
>> (funcall next-error-function 0 nil)
>> (recenter-top-bottom arg)
>> (pop-to-buffer next-error-last-buffer)))
>
> But then no special case is needed for occur/compilation-mode.
I expected someone will ask that; I should write my reason in the previous
email: I like to see the pulse highlight, as with `next-error-no-select',
that's why I call `next-error-function' here.
[I customize `next-error-highlight' and `next-error-highlight-no-select'
to 3 s]
next prev parent reply other threads:[~2021-01-30 20:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-26 21:21 bug#46119: 28.0.50; this-error-recenter Tino Calancha
2021-01-27 9:19 ` Juri Linkov
2021-01-30 15:01 ` Tino Calancha
2021-01-30 18:40 ` Juri Linkov
2021-01-30 20:41 ` Tino Calancha [this message]
2021-01-31 9:29 ` Juri Linkov
2021-01-31 15:56 ` Tino Calancha
2021-01-31 21:43 ` Juri Linkov
2021-02-01 17:19 ` Juri Linkov
2021-02-01 18:45 ` Tino Calancha
2021-02-02 17:04 ` Juri Linkov
2021-02-02 21:10 ` Tino Calancha
2021-02-01 19:17 ` Tino Calancha
2021-02-02 17:05 ` Juri Linkov
2021-02-02 21:16 ` Tino Calancha
2021-02-03 8:58 ` Juri Linkov
2021-02-03 13:03 ` Tino Calancha
2021-02-03 17:39 ` Juri Linkov
2021-02-07 15:56 ` Tino Calancha
2021-01-28 6:38 ` Richard Stallman
2021-01-30 14:50 ` Tino Calancha
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=f92e84b5-9543-3c9a-a87e-d997179df358@gmail.com \
--to=tino.calancha@gmail.com \
--cc=46119@debbugs.gnu.org \
--cc=juri@jurta.org \
--cc=uyennhi.qm@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.