aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-07-05 04:33:42 +0000
committerJim Blandy1993-07-05 04:33:42 +0000
commit15db4e0e34041e0d0191503288cf00d9ba54c6b4 (patch)
treeb37f0db3242d983f1956e5642b267b79a4e1d8c0
parent6765e5b09858e01f446984c83ed19a5ee4745fd2 (diff)
downloademacs-15db4e0e34041e0d0191503288cf00d9ba54c6b4.tar.gz
emacs-15db4e0e34041e0d0191503288cf00d9ba54c6b4.zip
* subr.el (posn-point): Properly extract the BUFFER-POSITION field
of an event when read-key-sequence has placed it in a singleton list.
-rw-r--r--lisp/subr.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 23e9da84592..76593de4870 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -359,7 +359,9 @@ as returned by the `event-start' and `event-end' functions."
359POSITION should be a list of the form 359POSITION should be a list of the form
360 (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) 360 (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP)
361as returned by the `event-start' and `event-end' functions." 361as returned by the `event-start' and `event-end' functions."
362 (nth 1 position)) 362 (if (consp (nth 1 position))
363 (car (nth 1 position))
364 (nth 1 position)))
363 365
364(defsubst posn-col-row (position) 366(defsubst posn-col-row (position)
365 "Return the row and column in POSITION. 367 "Return the row and column in POSITION.