Mercurial > emacs
comparison lisp/completion.el @ 42205:7308bbc423d5
Doc fixes.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Thu, 20 Dec 2001 18:59:32 +0000 |
parents | 253f761ad37b |
children | 6deaf2e0ade2 |
comparison
equal
deleted
inserted
replaced
42204:73e75f765479 | 42205:7308bbc423d5 |
---|---|
840 cdabbrev-completions-tried | 840 cdabbrev-completions-tried |
841 (cons (downcase abbrev-string) initial-completions-tried)) | 841 (cons (downcase abbrev-string) initial-completions-tried)) |
842 (reset-cdabbrev-window t)) | 842 (reset-cdabbrev-window t)) |
843 | 843 |
844 (defun set-cdabbrev-buffer () | 844 (defun set-cdabbrev-buffer () |
845 ;; cdabbrev-current-window must not be NIL | 845 ;; cdabbrev-current-window must not be nil |
846 (set-buffer (if (eq cdabbrev-current-window t) | 846 (set-buffer (if (eq cdabbrev-current-window t) |
847 (other-buffer) | 847 (other-buffer) |
848 (window-buffer cdabbrev-current-window)))) | 848 (window-buffer cdabbrev-current-window)))) |
849 | 849 |
850 | 850 |
999 ;; Completion Entry Structure Definition | 999 ;; Completion Entry Structure Definition |
1000 ;;----------------------------------------------- | 1000 ;;----------------------------------------------- |
1001 | 1001 |
1002 ;; A completion entry is a LIST of string, prefix-symbol num-uses, and | 1002 ;; A completion entry is a LIST of string, prefix-symbol num-uses, and |
1003 ;; last-use-time (the time the completion was last used) | 1003 ;; last-use-time (the time the completion was last used) |
1004 ;; last-use-time is T if the string should be kept permanently | 1004 ;; last-use-time is t if the string should be kept permanently |
1005 ;; num-uses is incremented every time the completion is used. | 1005 ;; num-uses is incremented every time the completion is used. |
1006 | 1006 |
1007 ;; We chose lists because (car foo) is faster than (aref foo 0) and the | 1007 ;; We chose lists because (car foo) is faster than (aref foo 0) and the |
1008 ;; creation time is about the same. | 1008 ;; creation time is about the same. |
1009 | 1009 |
1017 ;; it." | 1017 ;; it." |
1018 (list 'car (list 'cdr completion-entry))) | 1018 (list 'car (list 'cdr completion-entry))) |
1019 | 1019 |
1020 (defmacro completion-last-use-time (completion-entry) | 1020 (defmacro completion-last-use-time (completion-entry) |
1021 ;; "The time it was last used. In hours since origin. Used to decide | 1021 ;; "The time it was last used. In hours since origin. Used to decide |
1022 ;; whether to save it. T if one should always save it." | 1022 ;; whether to save it. t if one should always save it." |
1023 (list 'nth 2 completion-entry)) | 1023 (list 'nth 2 completion-entry)) |
1024 | 1024 |
1025 (defmacro completion-source (completion-entry) | 1025 (defmacro completion-source (completion-entry) |
1026 (list 'nth 3 completion-entry)) | 1026 (list 'nth 3 completion-entry)) |
1027 | 1027 |
1130 ;; Set up by cmpl-db-symbol." | 1130 ;; Set up by cmpl-db-symbol." |
1131 (defvar cmpl-db-prefix-symbol nil) | 1131 (defvar cmpl-db-prefix-symbol nil) |
1132 ;; "The interned prefix symbol corresponding to cmpl-db-downcase-string." | 1132 ;; "The interned prefix symbol corresponding to cmpl-db-downcase-string." |
1133 (defvar cmpl-db-entry nil) | 1133 (defvar cmpl-db-entry nil) |
1134 (defvar cmpl-db-debug-p nil | 1134 (defvar cmpl-db-debug-p nil |
1135 "Set to T if you want to debug the database.") | 1135 "Set to t if you want to debug the database.") |
1136 | 1136 |
1137 ;; READS | 1137 ;; READS |
1138 (defun find-exact-completion (string) | 1138 (defun find-exact-completion (string) |
1139 "Return the completion entry for STRING or nil. | 1139 "Return the completion entry for STRING or nil. |
1140 Sets up `cmpl-db-downcase-string' and `cmpl-db-symbol'." | 1140 Sets up `cmpl-db-downcase-string' and `cmpl-db-symbol'." |