Mercurial > emacs
comparison src/editfns.c @ 512:b7a1e4e4e7e6
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 21 Jan 1992 17:21:50 +0000 |
parents | 4fddd0f0fc33 |
children | 53f29271d1b0 |
comparison
equal
deleted
inserted
replaced
511:e6c69aa0f536 | 512:b7a1e4e4e7e6 |
---|---|
375 () | 375 () |
376 { | 376 { |
377 return buildmark (ZV); | 377 return buildmark (ZV); |
378 } | 378 } |
379 | 379 |
380 DEFUN ("following-char", Ffollchar, Sfollchar, 0, 0, 0, | 380 DEFUN ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0, |
381 "Return the character following point, as a number.") | 381 "Return the character following point, as a number.\n\ |
382 At the end of the buffer or accessible region, return 0.") | |
382 () | 383 () |
383 { | 384 { |
384 Lisp_Object temp; | 385 Lisp_Object temp; |
385 XFASTINT (temp) = FETCH_CHAR (point); | 386 if (point >= ZV) |
387 XFASTINT (temp) = 0; | |
388 else | |
389 XFASTINT (temp) = FETCH_CHAR (point); | |
386 return temp; | 390 return temp; |
387 } | 391 } |
388 | 392 |
389 DEFUN ("preceding-char", Fprevchar, Sprevchar, 0, 0, 0, | 393 DEFUN ("preceding-char", Fprevious_char, Sprevious_char, 0, 0, 0, |
390 "Return the character preceding point, as a number.") | 394 "Return the character preceding point, as a number.\n\ |
395 At the beginning of the buffer or accessible region, return 0.") | |
391 () | 396 () |
392 { | 397 { |
393 Lisp_Object temp; | 398 Lisp_Object temp; |
394 if (point <= BEGV) | 399 if (point <= BEGV) |
395 XFASTINT (temp) = 0; | 400 XFASTINT (temp) = 0; |
1230 | 1235 |
1231 defsubr (&Sbobp); | 1236 defsubr (&Sbobp); |
1232 defsubr (&Seobp); | 1237 defsubr (&Seobp); |
1233 defsubr (&Sbolp); | 1238 defsubr (&Sbolp); |
1234 defsubr (&Seolp); | 1239 defsubr (&Seolp); |
1235 defsubr (&Sfollchar); | 1240 defsubr (&Sfollowing_char); |
1236 defsubr (&Sprevchar); | 1241 defsubr (&Sprevious_char); |
1237 defsubr (&Schar_after); | 1242 defsubr (&Schar_after); |
1238 defsubr (&Sinsert); | 1243 defsubr (&Sinsert); |
1239 defsubr (&Sinsert_before_markers); | 1244 defsubr (&Sinsert_before_markers); |
1240 defsubr (&Sinsert_char); | 1245 defsubr (&Sinsert_char); |
1241 | 1246 |