aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-09-14 12:10:27 +0000
committerRichard M. Stallman1993-09-14 12:10:27 +0000
commit0c28711271bb31257b95d85a6cd9bba42e32d11b (patch)
tree6d1a1e06901b60fb7967cf73c6e7ccf3a2fa1652 /src
parent5778daa93ee075b254fd313677225a450f3bde70 (diff)
downloademacs-0c28711271bb31257b95d85a6cd9bba42e32d11b.tar.gz
emacs-0c28711271bb31257b95d85a6cd9bba42e32d11b.zip
(Funexpand_abbrev, Fexpand_abbrev): Pass new arg to insert_from_string.
Diffstat (limited to 'src')
-rw-r--r--src/abbrev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/abbrev.c b/src/abbrev.c
index 9477c501b36..8338a0da558 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -295,7 +295,7 @@ Returns t if expansion took place.")
295 XINT (XSYMBOL (sym)->plist) + 1); /* Increment use count */ 295 XINT (XSYMBOL (sym)->plist) + 1); /* Increment use count */
296 296
297 expansion = XSYMBOL (sym)->value; 297 expansion = XSYMBOL (sym)->value;
298 insert_from_string (expansion, 0, XSTRING (expansion)->size); 298 insert_from_string (expansion, 0, XSTRING (expansion)->size, 1);
299 SET_PT (point + whitecnt); 299 SET_PT (point + whitecnt);
300 300
301 if (uccount && !lccount) 301 if (uccount && !lccount)
@@ -359,8 +359,9 @@ is not undone.")
359 error ("value of abbrev-symbol must be a string"); 359 error ("value of abbrev-symbol must be a string");
360 adjust = XSTRING (val)->size; 360 adjust = XSTRING (val)->size;
361 del_range (point, point + adjust); 361 del_range (point, point + adjust);
362 /* Don't inherit properties here; just copy from old contents. */
362 insert_from_string (Vlast_abbrev_text, 0, 363 insert_from_string (Vlast_abbrev_text, 0,
363 XSTRING (Vlast_abbrev_text)->size); 364 XSTRING (Vlast_abbrev_text)->size, 0);
364 adjust -= XSTRING (Vlast_abbrev_text)->size; 365 adjust -= XSTRING (Vlast_abbrev_text)->size;
365 Vlast_abbrev_text = Qnil; 366 Vlast_abbrev_text = Qnil;
366 } 367 }