summaryrefslogtreecommitdiff
path: root/lisp/completion.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-04-16 16:04:01 +0000
committerRichard M. Stallman <rms@gnu.org>1996-04-16 16:04:01 +0000
commit896051489a6a633d7a7bf2b2ba128fc0b112d80b (patch)
tree65e0fb2d9bd70800257ec7dfdab16ee9da14ab74 /lisp/completion.el
parentc8747225a6c0b6e2a2d8cff2d0e48542a2be51a3 (diff)
downloademacs-896051489a6a633d7a7bf2b2ba128fc0b112d80b.tar.gz
Provide `completion'.
(cmpl-make-standard-completion-syntax-table): Initialize all chars (to whitespace if nothing else). (c-mode-map, fortran-mode-map): Add defvars to avoid warnings.
Diffstat (limited to 'lisp/completion.el')
-rw-r--r--lisp/completion.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/lisp/completion.el b/lisp/completion.el
index 2e6c465789f..835c3521756 100644
--- a/lisp/completion.el
+++ b/lisp/completion.el
@@ -528,8 +528,13 @@ Used to decide whether to save completions.")
;;-----------------------------------------------
(defun cmpl-make-standard-completion-syntax-table ()
- (let ((table (make-syntax-table)) ;; default syntax is whitespace
+ (let ((table (make-syntax-table))
i)
+ ;; Default syntax is whitespace.
+ (setq i 0)
+ (while (< i 256)
+ (modify-syntax-entry i " " table)
+ (setq i (1+ i)))
;; alpha chars
(setq i 0)
(while (< i 26)
@@ -2612,6 +2617,10 @@ TYPE is the type of the wrapper to be added. Can be :before or :under."
(define-key lisp-mode-map "=" 'self-insert-command)
(define-key lisp-mode-map "^" 'self-insert-command)
+;; Avoid warnings.
+(defvar c-mode-map)
+(defvar fortran-mode-map)
+
;; C mode diffs.
(defun completion-c-mode-hook ()
(def-completion-wrapper electric-c-semi :separator)
@@ -2671,4 +2680,6 @@ TYPE is the type of the wrapper to be added. Can be :before or :under."
(cmpl-statistics-block
(record-completion-file-loaded))
+(provide 'completion)
+
;;; completion.el ends here