comparison src/casefiddle.c @ 16039:855c8d8ba0f0

Change all references from point to PT.
author Karl Heuer <kwzh@gnu.org>
date Sun, 01 Sep 1996 19:15:05 +0000
parents 0d698228e98c
children 5246c075a643
comparison
equal deleted inserted replaced
16038:8cd162ceb1dc 16039:855c8d8ba0f0
225 int farend; 225 int farend;
226 int iarg; 226 int iarg;
227 227
228 CHECK_NUMBER (arg, 0); 228 CHECK_NUMBER (arg, 0);
229 iarg = XINT (arg); 229 iarg = XINT (arg);
230 farend = scan_words (point, iarg); 230 farend = scan_words (PT, iarg);
231 if (!farend) 231 if (!farend)
232 farend = iarg > 0 ? ZV : BEGV; 232 farend = iarg > 0 ? ZV : BEGV;
233 233
234 *newpoint = point > farend ? point : farend; 234 *newpoint = PT > farend ? PT : farend;
235 XSETFASTINT (val, farend); 235 XSETFASTINT (val, farend);
236 236
237 return val; 237 return val;
238 } 238 }
239 239
244 (arg) 244 (arg)
245 Lisp_Object arg; 245 Lisp_Object arg;
246 { 246 {
247 Lisp_Object beg, end; 247 Lisp_Object beg, end;
248 int newpoint; 248 int newpoint;
249 XSETFASTINT (beg, point); 249 XSETFASTINT (beg, PT);
250 end = operate_on_word (arg, &newpoint); 250 end = operate_on_word (arg, &newpoint);
251 casify_region (CASE_UP, beg, end); 251 casify_region (CASE_UP, beg, end);
252 SET_PT (newpoint); 252 SET_PT (newpoint);
253 return Qnil; 253 return Qnil;
254 } 254 }
259 (arg) 259 (arg)
260 Lisp_Object arg; 260 Lisp_Object arg;
261 { 261 {
262 Lisp_Object beg, end; 262 Lisp_Object beg, end;
263 int newpoint; 263 int newpoint;
264 XSETFASTINT (beg, point); 264 XSETFASTINT (beg, PT);
265 end = operate_on_word (arg, &newpoint); 265 end = operate_on_word (arg, &newpoint);
266 casify_region (CASE_DOWN, beg, end); 266 casify_region (CASE_DOWN, beg, end);
267 SET_PT (newpoint); 267 SET_PT (newpoint);
268 return Qnil; 268 return Qnil;
269 } 269 }
276 (arg) 276 (arg)
277 Lisp_Object arg; 277 Lisp_Object arg;
278 { 278 {
279 Lisp_Object beg, end; 279 Lisp_Object beg, end;
280 int newpoint; 280 int newpoint;
281 XSETFASTINT (beg, point); 281 XSETFASTINT (beg, PT);
282 end = operate_on_word (arg, &newpoint); 282 end = operate_on_word (arg, &newpoint);
283 casify_region (CASE_CAPITALIZE, beg, end); 283 casify_region (CASE_CAPITALIZE, beg, end);
284 SET_PT (newpoint); 284 SET_PT (newpoint);
285 return Qnil; 285 return Qnil;
286 } 286 }