aboutsummaryrefslogtreecommitdiffstats
path: root/src/casefiddle.c
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 15:41:33 +0000
committerKarl Heuer1994-10-04 15:41:33 +0000
commit18e23fd0bb2cf53bf78ce7daeff0eab691fa863b (patch)
tree58c4be1af1c9af7aece9386f764cf197bc1ed46a /src/casefiddle.c
parentacab6442abf91dd888a5c37ef5518507e77df52a (diff)
downloademacs-18e23fd0bb2cf53bf78ce7daeff0eab691fa863b.tar.gz
emacs-18e23fd0bb2cf53bf78ce7daeff0eab691fa863b.zip
(casify_object, operate_on_word, Fupcase_word, Fdowncase_word,
Fcapitalize_word): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src/casefiddle.c')
-rw-r--r--src/casefiddle.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/casefiddle.c b/src/casefiddle.c
index 77d7115cab1..f4f2e2a9b52 100644
--- a/src/casefiddle.c
+++ b/src/casefiddle.c
@@ -42,9 +42,9 @@ casify_object (flag, obj)
42 if (c >= 0 && c <= 0400) 42 if (c >= 0 && c <= 0400)
43 { 43 {
44 if (inword) 44 if (inword)
45 XFASTINT (obj) = DOWNCASE (c); 45 XSETFASTINT (obj, DOWNCASE (c));
46 else if (!UPPERCASEP (c)) 46 else if (!UPPERCASEP (c))
47 XFASTINT (obj) = UPCASE1 (c); 47 XSETFASTINT (obj, UPCASE1 (c));
48 } 48 }
49 return obj; 49 return obj;
50 } 50 }
@@ -235,7 +235,7 @@ operate_on_word (arg, newpoint)
235 farend = XINT (arg) > 0 ? ZV : BEGV; 235 farend = XINT (arg) > 0 ? ZV : BEGV;
236 236
237 *newpoint = point > farend ? point : farend; 237 *newpoint = point > farend ? point : farend;
238 XFASTINT (val) = farend; 238 XSETFASTINT (val, farend);
239 239
240 return val; 240 return val;
241} 241}
@@ -249,7 +249,7 @@ See also `capitalize-word'.")
249{ 249{
250 Lisp_Object beg, end; 250 Lisp_Object beg, end;
251 int newpoint; 251 int newpoint;
252 XFASTINT (beg) = point; 252 XSETFASTINT (beg, point);
253 end = operate_on_word (arg, &newpoint); 253 end = operate_on_word (arg, &newpoint);
254 casify_region (CASE_UP, beg, end); 254 casify_region (CASE_UP, beg, end);
255 SET_PT (newpoint); 255 SET_PT (newpoint);
@@ -264,7 +264,7 @@ With negative argument, convert previous words but do not move.")
264{ 264{
265 Lisp_Object beg, end; 265 Lisp_Object beg, end;
266 int newpoint; 266 int newpoint;
267 XFASTINT (beg) = point; 267 XSETFASTINT (beg, point);
268 end = operate_on_word (arg, &newpoint); 268 end = operate_on_word (arg, &newpoint);
269 casify_region (CASE_DOWN, beg, end); 269 casify_region (CASE_DOWN, beg, end);
270 SET_PT (newpoint); 270 SET_PT (newpoint);
@@ -281,7 +281,7 @@ With negative argument, capitalize previous words but do not move.")
281{ 281{
282 Lisp_Object beg, end; 282 Lisp_Object beg, end;
283 int newpoint; 283 int newpoint;
284 XFASTINT (beg) = point; 284 XSETFASTINT (beg, point);
285 end = operate_on_word (arg, &newpoint); 285 end = operate_on_word (arg, &newpoint);
286 casify_region (CASE_CAPITALIZE, beg, end); 286 casify_region (CASE_CAPITALIZE, beg, end);
287 SET_PT (newpoint); 287 SET_PT (newpoint);