diff options
| author | João Távora | 2025-12-31 00:30:44 +0000 |
|---|---|---|
| committer | João Távora | 2025-12-31 00:44:01 +0000 |
| commit | ee918cafda988872260c90a113ddc88610f47ae3 (patch) | |
| tree | 40e6fcbaad096ebe84cff0833b983762cdea72cd /lib/malloc/scratch_buffer_set_array_size.c | |
| parent | af32cba44906b13549a36118bf6e39510eede654 (diff) | |
| download | emacs-ee918cafda988872260c90a113ddc88610f47ae3.tar.gz emacs-ee918cafda988872260c90a113ddc88610f47ae3.zip | |
Flymake: try to resize margins less frequently
In particular, don't auto-resize in flymake-start if the current buffer
already has suitable margins. Otherwise it's impossible to operate two
windows showing the same buffer with different scrolls while using
Flymake.
Also, when attempting to restore margins, remember to actually apply
them.
* lisp/progmodes/flymake.el (flymake--original-margin-width)
(flymake--suitably-fringed-p, flymake--bs-display)
(flymake--restore-margins, flymake-restore-margins): Move to
separate section. Rework.
(flymake--suitable-margin-width, flymake--apply-margins)
(flymake--appropriate-margin): New helpers.
Diffstat (limited to 'lib/malloc/scratch_buffer_set_array_size.c')
0 files changed, 0 insertions, 0 deletions