aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-29 21:35:56 +0000
committerRichard M. Stallman1994-07-29 21:35:56 +0000
commit88dd3c24e898d5f281513b5d31d53e87f46c8278 (patch)
treeead11ab4156325170a031f5d06e60f0ec4aa3bf0
parentaba6cc353258de4fbbdba33434392c70e20e0118 (diff)
downloademacs-88dd3c24e898d5f281513b5d31d53e87f46c8278.tar.gz
emacs-88dd3c24e898d5f281513b5d31d53e87f46c8278.zip
(choose-completion): Check for next-single-property-change returning nil.
-rw-r--r--lisp/simple.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 237be507cf1..da837322c8f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2491,7 +2491,7 @@ it were the arg to `interactive' (which see) to interactively read the value."
2491 (if (null beg) 2491 (if (null beg)
2492 (error "No completion here")) 2492 (error "No completion here"))
2493 (setq beg (previous-single-property-change beg 'mouse-face)) 2493 (setq beg (previous-single-property-change beg 'mouse-face))
2494 (setq end (next-single-property-change end 'mouse-face)) 2494 (setq end (or (next-single-property-change end 'mouse-face) (point-max)))
2495 (choose-completion-string (buffer-substring beg end)))) 2495 (choose-completion-string (buffer-substring beg end))))
2496 2496
2497;; Delete the longest partial match for STRING 2497;; Delete the longest partial match for STRING