]> git.eshelyaron.com Git - emacs.git/commit
Make `idle-update-delay` obsolete
authorStefan Kangas <stefankangas@gmail.com>
Mon, 27 May 2024 08:51:54 +0000 (10:51 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 27 May 2024 20:27:21 +0000 (22:27 +0200)
commit04ea351c6141b85469a85dc9195b58cea40807b8
tree30d9900b388ae20c12b54d70a5ce39bdc2fa7808
parent2b687b3b381f3bd54fa4fae88ccc1af086920305
Make `idle-update-delay` obsolete

This user option was introduced in 2003, and was advertised as a general
variable for a "delay before updating various things on the screen".
But this has never been true: it was only used by 'which-function-mode',
and, to make matters worse, users of that mode would basically never
know that this user option existed without reading the code.

Conversely, users that did find the user option would be surprised to
see that it only took effect in 'which-func-mode'.

The lack of other users of 'idle-update-delay' reveals that it has not
been considered generally useful.  Thus, it makes more sense to
introduce a new mode specific user option `which-func-update-delay`, and
to mark the old one obsolete.

* lisp/simple.el (idle-update-delay): Make obsolete.
* lisp/progmodes/which-func.el (which-func-update-delay): New defcustom.
(which-function-mode): Use above new defcustom instead of
'idle-update-delay'.

(cherry picked from commit a212687e24fb6a7492db28e62070b03b43784660)
etc/NEWS
lisp/progmodes/which-func.el
lisp/simple.el