]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fexpand_abbrev): Increment plist as use count only if it is an integer.
authorRichard M. Stallman <rms@gnu.org>
Sun, 3 Mar 2002 20:08:56 +0000 (20:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 3 Mar 2002 20:08:56 +0000 (20:08 +0000)
src/abbrev.c

index 3edbe2458311ce462b723adb10c2261407ec42bf..d134f95f25bd195c96800ad9eb6d57671c1a169d 100644 (file)
@@ -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