aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2016-06-25 16:23:04 -0400
committerNoam Postavsky2016-06-27 00:32:51 -0400
commitebf047254b374eedc6fa24625d30213aa095cab9 (patch)
treeee3ee21970650bcaaae976e2817818fcd9941036
parentfd9fad062f45d041260e1678311f08ffa926bfff (diff)
downloademacs-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.el8
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'.
459If the context at point allows only a certain category of
460symbols (e.g. functions, or variables) then the returned
461completions are restricted to that category. In contexts where
462any symbol is possible (following a quote, for example),
463functions 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