From 8d3208722e7dbe1d46db845cec37d02ff4a3cff9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 3 Mar 2002 20:08:56 +0000 Subject: [PATCH] (Fexpand_abbrev): Increment plist as use count only if it is an integer. --- src/abbrev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT