[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 38ffb828f2: Remove misleading "in current buffer" message from au
From: |
Po Lu |
Subject: |
master 38ffb828f2: Remove misleading "in current buffer" message from auto-raise-mode |
Date: |
Fri, 4 Feb 2022 08:24:52 -0500 (EST) |
branch: master
commit 38ffb828f26d630cf7e10b7e8554aea98e299f1b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
lisp/frame.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lisp/frame.el b/lisp/frame.el
index d39597d0af..6bf4c6178b 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 38ffb828f2: Remove misleading "in current buffer" message from auto-raise-mode,
Po Lu <=