Commit 4458687c authored by Jim Blandy's avatar Jim Blandy
Browse files

* abbrev.c (Funexpand_abbrev): Just assign the last abbrev's value

	to val; don't use XSET.  Make sure that the value of the
	abbrev-symbol is a string.
parent 03e130d5
......@@ -354,7 +354,9 @@ is not undone.")
/* This isn't correct if Vlast_abbrev->function was used
to do the expansion */
Lisp_Object val;
XSET (val, Lisp_String, XSYMBOL (Vlast_abbrev)->value);
val = XSYMBOL (Vlast_abbrev)->value;
if (XTYPE (val) != Lisp_String)
error ("value of abbrev-symbol must be a string");
adjust = XSTRING (val)->size;
del_range (point, point + adjust);
insert_from_string (Vlast_abbrev_text, 0,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment