summaryrefslogtreecommitdiff
path: root/src/abbrev.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1991-08-16 05:24:51 +0000
committerJim Blandy <jimb@redhat.com>1991-08-16 05:24:51 +0000
commitb05fa5e8adf0d6a4d2b465103e07cab29b8e5562 (patch)
treee8fa99421eabe79e21819cac87691301804ba19b /src/abbrev.c
parent7688b90a0278ef54466047969c68f9ef25823364 (diff)
downloademacs-b05fa5e8adf0d6a4d2b465103e07cab29b8e5562.tar.gz
*** empty log message ***
Diffstat (limited to 'src/abbrev.c')
-rw-r--r--src/abbrev.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/abbrev.c b/src/abbrev.c
index 0412a062bcf..e3f1faf36ee 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -308,10 +308,16 @@ Returns t if expansion took place.")
else if (uccount)
{
/* Abbrev included some caps. Cap first initial of expansion */
- idx = point;
+ int old_zv = ZV;
+ int old_pt = point;
+
+ /* Don't let Fcapitalize_word operate on text after point. */
+ ZV = point;
SET_PT (wordstart);
Fcapitalize_word (make_number (1));
- SET_PT (idx);
+
+ SET_PT (old_pt);
+ ZV = old_zv;
}
hook = XSYMBOL (sym)->function;