1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

Remove misleading "in current buffer" message from auto-raise-mode

* lisp/frame.el (auto-raise-mode): Declare as global to prevent
a misleading message from being displayed.  It's actually
frame-local, but declaring it global doesn't hurt since
`frame-parameter' is a gv.
This commit is contained in:
Po Lu 2022-02-04 21:22:03 +08:00
parent 702a5c6feb
commit 38ffb828f2

View file

@ -1590,6 +1590,11 @@ acquires focus to be automatically raised.
Note that this minor mode controls Emacs's own auto-raise
feature. Window managers that switch focus on mouse movement
often have their own auto-raise feature."
;; This isn't really a global minor mode; rather, it's local to the
;; selected frame, but declaring it as global prevents a misleading
;; "Auto-Raise mode enabled in current buffer" message from being
;; displayed when it is turned on.
:global t
:variable (frame-parameter nil 'auto-raise)
(if (frame-parameter nil 'auto-raise)
(raise-frame)))