summaryrefslogtreecommitdiff
path: root/lisp/abbrev.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2012-02-29 23:05:42 +0800
committerLeo Liu <sdl.web@gmail.com>2012-02-29 23:05:42 +0800
commit2d44d9cc7040ba6c9548443189ac7d112ee00003 (patch)
tree1bade5020b8ec4fdcffca25a558ade6013c5a787 /lisp/abbrev.el
parentf8425af235eeb55d474b4c452af1aa53e95f00a6 (diff)
downloademacs-2d44d9cc7040ba6c9548443189ac7d112ee00003.tar.gz
Reset sys to nil in define-abbrevs
Otherwise all abbrevs after are regarded as system ones and not saved to disk, causing data loss.
Diffstat (limited to 'lisp/abbrev.el')
-rw-r--r--lisp/abbrev.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index ade36f2f9a0..7beee0a1752 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -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)))