[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46119: 28.0.50; this-error-recenter
From: |
Juri Linkov |
Subject: |
bug#46119: 28.0.50; this-error-recenter |
Date: |
Sun, 31 Jan 2021 11:29:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> 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.
>
>> 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]
Woundn't such pulse highlighting be useful for all cases,
not only compilation and occur?
Then you can use:
(with-selected-window (other-window-for-scrolling)
(recenter-top-bottom)
(pulse-momentary-highlight-one-line (point)))
and customize pulse-delay to 3 s, and pulse-iterations to 1.
bug#46119: 28.0.50; this-error-recenter, Richard Stallman, 2021/01/28