From: Richard M. Stallman Date: Sun, 3 Mar 2002 20:08:56 +0000 (+0000) Subject: (Fexpand_abbrev): Increment plist as use count only if it is an integer. X-Git-Tag: ttn-vms-21-2-B4~16368 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8d3208722e7dbe1d46db845cec37d02ff4a3cff9;p=emacs.git (Fexpand_abbrev): Increment plist as use count only if it is an integer. --- 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