1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

(mouse-choose-completion): Check for next-single-property-change

returning nil.
This commit is contained in:
Richard M. Stallman 1994-07-29 21:42:41 +00:00
parent 88dd3c24e8
commit 2f5ed2e8b3

View File

@ -1204,7 +1204,8 @@ and selects that window."
(if (null beg)
(error "No completion here"))
(setq beg (previous-single-property-change beg 'mouse-face))
(setq end (next-single-property-change end 'mouse-face))
(setq end (or (next-single-property-change end 'mouse-face)
(point-max)))
(setq choice (buffer-substring beg end)))))
(let ((owindow (selected-window)))
(select-window (posn-window (event-start event)))