mode line. 'header' will display in the header line;
'mode-and-header' displays in both the header line and mode line.
++++
+*** New user option 'which-func-update-delay'.
+This replaces the user option 'idle-update-delay', which was previously
+used to control the delay before `which-function-mode` updated its
+display. The user option 'idle-update-delay', which was only used by
+Which Function mode, is now obsolete.
+
** Tramp
+++
activation of Which Function until Imenu is used for the first time."
:type 'integer)
+(defcustom which-func-update-delay
+ ;; Backwards-compatibility: if users had changed this before
+ ;; `idle-update-delay' was declared obsolete, let's respect that.
+ (if (/= idle-update-delay 0.5) idle-update-delay 0.5)
+ "Idle time delay before `which-function-mode` updates its display.
+When point moves, wait this many seconds after Emacs becomes idle before
+doing an update."
+ :type 'number
+ :group 'display
+ :version "30.1")
+
(defvar which-func-keymap
(let ((map (make-sparse-keymap)))
(define-key map [mode-line mouse-1] 'beginning-of-defun)
(cancel-timer which-func-update-timer))
(setq which-func-update-timer nil)
(when which-function-mode
- ;;Turn it on.
+ ;; Turn it on.
(setq which-func-update-timer
- (run-with-idle-timer idle-update-delay t #'which-func-update)))
+ (run-with-idle-timer which-func-update-delay t #'which-func-update)))
(dolist (buf (buffer-list))
(with-current-buffer buf
(which-func--header-line-remove)
(defvar compilation-current-error)
(defvar compilation-context-lines)
+(make-obsolete-variable 'idle-update-delay 'which-func-update-delay "30.1")
(defcustom idle-update-delay 0.5
"Idle time delay before updating various things on the screen.
Various Emacs features that update auxiliary information when point moves