aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2006-01-25 04:11:05 +0000
committerLuc Teirlinck2006-01-25 04:11:05 +0000
commit699ee5f57ac1154b1e8a7b6f0e56146d1db2e4f8 (patch)
tree33ccd013d380014182a0bd9943240e908920b146
parent82a31b62db37d91bbea58e289b370d078eac74fc (diff)
downloademacs-699ee5f57ac1154b1e8a7b6f0e56146d1db2e4f8.tar.gz
emacs-699ee5f57ac1154b1e8a7b6f0e56146d1db2e4f8.zip
Minor fixes in introductory comment.
(completion-def-wrapper): Fix alist.
-rw-r--r--lisp/completion.el25
1 files changed, 13 insertions, 12 deletions
diff --git a/lisp/completion.el b/lisp/completion.el
index 28bf1dd10b9..e231906ad27 100644
--- a/lisp/completion.el
+++ b/lisp/completion.el
@@ -82,11 +82,11 @@
82;; SAVING/LOADING COMPLETIONS 82;; SAVING/LOADING COMPLETIONS
83;; Completions are automatically saved from one session to another 83;; Completions are automatically saved from one session to another
84;; (unless save-completions-flag or enable-completion is nil). 84;; (unless save-completions-flag or enable-completion is nil).
85;; Activating this minor-mode calling completion-initialize) causes Emacs 85;; Activating this minor-mode (calling completion-initialize) loads
86;; to load a completions database for a saved completions file 86;; a completions database for a saved completions file
87;; (default: ~/.completions). When you exit, Emacs saves a copy of the 87;; (default: ~/.completions). When you exit, Emacs saves a copy of the
88;; completions that you 88;; completions that you often use. When you next start, Emacs loads in
89;; often use. When you next start, Emacs loads in the saved completion file. 89;; the saved completion file.
90;; 90;;
91;; The number of completions saved depends loosely on 91;; The number of completions saved depends loosely on
92;; *saved-completions-decay-factor*. Completions that have never been 92;; *saved-completions-decay-factor*. Completions that have never been
@@ -2250,13 +2250,14 @@ Patched to remove the most recent completion."
2250TYPE is the type of the wrapper to be added. Can be :before or :under." 2250TYPE is the type of the wrapper to be added. Can be :before or :under."
2251 (put function-name 'completion-function 2251 (put function-name 'completion-function
2252 (cdr (assq type 2252 (cdr (assq type
2253 '((:separator 'use-completion-before-separator) 2253 '((:separator . use-completion-before-separator)
2254 (:before 'use-completion-before-point) 2254 (:before . use-completion-before-point)
2255 (:backward-under 'use-completion-backward-under) 2255 (:backward-under . use-completion-backward-under)
2256 (:backward 'use-completion-backward) 2256 (:backward . use-completion-backward)
2257 (:under 'use-completion-under-point) 2257 (:under . use-completion-under-point)
2258 (:under-or-before 'use-completion-under-or-before-point) 2258 (:under-or-before . use-completion-under-or-before-point)
2259 (:minibuffer-separator 'use-completion-minibuffer-separator)))))) 2259 (:minibuffer-separator
2260 . use-completion-minibuffer-separator))))))
2260 2261
2261(defun use-completion-minibuffer-separator () 2262(defun use-completion-minibuffer-separator ()
2262 (let ((completion-syntax-table completion-standard-syntax-table)) 2263 (let ((completion-syntax-table completion-standard-syntax-table))
@@ -2354,7 +2355,7 @@ TYPE is the type of the wrapper to be added. Can be :before or :under."
2354 (if dynamic-completion-mode 2355 (if dynamic-completion-mode
2355 (add-hook (car x) (cdr x)) 2356 (add-hook (car x) (cdr x))
2356 (remove-hook (car x) (cdr x)))) 2357 (remove-hook (car x) (cdr x))))
2357 2358
2358 ;; "Complete" Key Keybindings. We don't want to use a minor-mode 2359 ;; "Complete" Key Keybindings. We don't want to use a minor-mode
2359 ;; map because these have too high a priority. We could/should 2360 ;; map because these have too high a priority. We could/should
2360 ;; probably change the interpretation of minor-mode-map-alist such 2361 ;; probably change the interpretation of minor-mode-map-alist such