diff options
| author | Jim Blandy | 1993-06-09 11:59:12 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-09 11:59:12 +0000 |
| commit | eb8c3be94e12644f506b8857e49ffef88046bb0b (patch) | |
| tree | 505c4ea5ae59214e4d6e749047d160c98191c9d2 /lisp/completion.el | |
| parent | 16a4a21d0117ef5ed346f340f244fe199d3c8a26 (diff) | |
| download | emacs-eb8c3be94e12644f506b8857e49ffef88046bb0b.tar.gz emacs-eb8c3be94e12644f506b8857e49ffef88046bb0b.zip | |
Apply typo patches from Paul Eggert.
Diffstat (limited to 'lisp/completion.el')
| -rw-r--r-- | lisp/completion.el | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/completion.el b/lisp/completion.el index e450c55162a..2192239f56a 100644 --- a/lisp/completion.el +++ b/lisp/completion.el | |||
| @@ -111,13 +111,13 @@ | |||
| 111 | ;;;--------------------- | 111 | ;;;--------------------- |
| 112 | ;;; | 112 | ;;; |
| 113 | ;;; A "word" is any string containing characters with either word or symbol | 113 | ;;; A "word" is any string containing characters with either word or symbol |
| 114 | ;;; syntax. [E.G. Any alphanumeric string with hypens, underscores, etc.] | 114 | ;;; syntax. [E.G. Any alphanumeric string with hyphens, underscores, etc.] |
| 115 | ;;; Unless you change the constants, you must type at least three characters | 115 | ;;; Unless you change the constants, you must type at least three characters |
| 116 | ;;; for the word to be recognized. Only words longer than 6 characters are | 116 | ;;; for the word to be recognized. Only words longer than 6 characters are |
| 117 | ;;; saved. | 117 | ;;; saved. |
| 118 | ;;; | 118 | ;;; |
| 119 | ;;; When you load this file, completion will be on. I suggest you use the | 119 | ;;; When you load this file, completion will be on. I suggest you use the |
| 120 | ;;; compiled version (because it is noticibly faster). | 120 | ;;; compiled version (because it is noticeably faster). |
| 121 | ;;; | 121 | ;;; |
| 122 | ;;; M-X completion-mode toggles whether or not new words are added to the | 122 | ;;; M-X completion-mode toggles whether or not new words are added to the |
| 123 | ;;; database by changing the value of enable-completion. | 123 | ;;; database by changing the value of enable-completion. |
| @@ -273,7 +273,7 @@ | |||
| 273 | ;;; superior to that of the LISPM version. | 273 | ;;; superior to that of the LISPM version. |
| 274 | ;;; | 274 | ;;; |
| 275 | ;;;----------------------------------------------- | 275 | ;;;----------------------------------------------- |
| 276 | ;;; Acknowlegements | 276 | ;;; Acknowledgements |
| 277 | ;;;----------------------------------------------- | 277 | ;;;----------------------------------------------- |
| 278 | ;;; Cliff Lasser (cal@think.com), Kevin Herbert (kph@cisco.com), | 278 | ;;; Cliff Lasser (cal@think.com), Kevin Herbert (kph@cisco.com), |
| 279 | ;;; eero@media-lab, kgk@cs.brown.edu, jla@ai.mit.edu, | 279 | ;;; eero@media-lab, kgk@cs.brown.edu, jla@ai.mit.edu, |
| @@ -527,7 +527,7 @@ Used to decide whether to save completions.") | |||
| 527 | ;;; | 527 | ;;; |
| 528 | ;;; C diffs -> | 528 | ;;; C diffs -> |
| 529 | ;;; Separator chars :: + * / : % | 529 | ;;; Separator chars :: + * / : % |
| 530 | ;;; A note on the hypen (`-'). Perhaps, the hypen should also be a separator | 530 | ;;; A note on the hyphen (`-'). Perhaps the hyphen should also be a separator |
| 531 | ;;; char., however, we wanted to have completion symbols include pointer | 531 | ;;; char., however, we wanted to have completion symbols include pointer |
| 532 | ;;; references. For example, "foo->bar" is a symbol as far as completion is | 532 | ;;; references. For example, "foo->bar" is a symbol as far as completion is |
| 533 | ;;; concerned. | 533 | ;;; concerned. |
| @@ -1060,7 +1060,7 @@ This is sensitive to `case-fold-search'." | |||
| 1060 | (defconst cmpl-obarray-length 511) | 1060 | (defconst cmpl-obarray-length 511) |
| 1061 | 1061 | ||
| 1062 | (defvar cmpl-prefix-obarray (make-vector cmpl-obarray-length 0) | 1062 | (defvar cmpl-prefix-obarray (make-vector cmpl-obarray-length 0) |
| 1063 | "An obarray used to store the downcased completion prefices. | 1063 | "An obarray used to store the downcased completion prefixes. |
| 1064 | Each symbol is bound to a list of completion entries.") | 1064 | Each symbol is bound to a list of completion entries.") |
| 1065 | 1065 | ||
| 1066 | (defvar cmpl-obarray (make-vector cmpl-obarray-length 0) | 1066 | (defvar cmpl-obarray (make-vector cmpl-obarray-length 0) |
| @@ -1139,7 +1139,7 @@ Each symbol is bound to a single completion entry.") | |||
| 1139 | (defmacro set-cmpl-prefix-entry-tail (prefix-entry new-tail) | 1139 | (defmacro set-cmpl-prefix-entry-tail (prefix-entry new-tail) |
| 1140 | (list 'setcdr prefix-entry new-tail)) | 1140 | (list 'setcdr prefix-entry new-tail)) |
| 1141 | 1141 | ||
| 1142 | ;;; Contructor | 1142 | ;;; Constructor |
| 1143 | 1143 | ||
| 1144 | (defun make-cmpl-prefix-entry (completion-entry-list) | 1144 | (defun make-cmpl-prefix-entry (completion-entry-list) |
| 1145 | "Makes a new prefix entry containing only completion-entry." | 1145 | "Makes a new prefix entry containing only completion-entry." |
| @@ -1287,7 +1287,7 @@ Must be called after `find-exact-completion'." | |||
| 1287 | ;;; WRITES | 1287 | ;;; WRITES |
| 1288 | (defun add-completion-to-tail-if-new (string) | 1288 | (defun add-completion-to-tail-if-new (string) |
| 1289 | "If STRING is not in the database add it to appropriate prefix list. | 1289 | "If STRING is not in the database add it to appropriate prefix list. |
| 1290 | STRING is added to the end of the approppriate prefix list with | 1290 | STRING is added to the end of the appropriate prefix list with |
| 1291 | num-uses = 0. The database is unchanged if it is there. STRING must be | 1291 | num-uses = 0. The database is unchanged if it is there. STRING must be |
| 1292 | longer than `completion-prefix-min-length'. | 1292 | longer than `completion-prefix-min-length'. |
| 1293 | This must be very fast. | 1293 | This must be very fast. |
| @@ -1321,7 +1321,7 @@ Returns the completion entry." | |||
| 1321 | 1321 | ||
| 1322 | (defun add-completion-to-head (string) | 1322 | (defun add-completion-to-head (string) |
| 1323 | "If STRING is not in the database, add it to prefix list. | 1323 | "If STRING is not in the database, add it to prefix list. |
| 1324 | STRING is added to the head of the approppriate prefix list. Otherwise | 1324 | STRING is added to the head of the appropriate prefix list. Otherwise |
| 1325 | it is moved to the head of the list. | 1325 | it is moved to the head of the list. |
| 1326 | STRING must be longer than `completion-prefix-min-length'. | 1326 | STRING must be longer than `completion-prefix-min-length'. |
| 1327 | Updates the saved string with the supplied string. | 1327 | Updates the saved string with the supplied string. |
| @@ -1779,7 +1779,7 @@ If there are no more entries, try cdabbrev and then return only a string." | |||
| 1779 | 1779 | ||
| 1780 | (defun complete (&optional arg) | 1780 | (defun complete (&optional arg) |
| 1781 | "Fill out a completion of the word before point. | 1781 | "Fill out a completion of the word before point. |
| 1782 | Point is left at end. Consective calls rotate through all possibilities. | 1782 | Point is left at end. Consecutive calls rotate through all possibilities. |
| 1783 | Prefix args :: | 1783 | Prefix args :: |
| 1784 | control-u :: leave the point at the beginning of the completion rather | 1784 | control-u :: leave the point at the beginning of the completion rather |
| 1785 | than at the end. | 1785 | than at the end. |
| @@ -2049,14 +2049,14 @@ Prefix args :: | |||
| 2049 | ;;; Symbol separator chars (have whitespace syntax) --> , ; * = ( | 2049 | ;;; Symbol separator chars (have whitespace syntax) --> , ; * = ( |
| 2050 | ;;; Opening char --> [ { | 2050 | ;;; Opening char --> [ { |
| 2051 | ;;; Closing char --> ] } | 2051 | ;;; Closing char --> ] } |
| 2052 | ;;; openning and closing must be skipped over | 2052 | ;;; opening and closing must be skipped over |
| 2053 | ;;; Whitespace chars (have symbol syntax) | 2053 | ;;; Whitespace chars (have symbol syntax) |
| 2054 | ;;; Everything else has word syntax | 2054 | ;;; Everything else has word syntax |
| 2055 | 2055 | ||
| 2056 | (defun cmpl-make-c-def-completion-syntax-table () | 2056 | (defun cmpl-make-c-def-completion-syntax-table () |
| 2057 | (let ((table (make-vector 256 0)) | 2057 | (let ((table (make-vector 256 0)) |
| 2058 | (whitespace-chars '(? ?\n ?\t ?\f ?\v ?\r)) | 2058 | (whitespace-chars '(? ?\n ?\t ?\f ?\v ?\r)) |
| 2059 | ;; unforunately the ?( causes the parens to appear unbalanced | 2059 | ;; unfortunately the ?( causes the parens to appear unbalanced |
| 2060 | (separator-chars '(?, ?* ?= ?\( ?\; | 2060 | (separator-chars '(?, ?* ?= ?\( ?\; |
| 2061 | )) | 2061 | )) |
| 2062 | ) | 2062 | ) |
| @@ -2505,14 +2505,14 @@ Patched to remove the most recent completion." | |||
| 2505 | ;;; Patches to self-insert-command. | 2505 | ;;; Patches to self-insert-command. |
| 2506 | ;;;----------------------------------------------- | 2506 | ;;;----------------------------------------------- |
| 2507 | 2507 | ||
| 2508 | ;;; Need 2 versions: generic seperator chars. and space (to get auto fill | 2508 | ;;; Need 2 versions: generic separator chars. and space (to get auto fill |
| 2509 | ;;; to work) | 2509 | ;;; to work) |
| 2510 | 2510 | ||
| 2511 | ;;; All common separators (eg. space "(" ")" """) characters go through a | 2511 | ;;; All common separators (eg. space "(" ")" """) characters go through a |
| 2512 | ;;; function to add new words to the list of words to complete from: | 2512 | ;;; function to add new words to the list of words to complete from: |
| 2513 | ;;; COMPLETION-SEPARATOR-SELF-INSERT-COMMAND (arg). | 2513 | ;;; COMPLETION-SEPARATOR-SELF-INSERT-COMMAND (arg). |
| 2514 | ;;; If the character before this was an alpha-numeric then this adds the | 2514 | ;;; If the character before this was an alpha-numeric then this adds the |
| 2515 | ;;; symbol befoe point to the completion list (using ADD-COMPLETION). | 2515 | ;;; symbol before point to the completion list (using ADD-COMPLETION). |
| 2516 | 2516 | ||
| 2517 | (defun completion-separator-self-insert-command (arg) | 2517 | (defun completion-separator-self-insert-command (arg) |
| 2518 | (interactive "p") | 2518 | (interactive "p") |