aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1991-08-16 05:24:51 +0000
committerJim Blandy1991-08-16 05:24:51 +0000
commit4d6cebd8752bff9f6faaaf189303f36c072894d0 (patch)
tree4a0e5517dc320dbfa164f0b666dddac8979f1672 /src
parent98bf0c8d691fd9ce43f3839780395a61e65d6f8d (diff)
downloademacs-4d6cebd8752bff9f6faaaf189303f36c072894d0.tar.gz
emacs-4d6cebd8752bff9f6faaaf189303f36c072894d0.zip
*** empty log message ***
Diffstat (limited to 'src')
-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.")
308 else if (uccount) 308 else if (uccount)
309 { 309 {
310 /* Abbrev included some caps. Cap first initial of expansion */ 310 /* Abbrev included some caps. Cap first initial of expansion */
311 idx = point; 311 int old_zv = ZV;
312 int old_pt = point;
313
314 /* Don't let Fcapitalize_word operate on text after point. */
315 ZV = point;
312 SET_PT (wordstart); 316 SET_PT (wordstart);
313 Fcapitalize_word (make_number (1)); 317 Fcapitalize_word (make_number (1));
314 SET_PT (idx); 318
319 SET_PT (old_pt);
320 ZV = old_zv;
315 } 321 }
316 322
317 hook = XSYMBOL (sym)->function; 323 hook = XSYMBOL (sym)->function;