diff options
| author | John Paul Wallington | 2004-08-01 03:56:05 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2004-08-01 03:56:05 +0000 |
| commit | e7fdaf6301d8f81df48720ab25ad21e5d9fb17d1 (patch) | |
| tree | 91d9e53686ddfdd66d756f804057c460d26a6820 | |
| parent | 83f6422686cc5bda8643b36bd1fcb699897a8115 (diff) | |
| download | emacs-e7fdaf6301d8f81df48720ab25ad21e5d9fb17d1.tar.gz emacs-e7fdaf6301d8f81df48720ab25ad21e5d9fb17d1.zip | |
(only-global-abbrevs): Doc fix.
(edit-abbrevs-map): Define within defvar.
(quietly-read-abbrev-file): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/abbrev.el | 15 |
2 files changed, 13 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 113dfe2cf4d..c9f70c9f4be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2004-08-01 John Paul Wallington <jpw@gnu.org> | ||
| 2 | |||
| 3 | * abbrev.el (only-global-abbrevs): Doc fix. | ||
| 4 | (edit-abbrevs-map): Define within defvar. | ||
| 5 | (quietly-read-abbrev-file): Doc fix. | ||
| 6 | |||
| 1 | 2004-07-31 Luc Teirlinck <teirllm@auburn.edu> | 7 | 2004-07-31 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 8 | ||
| 3 | * novice.el (enable-command, disable-command): Doc fixes. | 9 | * novice.el (enable-command, disable-command): Doc fixes. |
diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 3be0014fd0e..3580c136948 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (defcustom only-global-abbrevs nil | 31 | (defcustom only-global-abbrevs nil |
| 32 | "*t means user plans to use global abbrevs only. | 32 | "Non-nil means user plans to use global abbrevs only. |
| 33 | This makes the commands that normally define mode-specific abbrevs | 33 | This makes the commands that normally define mode-specific abbrevs |
| 34 | define global abbrevs instead." | 34 | define global abbrevs instead." |
| 35 | :type 'boolean | 35 | :type 'boolean |
| @@ -59,13 +59,12 @@ to enable or disable Abbrev mode in the current buffer." | |||
| 59 | :group 'abbrev-mode) | 59 | :group 'abbrev-mode) |
| 60 | 60 | ||
| 61 | 61 | ||
| 62 | (defvar edit-abbrevs-map nil | 62 | (defvar edit-abbrevs-map |
| 63 | (let ((map (make-sparse-keymap))) | ||
| 64 | (define-key map "\C-x\C-s" 'edit-abbrevs-redefine) | ||
| 65 | (define-key map "\C-c\C-c" 'edit-abbrevs-redefine) | ||
| 66 | map) | ||
| 63 | "Keymap used in `edit-abbrevs'.") | 67 | "Keymap used in `edit-abbrevs'.") |
| 64 | (if edit-abbrevs-map | ||
| 65 | nil | ||
| 66 | (setq edit-abbrevs-map (make-sparse-keymap)) | ||
| 67 | (define-key edit-abbrevs-map "\C-x\C-s" 'edit-abbrevs-redefine) | ||
| 68 | (define-key edit-abbrevs-map "\C-c\C-c" 'edit-abbrevs-redefine)) | ||
| 69 | 68 | ||
| 70 | (defun kill-all-abbrevs () | 69 | (defun kill-all-abbrevs () |
| 71 | "Undefine all defined abbrevs." | 70 | "Undefine all defined abbrevs." |
| @@ -195,7 +194,7 @@ Optional second argument QUIETLY non-nil means don't display a message." | |||
| 195 | (setq abbrevs-changed nil)) | 194 | (setq abbrevs-changed nil)) |
| 196 | 195 | ||
| 197 | (defun quietly-read-abbrev-file (&optional file) | 196 | (defun quietly-read-abbrev-file (&optional file) |
| 198 | "Read abbrev definitions from file written with write-abbrev-file. | 197 | "Read abbrev definitions from file written with `write-abbrev-file'. |
| 199 | Optional argument FILE is the name of the file to read; | 198 | Optional argument FILE is the name of the file to read; |
| 200 | it defaults to the value of `abbrev-file-name'. | 199 | it defaults to the value of `abbrev-file-name'. |
| 201 | Does not display any message." | 200 | Does not display any message." |