diff options
| author | Chong Yidong | 2011-11-29 14:07:51 +0800 |
|---|---|---|
| committer | Chong Yidong | 2011-11-29 14:07:51 +0800 |
| commit | ed472be992d255fc4db5f612ecc9b3e6e094bee1 (patch) | |
| tree | 498ae0ecd24210563a844f1a23022645afce6a8d | |
| parent | 24510c22a36564fe6c4b6f79a30fc41fee89b45b (diff) | |
| download | emacs-ed472be992d255fc4db5f612ecc9b3e6e094bee1.tar.gz emacs-ed472be992d255fc4db5f612ecc9b3e6e094bee1.zip | |
* frame.el (auto-raise-mode, auto-lower-mode): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/frame.el | 30 |
2 files changed, 25 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2aded765af5..57fbbf8b825 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-11-29 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * frame.el (auto-raise-mode, auto-lower-mode): Doc fix. | ||
| 4 | |||
| 1 | 2011-11-28 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2011-11-28 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * files.el (find-file): Don't use force-same-window (bug#10144). | 7 | * files.el (find-file): Don't use force-same-window (bug#10144). |
diff --git a/lisp/frame.el b/lisp/frame.el index f63179de1f1..af668f80961 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1133,15 +1133,21 @@ To get the frame's current border color, use `frame-parameters'." | |||
| 1133 | (list (cons 'border-color color-name)))) | 1133 | (list (cons 'border-color color-name)))) |
| 1134 | 1134 | ||
| 1135 | (define-minor-mode auto-raise-mode | 1135 | (define-minor-mode auto-raise-mode |
| 1136 | "Toggle whether or not the selected frame should auto-raise. | 1136 | "Toggle whether or not selected frames should auto-raise. |
| 1137 | With a prefix argument ARG, enable Auto Raise mode if ARG is | 1137 | With a prefix argument ARG, enable Auto Raise mode if ARG is |
| 1138 | positive, and disable it otherwise. If called from Lisp, enable | 1138 | positive, and disable it otherwise. If called from Lisp, enable |
| 1139 | the mode if ARG is omitted or nil. | 1139 | the mode if ARG is omitted or nil. |
| 1140 | 1140 | ||
| 1141 | Note that this controls Emacs's own auto-raise feature. | 1141 | Auto Raise mode does nothing under most window managers, which |
| 1142 | Some window managers allow you to enable auto-raise for certain windows. | 1142 | switch focus on mouse clicks. It only has an effect if your |
| 1143 | You can use that for Emacs windows if you wish, but if you do, | 1143 | window manager switches focus on mouse movement (in which case |
| 1144 | that is beyond the control of Emacs and this command has no effect on it." | 1144 | you should also change `focus-follows-mouse' to t). Then, |
| 1145 | enabling Auto Raise mode causes any graphical Emacs frame which | ||
| 1146 | acquires focus to be automatically raised. | ||
| 1147 | |||
| 1148 | Note that this minor mode controls Emacs's own auto-raise | ||
| 1149 | feature. Window managers that switch focus on mouse movement | ||
| 1150 | often have their own auto-raise feature." | ||
| 1145 | :variable (frame-parameter nil 'auto-raise) | 1151 | :variable (frame-parameter nil 'auto-raise) |
| 1146 | (if (frame-parameter nil 'auto-raise) | 1152 | (if (frame-parameter nil 'auto-raise) |
| 1147 | (raise-frame))) | 1153 | (raise-frame))) |
| @@ -1152,10 +1158,16 @@ With a prefix argument ARG, enable Auto Lower mode if ARG is | |||
| 1152 | positive, and disable it otherwise. If called from Lisp, enable | 1158 | positive, and disable it otherwise. If called from Lisp, enable |
| 1153 | the mode if ARG is omitted or nil. | 1159 | the mode if ARG is omitted or nil. |
| 1154 | 1160 | ||
| 1155 | Note that this controls Emacs's own auto-lower feature. | 1161 | Auto Lower mode does nothing under most window managers, which |
| 1156 | Some window managers allow you to enable auto-lower for certain windows. | 1162 | switch focus on mouse clicks. It only has an effect if your |
| 1157 | You can use that for Emacs windows if you wish, but if you do, | 1163 | window manager switches focus on mouse movement (in which case |
| 1158 | that is beyond the control of Emacs and this command has no effect on it." | 1164 | you should also change `focus-follows-mouse' to t). Then, |
| 1165 | enabling Auto Lower Mode causes any graphical Emacs frame which | ||
| 1166 | loses focus to be automatically lowered. | ||
| 1167 | |||
| 1168 | Note that this minor mode controls Emacs's own auto-lower | ||
| 1169 | feature. Window managers that switch focus on mouse movement | ||
| 1170 | often have their own features for raising or lowering frames." | ||
| 1159 | :variable (frame-parameter nil 'auto-lower)) | 1171 | :variable (frame-parameter nil 'auto-lower)) |
| 1160 | 1172 | ||
| 1161 | (defun set-frame-name (name) | 1173 | (defun set-frame-name (name) |