summaryrefslogtreecommitdiff
path: root/lisp/minibuffer.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-02-08 13:32:35 -0500
committerGlenn Morris <rgm@gnu.org>2018-02-08 13:32:35 -0500
commitd34dbc0b69b288ee5e969208ab05b00a3fcc7638 (patch)
treec59cc566453a15f244911bbcb4ef9561d8541bc4 /lisp/minibuffer.el
parenta710f8aa61ca73054109dc4f926d1ac6aabdd849 (diff)
downloademacs-d34dbc0b69b288ee5e969208ab05b00a3fcc7638.tar.gz
Remove unused duplicate of minibuffer-completion-contents
* src/minibuf.c (Fminibuffer_completion_contents): Remove. Unused since introduction of minubuffer.el 2008-04-09. (syms_of_minibuf): Remove Sminibuffer_completion_contents. * lisp/minibuffer.el (minibuffer-completion-contents): Doc tweak.
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r--lisp/minibuffer.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 4d14b2641f3..ef0d40790c5 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -729,7 +729,8 @@ If ARGS are provided, then pass MESSAGE through `format-message'."
(defun minibuffer-completion-contents ()
"Return the user input in a minibuffer before point as a string.
-In Emacs-22, that was what completion commands operated on."
+In Emacs 22, that was what completion commands operated on.
+If the current buffer is not a minibuffer, return everything before point."
(declare (obsolete nil "24.4"))
(buffer-substring (minibuffer-prompt-end) (point)))