diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-03-03 20:08:56 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-03-03 20:08:56 +0000 |
commit | 8d3208722e7dbe1d46db845cec37d02ff4a3cff9 (patch) | |
tree | 004cb29500e2c75357b1ef41ea6deab60bc8e83e /src/abbrev.c | |
parent | d4405ed75180e10ebd5440ca65880d427edfa20d (diff) | |
download | emacs-8d3208722e7dbe1d46db845cec37d02ff4a3cff9.tar.gz |
(Fexpand_abbrev): Increment plist as use count only if it is an integer.
Diffstat (limited to 'src/abbrev.c')
-rw-r--r-- | src/abbrev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/abbrev.c b/src/abbrev.c index 3edbe245831..d134f95f25b 100644 --- a/src/abbrev.c +++ b/src/abbrev.c @@ -331,7 +331,7 @@ Returns the abbrev symbol, if expansion took place. */) if (INTEGERP (XSYMBOL (sym)->plist)) XSETINT (XSYMBOL (sym)->plist, XINT (XSYMBOL (sym)->plist) + 1); - else if (!NILP (tem = Fget (sym, Qcount))) + else if (INTEGERP (tem = Fget (sym, Qcount))) Fput (sym, Qcount, make_number (XINT (tem) + 1)); /* If this abbrev has an expansion, delete the abbrev |