diff options
| author | Stefan Monnier | 2008-07-05 04:27:37 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-07-05 04:27:37 +0000 |
| commit | 1bd38124f0d586bd555f93c63a3bd13a15aa4a5e (patch) | |
| tree | 5e5b63c1406aa9001ee052cdbf1c6bfabf525cb9 | |
| parent | 41b90495794f94679f36e7b89f4ce32f02449aca (diff) | |
| download | emacs-1bd38124f0d586bd555f93c63a3bd13a15aa4a5e.tar.gz emacs-1bd38124f0d586bd555f93c63a3bd13a15aa4a5e.zip | |
(mouse-drag-throw, mouse-drag-drag): Autoload.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/mouse-drag.el | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e5e5c7e629c..08006c398a4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-07-05 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-07-05 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * mouse-drag.el (mouse-drag-throw, mouse-drag-drag): Autoload. | ||
| 4 | |||
| 3 | * textmodes/sgml-mode.el (sgml-font-lock-syntactic-keywords): | 5 | * textmodes/sgml-mode.el (sgml-font-lock-syntactic-keywords): |
| 4 | Use syntax-ppss on a position *before* the char we want to change. | 6 | Use syntax-ppss on a position *before* the char we want to change. |
| 5 | 7 | ||
diff --git a/lisp/mouse-drag.el b/lisp/mouse-drag.el index e3eada70d81..ead45d43959 100644 --- a/lisp/mouse-drag.el +++ b/lisp/mouse-drag.el | |||
| @@ -48,8 +48,7 @@ | |||
| 48 | ;; for ``one-click text copy and move''. | 48 | ;; for ``one-click text copy and move''. |
| 49 | ;; | 49 | ;; |
| 50 | ;; To use mouse-drag, place the following in your .emacs file: | 50 | ;; To use mouse-drag, place the following in your .emacs file: |
| 51 | ;; (require 'mouse-drag) | 51 | ;; -either- |
| 52 | ;; -and either- | ||
| 53 | ;; (global-set-key [down-mouse-2] 'mouse-drag-throw) | 52 | ;; (global-set-key [down-mouse-2] 'mouse-drag-throw) |
| 54 | ;; -or- | 53 | ;; -or- |
| 55 | ;; (global-set-key [down-mouse-2] 'mouse-drag-drag) | 54 | ;; (global-set-key [down-mouse-2] 'mouse-drag-drag) |
| @@ -187,7 +186,7 @@ If t, the scroll bar moves in the direction the mouse moves.") | |||
| 187 | (if (< mouse-delta 0) -1 1) | 186 | (if (< mouse-delta 0) -1 1) |
| 188 | (if mouse-throw-with-scroll-bar 1 -1))) | 187 | (if mouse-throw-with-scroll-bar 1 -1))) |
| 189 | 188 | ||
| 190 | 189 | ;;;###autoload | |
| 191 | (defun mouse-drag-throw (start-event) | 190 | (defun mouse-drag-throw (start-event) |
| 192 | "\"Throw\" the page according to a mouse drag. | 191 | "\"Throw\" the page according to a mouse drag. |
| 193 | 192 | ||
| @@ -254,6 +253,7 @@ To test this function, evaluate: | |||
| 254 | ;; Now restore the old window. | 253 | ;; Now restore the old window. |
| 255 | (select-window old-selected-window))) | 254 | (select-window old-selected-window))) |
| 256 | 255 | ||
| 256 | ;;;###autoload | ||
| 257 | (defun mouse-drag-drag (start-event) | 257 | (defun mouse-drag-drag (start-event) |
| 258 | "\"Drag\" the page according to a mouse drag. | 258 | "\"Drag\" the page according to a mouse drag. |
| 259 | 259 | ||