aboutsummaryrefslogtreecommitdiffstats
path: root/src/abbrev.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1998-03-21 07:06:14 +0000
committerRichard M. Stallman <[email protected]>1998-03-21 07:06:14 +0000
commitfc932ac6c7b54ac6f79222a2548707a97d3a44f4 (patch)
tree88f9f2ff546b9d84c11515967b4bb5cc3c16d080 /src/abbrev.c
parente7654b4a743e7c54c08629ee336e10a5f1089da6 (diff)
Use STRING_BYTES and SET_STRING_BYTES.
Diffstat (limited to 'src/abbrev.c')
-rw-r--r--src/abbrev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/abbrev.c b/src/abbrev.c
index ebe89e8cc7..f681ed947c 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -324,7 +324,7 @@ Returns the abbrev symbol, if expansion took place.")
del_range_both (wordstart, wordstart_byte, wordend, wordend_byte, 1);
insert_from_string (expansion, 0, 0, XSTRING (expansion)->size,
- XSTRING (expansion)->size_byte, 1);
+ STRING_BYTES (XSTRING (expansion)), 1);
SET_PT (PT + whitecnt);
if (uccount && !lccount)
@@ -390,11 +390,11 @@ is not undone.")
if (!STRINGP (val))
error ("value of abbrev-symbol must be a string");
zv_before = ZV;
- del_range_byte (PT_BYTE, PT_BYTE + XSTRING (val)->size_byte, 1);
+ del_range_byte (PT_BYTE, PT_BYTE + STRING_BYTES (XSTRING (val)), 1);
/* Don't inherit properties here; just copy from old contents. */
insert_from_string (Vlast_abbrev_text, 0, 0,
XSTRING (Vlast_abbrev_text)->size,
- XSTRING (Vlast_abbrev_text)->size_byte, 0);
+ STRING_BYTES (XSTRING (Vlast_abbrev_text)), 0);
Vlast_abbrev_text = Qnil;
/* Total number of characters deleted. */
adjust = ZV - zv_before;