diff options
| author | Glenn Morris | 2012-04-16 20:04:53 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-04-16 20:04:53 -0400 |
| commit | 41f03f4da76827e8611267ee5283a5df8071a617 (patch) | |
| tree | 9663b92e6a7a59f5aab45e213c762186387e27dd /lisp | |
| parent | 121b8917ec329a6bbc292ad02f5c4e39d164fff5 (diff) | |
| download | emacs-41f03f4da76827e8611267ee5283a5df8071a617.tar.gz emacs-41f03f4da76827e8611267ee5283a5df8071a617.zip | |
Use auto-hscroll-mode rather than the alias automatic-hscrolling
* lisp/mouse.el (mouse-drag-track):
* lisp/speedbar.el (speedbar-frame-mode):
Use auto-hscroll-mode rather than the alias automatic-hscrolling.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mouse.el | 8 | ||||
| -rw-r--r-- | lisp/speedbar.el | 4 |
3 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 280bfe769a2..599a69bb9c2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-04-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mouse.el (mouse-drag-track): | ||
| 4 | * speedbar.el (speedbar-frame-mode): | ||
| 5 | Use auto-hscroll-mode rather than the alias automatic-hscrolling. | ||
| 6 | |||
| 1 | 2012-04-16 Leo Liu <sdl.web@gmail.com> | 7 | 2012-04-16 Leo Liu <sdl.web@gmail.com> |
| 2 | 8 | ||
| 3 | * progmodes/python.el: Trivial cleanup. | 9 | * progmodes/python.el: Trivial cleanup. |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 2e119483797..3344bbec2cc 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; mouse.el --- window system-independent mouse support | 1 | ;;; mouse.el --- window system-independent mouse support |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993-1995, 1999-2012 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993-1995, 1999-2012 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: FSF | 5 | ;; Maintainer: FSF |
| 6 | ;; Keywords: hardware, mouse | 6 | ;; Keywords: hardware, mouse |
| @@ -805,8 +805,8 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by | |||
| 805 | (= click-count 1))) | 805 | (= click-count 1))) |
| 806 | ;; Suppress automatic hscrolling, because that is a nuisance | 806 | ;; Suppress automatic hscrolling, because that is a nuisance |
| 807 | ;; when setting point near the right fringe (but see below). | 807 | ;; when setting point near the right fringe (but see below). |
| 808 | (automatic-hscrolling-saved automatic-hscrolling) | 808 | (auto-hscroll-mode-saved auto-hscroll-mode) |
| 809 | (automatic-hscrolling nil) | 809 | (auto-hscroll-mode nil) |
| 810 | event end end-point) | 810 | event end end-point) |
| 811 | 811 | ||
| 812 | (setq mouse-selection-click-count click-count) | 812 | (setq mouse-selection-click-count click-count) |
| @@ -838,7 +838,7 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by | |||
| 838 | ;; Automatic hscrolling did not occur during the call to | 838 | ;; Automatic hscrolling did not occur during the call to |
| 839 | ;; `read-event'; but if the user subsequently drags the | 839 | ;; `read-event'; but if the user subsequently drags the |
| 840 | ;; mouse, go ahead and hscroll. | 840 | ;; mouse, go ahead and hscroll. |
| 841 | (let ((automatic-hscrolling automatic-hscrolling-saved)) | 841 | (let ((auto-hscroll-mode auto-hscroll-mode-saved)) |
| 842 | (redisplay)) | 842 | (redisplay)) |
| 843 | (setq end (event-end event) | 843 | (setq end (event-end event) |
| 844 | end-point (posn-point end)) | 844 | end-point (posn-point end)) |
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index bb1debb4552..9065d9ed131 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; speedbar --- quick access to files and tags in a frame | 1 | ;;; speedbar --- quick access to files and tags in a frame |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996-2012 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1996-2012 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 6 | ;; Keywords: file, tags, tools | 6 | ;; Keywords: file, tags, tools |
| @@ -1022,7 +1022,7 @@ supported at a time. | |||
| 1022 | (set (make-local-variable 'dframe-delete-frame-function) | 1022 | (set (make-local-variable 'dframe-delete-frame-function) |
| 1023 | 'speedbar-handle-delete-frame) | 1023 | 'speedbar-handle-delete-frame) |
| 1024 | ;; hscroll | 1024 | ;; hscroll |
| 1025 | (set (make-local-variable 'automatic-hscrolling) nil) ; Emacs 21 | 1025 | (set (make-local-variable 'auto-hscroll-mode) nil) |
| 1026 | ;; reset the selection variable | 1026 | ;; reset the selection variable |
| 1027 | (setq speedbar-last-selected-file nil)) | 1027 | (setq speedbar-last-selected-file nil)) |
| 1028 | 1028 | ||