aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-04-10 23:25:56 +0000
committerRichard M. Stallman2005-04-10 23:25:56 +0000
commit2f229dc43ad058d014032bd5d06be50ac4358cb9 (patch)
tree9c33fd4fe583e576bc8045627c3562c594b12e2c
parent90d0422ab8e9a865712df692b1c7505fa88a8774 (diff)
downloademacs-2f229dc43ad058d014032bd5d06be50ac4358cb9.tar.gz
emacs-2f229dc43ad058d014032bd5d06be50ac4358cb9.zip
(define-abbrevs): Read system abbrevs properly.
-rw-r--r--lisp/abbrev.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 3580c136948..aa4249d014e 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -172,15 +172,18 @@ the ones defined from the buffer now."
172 (while (and (not (eobp)) (re-search-forward "^(" nil t)) 172 (while (and (not (eobp)) (re-search-forward "^(" nil t))
173 (let* ((buf (current-buffer)) 173 (let* ((buf (current-buffer))
174 (table (read buf)) 174 (table (read buf))
175 abbrevs name hook exp count) 175 abbrevs name hook exp count sys)
176 (forward-line 1) 176 (forward-line 1)
177 (while (progn (forward-line 1) 177 (while (progn (forward-line 1)
178 (not (eolp))) 178 (not (eolp)))
179 (setq name (read buf) count (read buf) exp (read buf)) 179 (setq name (read buf) count (read buf))
180 (if (equal count '(sys))
181 (setq sys t count (read buf)))
182 (setq exp (read buf))
180 (skip-chars-backward " \t\n\f") 183 (skip-chars-backward " \t\n\f")
181 (setq hook (if (not (eolp)) (read buf))) 184 (setq hook (if (not (eolp)) (read buf)))
182 (skip-chars-backward " \t\n\f") 185 (skip-chars-backward " \t\n\f")
183 (setq abbrevs (cons (list name exp hook count) abbrevs))) 186 (setq abbrevs (cons (list name exp hook count sys) abbrevs)))
184 (define-abbrev-table table abbrevs))))) 187 (define-abbrev-table table abbrevs)))))
185 188
186(defun read-abbrev-file (&optional file quietly) 189(defun read-abbrev-file (&optional file quietly)