diff options
| author | Richard M. Stallman | 1996-04-16 16:04:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-16 16:04:01 +0000 |
| commit | 1aa323ac15dfb82429e7bf0ed2accd0232f41e22 (patch) | |
| tree | 62bfa465fb4b3523d10344ff6d2c5df9dcb983c1 | |
| parent | 36f0f2b12a85b0b03ce58d2d586f27039e286257 (diff) | |
| download | emacs-1aa323ac15dfb82429e7bf0ed2accd0232f41e22.tar.gz emacs-1aa323ac15dfb82429e7bf0ed2accd0232f41e22.zip | |
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.
| -rw-r--r-- | lisp/completion.el | 13 |
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.") | |||
| 528 | ;;----------------------------------------------- | 528 | ;;----------------------------------------------- |
| 529 | 529 | ||
| 530 | (defun cmpl-make-standard-completion-syntax-table () | 530 | (defun cmpl-make-standard-completion-syntax-table () |
| 531 | (let ((table (make-syntax-table)) ;; default syntax is whitespace | 531 | (let ((table (make-syntax-table)) |
| 532 | i) | 532 | i) |
| 533 | ;; Default syntax is whitespace. | ||
| 534 | (setq i 0) | ||
| 535 | (while (< i 256) | ||
| 536 | (modify-syntax-entry i " " table) | ||
| 537 | (setq i (1+ i))) | ||
| 533 | ;; alpha chars | 538 | ;; alpha chars |
| 534 | (setq i 0) | 539 | (setq i 0) |
| 535 | (while (< i 26) | 540 | (while (< i 26) |
| @@ -2612,6 +2617,10 @@ TYPE is the type of the wrapper to be added. Can be :before or :under." | |||
| 2612 | (define-key lisp-mode-map "=" 'self-insert-command) | 2617 | (define-key lisp-mode-map "=" 'self-insert-command) |
| 2613 | (define-key lisp-mode-map "^" 'self-insert-command) | 2618 | (define-key lisp-mode-map "^" 'self-insert-command) |
| 2614 | 2619 | ||
| 2620 | ;; Avoid warnings. | ||
| 2621 | (defvar c-mode-map) | ||
| 2622 | (defvar fortran-mode-map) | ||
| 2623 | |||
| 2615 | ;; C mode diffs. | 2624 | ;; C mode diffs. |
| 2616 | (defun completion-c-mode-hook () | 2625 | (defun completion-c-mode-hook () |
| 2617 | (def-completion-wrapper electric-c-semi :separator) | 2626 | (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." | |||
| 2671 | (cmpl-statistics-block | 2680 | (cmpl-statistics-block |
| 2672 | (record-completion-file-loaded)) | 2681 | (record-completion-file-loaded)) |
| 2673 | 2682 | ||
| 2683 | (provide 'completion) | ||
| 2684 | |||
| 2674 | ;;; completion.el ends here | 2685 | ;;; completion.el ends here |