diff options
| author | Noam Postavsky | 2016-06-25 16:23:04 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2016-06-27 00:32:51 -0400 |
| commit | ebf047254b374eedc6fa24625d30213aa095cab9 (patch) | |
| tree | ee3ee21970650bcaaae976e2817818fcd9941036 | |
| parent | fd9fad062f45d041260e1678311f08ffa926bfff (diff) | |
| download | emacs-ebf047254b374eedc6fa24625d30213aa095cab9.tar.gz emacs-ebf047254b374eedc6fa24625d30213aa095cab9.zip | |
Add to elisp-completion-at-point's docstring
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Document
position dependent behavior (Bug #19854).
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 7ad88712a4d..5111f887091 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -455,7 +455,13 @@ It can be quoted, or be inside a quoted form." | |||
| 455 | ((facep sym) (find-definition-noselect sym 'defface))))) | 455 | ((facep sym) (find-definition-noselect sym 'defface))))) |
| 456 | 456 | ||
| 457 | (defun elisp-completion-at-point () | 457 | (defun elisp-completion-at-point () |
| 458 | "Function used for `completion-at-point-functions' in `emacs-lisp-mode'." | 458 | "Function used for `completion-at-point-functions' in `emacs-lisp-mode'. |
| 459 | If the context at point allows only a certain category of | ||
| 460 | symbols (e.g. functions, or variables) then the returned | ||
| 461 | completions are restricted to that category. In contexts where | ||
| 462 | any symbol is possible (following a quote, for example), | ||
| 463 | functions are annotated with \"<f>\" via the | ||
| 464 | `:annotation-function' property." | ||
| 459 | (with-syntax-table emacs-lisp-mode-syntax-table | 465 | (with-syntax-table emacs-lisp-mode-syntax-table |
| 460 | (let* ((pos (point)) | 466 | (let* ((pos (point)) |
| 461 | (beg (condition-case nil | 467 | (beg (condition-case nil |