diff options
| author | Jim Blandy | 1993-07-05 04:33:42 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-07-05 04:33:42 +0000 |
| commit | 15db4e0e34041e0d0191503288cf00d9ba54c6b4 (patch) | |
| tree | b37f0db3242d983f1956e5642b267b79a4e1d8c0 | |
| parent | 6765e5b09858e01f446984c83ed19a5ee4745fd2 (diff) | |
| download | emacs-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.el | 4 |
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." | |||
| 359 | POSITION should be a list of the form | 359 | POSITION should be a list of the form |
| 360 | (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) | 360 | (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) |
| 361 | as returned by the `event-start' and `event-end' functions." | 361 | as 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. |