aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-10-13 23:55:45 +0000
committerRichard M. Stallman1998-10-13 23:55:45 +0000
commit7d22ed15b7bec3317eaaba55a6248a9e4b76fedc (patch)
treeb879425b9a6c4ca8c4f577160e73e2ed1b90eedf
parent4b37311e137bdcc4e52daf48fb7a0d9e1878209a (diff)
downloademacs-7d22ed15b7bec3317eaaba55a6248a9e4b76fedc.tar.gz
emacs-7d22ed15b7bec3317eaaba55a6248a9e4b76fedc.zip
(completion-fixup-function): Variable deleted.
(completion-setup-function): Delete code for completion-fixup-function.
-rw-r--r--lisp/simple.el17
1 files changed, 1 insertions, 16 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index acdc8bba433..a797263e9f5 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3804,13 +3804,6 @@ Use \\<completion-list-mode-map>\\[mouse-choose-completion] to select one\
3804 (setq completion-base-size nil) 3804 (setq completion-base-size nil)
3805 (run-hooks 'completion-list-mode-hook)) 3805 (run-hooks 'completion-list-mode-hook))
3806 3806
3807(defvar completion-fixup-function nil
3808 "A function to customize how completions are identified in completion lists.
3809`completion-setup-function' calls this function with no arguments
3810each time it has found what it thinks is one completion.
3811Point is at the end of the completion in the completion list buffer.
3812If this function moves point, it can alter the end of that completion.")
3813
3814(defvar completion-setup-hook nil 3807(defvar completion-setup-hook nil
3815 "Normal hook run at the end of setting up a completion list buffer. 3808 "Normal hook run at the end of setting up a completion list buffer.
3816When this hook is run, the current buffer is the one in which the 3809When this hook is run, the current buffer is the one in which the
@@ -3848,15 +3841,7 @@ The completion list buffer is available as the value of `standard-output'.")
3848 "Click \\[mouse-choose-completion] on a completion to select it.\n"))) 3841 "Click \\[mouse-choose-completion] on a completion to select it.\n")))
3849 (insert (substitute-command-keys 3842 (insert (substitute-command-keys
3850 "In this buffer, type \\[choose-completion] to \ 3843 "In this buffer, type \\[choose-completion] to \
3851select the completion near point.\n\n")) 3844select the completion near point.\n\n")))))
3852 (forward-line 1)
3853 (while (re-search-forward "[^ \t\n]+\\( [^ \t\n]+\\)*" nil t)
3854 (let ((beg (match-beginning 0))
3855 (end (point)))
3856 (if completion-fixup-function
3857 (funcall completion-fixup-function))
3858 (put-text-property beg (point) 'mouse-face 'highlight)
3859 (goto-char end))))))
3860 3845
3861(add-hook 'completion-setup-hook 'completion-setup-function) 3846(add-hook 'completion-setup-hook 'completion-setup-function)
3862 3847