diff options
| author | Po Lu | 2022-02-04 21:22:03 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-04 21:24:41 +0800 |
| commit | 38ffb828f26d630cf7e10b7e8554aea98e299f1b (patch) | |
| tree | 0f12dfd4c3a48386ab68c8aa3d28bf372a7cf464 | |
| parent | 702a5c6feb7a03cf76ec5a3189c9ae0fbcea6d5e (diff) | |
| download | emacs-38ffb828f26d630cf7e10b7e8554aea98e299f1b.tar.gz emacs-38ffb828f26d630cf7e10b7e8554aea98e299f1b.zip | |
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.
| -rw-r--r-- | lisp/frame.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index d39597d0aff..6bf4c6178b1 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1590,6 +1590,11 @@ acquires focus to be automatically raised. | |||
| 1590 | Note that this minor mode controls Emacs's own auto-raise | 1590 | Note that this minor mode controls Emacs's own auto-raise |
| 1591 | feature. Window managers that switch focus on mouse movement | 1591 | feature. Window managers that switch focus on mouse movement |
| 1592 | often have their own auto-raise feature." | 1592 | often have their own auto-raise feature." |
| 1593 | ;; This isn't really a global minor mode; rather, it's local to the | ||
| 1594 | ;; selected frame, but declaring it as global prevents a misleading | ||
| 1595 | ;; "Auto-Raise mode enabled in current buffer" message from being | ||
| 1596 | ;; displayed when it is turned on. | ||
| 1597 | :global t | ||
| 1593 | :variable (frame-parameter nil 'auto-raise) | 1598 | :variable (frame-parameter nil 'auto-raise) |
| 1594 | (if (frame-parameter nil 'auto-raise) | 1599 | (if (frame-parameter nil 'auto-raise) |
| 1595 | (raise-frame))) | 1600 | (raise-frame))) |