aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/frame.el30
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 @@
12011-11-29 Chong Yidong <cyd@gnu.org>
2
3 * frame.el (auto-raise-mode, auto-lower-mode): Doc fix.
4
12011-11-28 Stefan Monnier <monnier@iro.umontreal.ca> 52011-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.
1137With a prefix argument ARG, enable Auto Raise mode if ARG is 1137With a prefix argument ARG, enable Auto Raise mode if ARG is
1138positive, and disable it otherwise. If called from Lisp, enable 1138positive, and disable it otherwise. If called from Lisp, enable
1139the mode if ARG is omitted or nil. 1139the mode if ARG is omitted or nil.
1140 1140
1141Note that this controls Emacs's own auto-raise feature. 1141Auto Raise mode does nothing under most window managers, which
1142Some window managers allow you to enable auto-raise for certain windows. 1142switch focus on mouse clicks. It only has an effect if your
1143You can use that for Emacs windows if you wish, but if you do, 1143window manager switches focus on mouse movement (in which case
1144that is beyond the control of Emacs and this command has no effect on it." 1144you should also change `focus-follows-mouse' to t). Then,
1145enabling Auto Raise mode causes any graphical Emacs frame which
1146acquires focus to be automatically raised.
1147
1148Note that this minor mode controls Emacs's own auto-raise
1149feature. Window managers that switch focus on mouse movement
1150often 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
1152positive, and disable it otherwise. If called from Lisp, enable 1158positive, and disable it otherwise. If called from Lisp, enable
1153the mode if ARG is omitted or nil. 1159the mode if ARG is omitted or nil.
1154 1160
1155Note that this controls Emacs's own auto-lower feature. 1161Auto Lower mode does nothing under most window managers, which
1156Some window managers allow you to enable auto-lower for certain windows. 1162switch focus on mouse clicks. It only has an effect if your
1157You can use that for Emacs windows if you wish, but if you do, 1163window manager switches focus on mouse movement (in which case
1158that is beyond the control of Emacs and this command has no effect on it." 1164you should also change `focus-follows-mouse' to t). Then,
1165enabling Auto Lower Mode causes any graphical Emacs frame which
1166loses focus to be automatically lowered.
1167
1168Note that this minor mode controls Emacs's own auto-lower
1169feature. Window managers that switch focus on mouse movement
1170often 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)