diff options
| author | Nicolas Petton | 2015-05-16 15:53:44 +0200 |
|---|---|---|
| committer | Nicolas Petton | 2015-05-16 15:58:24 +0200 |
| commit | daaa4a38e85c7af131568eaf0c487f0a51fd5f5b (patch) | |
| tree | 87125d56738d60f51974785446e3105b035dfa1a | |
| parent | 45651154473c7d2f16230da765d034ecfde7968a (diff) | |
| download | emacs-daaa4a38e85c7af131568eaf0c487f0a51fd5f5b.tar.gz emacs-daaa4a38e85c7af131568eaf0c487f0a51fd5f5b.zip | |
Removes the predicate from lisp-complete-symbol (Bug#20456)
* lisp/emacs-lisp/lisp.el (lisp-complete-symbol): Do not use predicate
and remove it from the docstring.
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 67d14872b3a..d401b316719 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -736,22 +736,19 @@ character." | |||
| 736 | ) | 736 | ) |
| 737 | (call-interactively 'minibuffer-complete))) | 737 | (call-interactively 'minibuffer-complete))) |
| 738 | 738 | ||
| 739 | (defun lisp-complete-symbol (&optional predicate) | 739 | (defun lisp-complete-symbol (&optional _predicate) |
| 740 | "Perform completion on Lisp symbol preceding point. | 740 | "Perform completion on Lisp symbol preceding point. |
| 741 | Compare that symbol against the known Lisp symbols. | 741 | Compare that symbol against the known Lisp symbols. |
| 742 | If no characters can be completed, display a list of possible completions. | 742 | If no characters can be completed, display a list of possible completions. |
| 743 | Repeating the command at that point scrolls the list. | 743 | Repeating the command at that point scrolls the list. |
| 744 | 744 | ||
| 745 | When called from a program, optional arg PREDICATE is a predicate | 745 | The context determines which symbols are considered. If the |
| 746 | determining which symbols are considered, e.g. `commandp'. | 746 | symbol starts just after an open-parenthesis, only symbols with |
| 747 | If PREDICATE is nil, the context determines which symbols are | 747 | function definitions are considered. Otherwise, all symbols with |
| 748 | considered. If the symbol starts just after an open-parenthesis, only | 748 | function definitions, values or properties are considered." |
| 749 | symbols with function definitions are considered. Otherwise, all | ||
| 750 | symbols with function definitions, values or properties are | ||
| 751 | considered." | ||
| 752 | (declare (obsolete completion-at-point "24.4")) | 749 | (declare (obsolete completion-at-point "24.4")) |
| 753 | (interactive) | 750 | (interactive) |
| 754 | (let* ((data (lisp-completion-at-point predicate)) | 751 | (let* ((data (lisp-completion-at-point)) |
| 755 | (plist (nthcdr 3 data))) | 752 | (plist (nthcdr 3 data))) |
| 756 | (if (null data) | 753 | (if (null data) |
| 757 | (minibuffer-message "Nothing to complete") | 754 | (minibuffer-message "Nothing to complete") |