Mercurial > emacs
diff lisp/bindings.el @ 111837:ed4be998eae9
* lisp/bindings.el (complete-symbol): Move back from minibuffer.el.
* lisp/minibuffer.el (completion-at-point): Remove the `arg'.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 06 Dec 2010 16:06:02 -0500 |
parents | bd12e9f7bf79 |
children | 417b1e4d63cd |
line wrap: on
line diff
--- a/lisp/bindings.el Mon Dec 06 13:21:42 2010 -0500 +++ b/lisp/bindings.el Mon Dec 06 16:06:02 2010 -0500 @@ -655,6 +655,16 @@ (define-key esc-map "\t" 'complete-symbol) +(defun complete-symbol (arg) + "Perform completion on the text around point. +The completion method is determined by `completion-at-point-functions'. + +With a prefix argument, this command does completion within +the collection of symbols listed in the index of the manual for the +language you are using." + (interactive "P") + (if arg (info-complete-symbol) (completion-at-point))) + ;; Reduce total amount of space we must allocate during this function ;; that we will not need to keep permanently. (garbage-collect)