summaryrefslogtreecommitdiff
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-02-10 07:39:09 +0000
committerRichard M. Stallman <rms@gnu.org>1994-02-10 07:39:09 +0000
commit6f482eec7710df1a99f252f479cf11dd4cde889e (patch)
tree680a45807575521e4d95e5fd8c72486236c0c7c1 /lisp/mouse.el
parentfee7a5a2e317058ca24dd629b2f7e3af76e10f49 (diff)
downloademacs-6f482eec7710df1a99f252f479cf11dd4cde889e.tar.gz
(mouse-start-end): For double click with START on openparen,
start forward scan from START.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 137fd54d189..64f188928c8 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -290,7 +290,11 @@ If DIR is positive skip forward; if negative, skip backward."
(= start end)
(char-after start)
(= (char-syntax (char-after start)) ?\())
- (list start (save-excursion (forward-sexp 1) (point))))
+ (list start
+ (save-excursion
+ (goto-char start)
+ (forward-sexp 1)
+ (point))))
((and (= mode 1)
(= start end)
(char-after start)