]> git.eshelyaron.com Git - emacs.git/commit
(w->base_line_number): Rework the way we flush the cache
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 4 Feb 2024 17:50:55 +0000 (12:50 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 7 Feb 2024 10:50:35 +0000 (11:50 +0100)
commit44d35e825b233534c93eb297290b62126f1e8b75
treec78302b2437438150c2a0bc79e3de0ad779a8532
parentbd5e5b746ab5325a5420dc80048efb67140b13bf
(w->base_line_number): Rework the way we flush the cache

* src/xdisp.c (BASE_LINE_NUMBER_VALID_P): New macro.
(try_scrolling): Use it.
(redisplay_window, Fformat_mode_line): Use it to flush the
base_line_number (if it's stale) once at the beginning.
(decode_mode_spec): Don't use (or set) `w->start` and
`w->base_line_number` when operating on another buffer!

(cherry picked from commit 57024e1e9314501b103a4d36b9b166761a2ad756)
src/xdisp.c