From: Richard M. Stallman Date: Mon, 11 Jul 1994 21:26:44 +0000 (+0000) Subject: (lisp-complete-symbol): Bind completion-fixup-function. X-Git-Tag: emacs-19.34~7648 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=52ae2b425612bea551fac9d3274d8a9e6ed257f2;p=emacs.git (lisp-complete-symbol): Bind completion-fixup-function. --- diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index d6f3e4afb8d..07a22698c6e 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el @@ -277,7 +277,12 @@ function definitions, values or properties are considered." (insert completion)) (t (message "Making completion list...") - (let ((list (all-completions pattern obarray predicate))) + (let ((list (all-completions pattern obarray predicate)) + (completion-fixup-function + (function (lambda () (if (save-excursion + (goto-char (max (point-min) (- (point) 4))) + (looking-at " ")) + (forward-char -4)))))) (or (eq predicate 'fboundp) (let (new) (while list