diff options
| author | Stefan Monnier | 2010-04-27 13:57:32 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-04-27 13:57:32 -0400 |
| commit | ccaa47655d21a7c5b37d4e3607deb9c729b34d70 (patch) | |
| tree | 25f6d5aa276be40e2f1620186016980c4070bda9 | |
| parent | 2a6f654ef1656603fa9f3d925efe3e1a5cbe0ecc (diff) | |
| download | emacs-ccaa47655d21a7c5b37d4e3607deb9c729b34d70.tar.gz emacs-ccaa47655d21a7c5b37d4e3607deb9c729b34d70.zip | |
* emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1d07fc85a15..e17b075759b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-04-27 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully. | ||
| 4 | |||
| 1 | 2010-04-27 Sam Steingold <sds@gnu.org> | 5 | 2010-04-27 Sam Steingold <sds@gnu.org> |
| 2 | 6 | ||
| 3 | * progmodes/bug-reference.el (bug-reference-url-format): Mark as | 7 | * progmodes/bug-reference.el (bug-reference-url-format): Mark as |
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 58289660a3c..6e209156b92 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -624,9 +624,12 @@ considered." | |||
| 624 | (interactive) | 624 | (interactive) |
| 625 | (let* ((data (lisp-completion-at-point predicate)) | 625 | (let* ((data (lisp-completion-at-point predicate)) |
| 626 | (plist (nthcdr 3 data))) | 626 | (plist (nthcdr 3 data))) |
| 627 | (let ((completion-annotate-function (plist-get plist :annotate-function))) | 627 | (if (null data) |
| 628 | (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data) | 628 | (minibuffer-message "Nothing to complete") |
| 629 | (plist-get plist :predicate))))) | 629 | (let ((completion-annotate-function |
| 630 | (plist-get plist :annotate-function))) | ||
| 631 | (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data) | ||
| 632 | (plist-get plist :predicate)))))) | ||
| 630 | 633 | ||
| 631 | 634 | ||
| 632 | (defun lisp-completion-at-point (&optional predicate) | 635 | (defun lisp-completion-at-point (&optional predicate) |