]> code.delx.au - gnu-emacs/blobdiff - lisp/frame.el
(log-view-goto-rev): New function for the new VC.
[gnu-emacs] / lisp / frame.el
index e3fd95a5df03ad48492abfe47111ddfa3308deaa..5b7709b69b489a14b102535c9d5e3ebed0049467 100644 (file)
@@ -577,13 +577,14 @@ A negative ARG moves in the opposite order."
     (select-frame frame)
     (raise-frame frame)
     ;; Ensure, if possible, that frame gets input focus.
-    (cond ((eq window-system 'x)
-          (x-focus-frame frame))
-         ((eq window-system 'w32)
-          (w32-focus-frame frame)))
-    (when (and (not (eq window-system 'w32))
-              focus-follows-mouse)
-      (set-mouse-position (selected-frame) (1- (frame-width)) 0))))
+    (when (eq window-system 'w32)
+      (w32-focus-frame frame))
+    (cond (focus-follows-mouse
+          (unless (eq window-system 'w32)
+            (set-mouse-position (selected-frame) (1- (frame-width)) 0)))
+         (t
+          (when (eq window-system 'x)
+            (x-focus-frame frame))))))
 
 (defun make-frame-names-alist ()
   (let* ((current-frame (selected-frame))
@@ -994,6 +995,22 @@ FRAME nil or omitted means delete all frames except the selected frame."
   :group 'font-lock)
 
 
+\f
+;;; Scrolling
+
+(defgroup scrolling nil
+  "Scrolling windows."
+  :version "21.1"
+  :group 'frames)
+
+(defcustom automatic-hscrolling t
+  "*Allow or disallow autmatic scrolling windows horizontally.
+If non-nil, windows are automatically scrolled horizontally to make
+point visible."
+  :version "21.1"
+  :type 'boolean
+  :group 'scrolling)
+
 \f
 ;;; Blinking cursor