aboutsummaryrefslogtreecommitdiffstats
path: root/src/abbrev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/abbrev.c')
-rw-r--r--src/abbrev.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/abbrev.c b/src/abbrev.c
index 1cf0694663..dabc03b2a5 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -356,13 +356,10 @@ Returns the abbrev symbol, if expansion took place. */)
{
SET_PT (wordstart);
+ del_range_both (wordstart, wordstart_byte, wordend, wordend_byte, 1);
+
insert_from_string (expansion, 0, 0, SCHARS (expansion),
SBYTES (expansion), 1);
- del_range_both (PT, PT_BYTE,
- wordend + (PT - wordstart),
- wordend_byte + (PT_BYTE - wordstart_byte),
- 1);
-
SET_PT (PT + whitecnt);
if (uccount && !lccount)
@@ -693,6 +690,3 @@ the current abbrev table before abbrev lookup happens. */);
defsubr (&Sinsert_abbrev_table_description);
defsubr (&Sdefine_abbrev_table);
}
-
-/* arch-tag: b721db69-f633-44a8-a361-c275acbdad7d
- (do not change this comment) */