diff options
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/keymap.c b/src/keymap.c index 237bc0db9df..f67cc109e87 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1643,13 +1643,12 @@ specified buffer position instead of point are used. | |||
| 1643 | 1643 | ||
| 1644 | /* We are not interested in locations without event data */ | 1644 | /* We are not interested in locations without event data */ |
| 1645 | 1645 | ||
| 1646 | if (EVENT_HAS_PARAMETERS (event)) { | 1646 | if (EVENT_HAS_PARAMETERS (event)) |
| 1647 | Lisp_Object kind; | 1647 | { |
| 1648 | 1648 | Lisp_Object kind = EVENT_HEAD_KIND (EVENT_HEAD (event)); | |
| 1649 | kind = EVENT_HEAD_KIND (EVENT_HEAD (event)); | 1649 | if (CONSP (XCDR (event)) && EQ (kind, Qmouse_click)) |
| 1650 | if (EQ (kind, Qmouse_click)) | 1650 | position = EVENT_START (event); |
| 1651 | position = EVENT_START (event); | 1651 | } |
| 1652 | } | ||
| 1653 | } | 1652 | } |
| 1654 | 1653 | ||
| 1655 | /* Key sequences beginning with mouse clicks | 1654 | /* Key sequences beginning with mouse clicks |
| @@ -1742,7 +1741,8 @@ specified buffer position instead of point are used. | |||
| 1742 | 1741 | ||
| 1743 | pos = XCDR (string); | 1742 | pos = XCDR (string); |
| 1744 | string = XCAR (string); | 1743 | string = XCAR (string); |
| 1745 | if (XINT (pos) >= 0 | 1744 | if (INTEGERP (pos) |
| 1745 | && XINT (pos) >= 0 | ||
| 1746 | && XINT (pos) < SCHARS (string)) | 1746 | && XINT (pos) < SCHARS (string)) |
| 1747 | { | 1747 | { |
| 1748 | map = Fget_text_property (pos, Qlocal_map, string); | 1748 | map = Fget_text_property (pos, Qlocal_map, string); |