]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 27 Apr 2010 17:57:32 +0000 (13:57 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 27 Apr 2010 17:57:32 +0000 (13:57 -0400)
lisp/ChangeLog
lisp/emacs-lisp/lisp.el

index 1d07fc85a1523db1491f5ae660c2ef1850597036..e17b075759bbd7bd931c3cd00a53eb1b6c80fe84 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.
+
 2010-04-27  Sam Steingold  <sds@gnu.org>
 
        * progmodes/bug-reference.el (bug-reference-url-format): Mark as
index 58289660a3ccec668499eec023b6fdc50f634fda..6e209156b92bb063c6352e176232e728dc47b812 100644 (file)
@@ -624,9 +624,12 @@ considered."
   (interactive)
   (let* ((data (lisp-completion-at-point predicate))
          (plist (nthcdr 3 data)))
-    (let ((completion-annotate-function (plist-get plist :annotate-function)))
-      (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data)
-                            (plist-get plist :predicate)))))
+    (if (null data)
+        (minibuffer-message "Nothing to complete")
+      (let ((completion-annotate-function
+             (plist-get plist :annotate-function)))
+        (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data)
+                              (plist-get plist :predicate))))))
     
 
 (defun lisp-completion-at-point (&optional predicate)