Reset sys to nil in define-abbrevs

Otherwise all abbrevs after are regarded as system ones and not saved
to disk, causing data loss.
This commit is contained in:
Leo Liu 2012-02-29 23:05:42 +08:00
parent f8425af235
commit 2d44d9cc70
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-02-29 Leo Liu <sdl.web@gmail.com>
* abbrev.el (define-abbrevs): Reset sys to nil.
2012-02-28 Thierry Volpiatto <thierry.volpiatto@gmail.com>
* files.el (file-equal-p): Rename from `files-equal-p'.

View file

@ -191,7 +191,8 @@ the ones defined from the buffer now."
(not (eolp)))
(setq name (read buf) count (read buf))
(if (equal count '(sys))
(setq sys t count (read buf)))
(setq sys t count (read buf))
(setq sys nil))
(setq exp (read buf))
(skip-chars-backward " \t\n\f")
(setq hook (if (not (eolp)) (read buf)))