Mercurial > emacs
comparison lisp/simple.el @ 23450:085606778286
(completion-fixup-function): Variable deleted.
(completion-setup-function): Delete code for completion-fixup-function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 13 Oct 1998 23:55:45 +0000 |
parents | 7ccd43d053fd |
children | b6dbbd2cc3ac |
comparison
equal
deleted
inserted
replaced
23449:c7a91c0586da | 23450:085606778286 |
---|---|
3802 (setq major-mode 'completion-list-mode) | 3802 (setq major-mode 'completion-list-mode) |
3803 (make-local-variable 'completion-base-size) | 3803 (make-local-variable 'completion-base-size) |
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 | |
3810 each time it has found what it thinks is one completion. | |
3811 Point is at the end of the completion in the completion list buffer. | |
3812 If 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. |
3816 When this hook is run, the current buffer is the one in which the | 3809 When this hook is run, the current buffer is the one in which the |
3817 command to display the completion list buffer was run. | 3810 command to display the completion list buffer was run. |
3818 The completion list buffer is available as the value of `standard-output'.") | 3811 The completion list buffer is available as the value of `standard-output'.") |
3846 (if window-system | 3839 (if window-system |
3847 (insert (substitute-command-keys | 3840 (insert (substitute-command-keys |
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 \ |
3851 select the completion near point.\n\n")) | 3844 select 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 |
3863 (define-key minibuffer-local-completion-map [prior] | 3848 (define-key minibuffer-local-completion-map [prior] |
3864 'switch-to-completions) | 3849 'switch-to-completions) |