|
From: | Juri Linkov |
Subject: | bug#69511: Restore any state after revert-buffer |
Date: | Sun, 03 Mar 2024 09:55:46 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> + (add-hook 'revert-buffer-state-functions >> + (lambda () >> + (when (bound-and-true-p outline-minor-mode) >> + (lambda () >> + (outline-minor-mode-highlight-buffer)))))) > > Side note: most of the time it's better to avoid to add lambdas to hooks > for several reasons (non-trivial identity checks; inspection of the > variable by the user) when possible. I remember Alan said this in bug#66750.
[Prev in Thread] | Current Thread | [Next in Thread] |