Mercurial > emacs
comparison src/buffer.c @ 46293:1fb8f75062c6
Use macro SPECPDL_INDEX.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 11 Jul 2002 14:18:02 +0000 |
parents | ca604a52d267 |
children | 40db0673e6f0 |
comparison
equal
deleted
inserted
replaced
46292:712d0161e499 | 46293:1fb8f75062c6 |
---|---|
1295 return Qnil; | 1295 return Qnil; |
1296 } | 1296 } |
1297 | 1297 |
1298 /* Run hooks with the buffer to be killed the current buffer. */ | 1298 /* Run hooks with the buffer to be killed the current buffer. */ |
1299 { | 1299 { |
1300 int count = specpdl_ptr - specpdl; | 1300 int count = SPECPDL_INDEX (); |
1301 Lisp_Object list; | 1301 Lisp_Object list; |
1302 | 1302 |
1303 record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 1303 record_unwind_protect (save_excursion_restore, save_excursion_save ()); |
1304 set_buffer_internal (b); | 1304 set_buffer_internal (b); |
1305 | 1305 |
1546 } | 1546 } |
1547 | 1547 |
1548 if (NILP (function) || EQ (function, Qfundamental_mode)) | 1548 if (NILP (function) || EQ (function, Qfundamental_mode)) |
1549 return Qnil; | 1549 return Qnil; |
1550 | 1550 |
1551 count = specpdl_ptr - specpdl; | 1551 count = SPECPDL_INDEX (); |
1552 | 1552 |
1553 /* To select a nonfundamental mode, | 1553 /* To select a nonfundamental mode, |
1554 select the buffer temporarily and then call the mode function. */ | 1554 select the buffer temporarily and then call the mode function. */ |
1555 | 1555 |
1556 record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 1556 record_unwind_protect (save_excursion_restore, save_excursion_save ()); |
3584 (overlay, beg, end, buffer) | 3584 (overlay, beg, end, buffer) |
3585 Lisp_Object overlay, beg, end, buffer; | 3585 Lisp_Object overlay, beg, end, buffer; |
3586 { | 3586 { |
3587 struct buffer *b, *ob; | 3587 struct buffer *b, *ob; |
3588 Lisp_Object obuffer; | 3588 Lisp_Object obuffer; |
3589 int count = specpdl_ptr - specpdl; | 3589 int count = SPECPDL_INDEX (); |
3590 | 3590 |
3591 CHECK_OVERLAY (overlay); | 3591 CHECK_OVERLAY (overlay); |
3592 if (NILP (buffer)) | 3592 if (NILP (buffer)) |
3593 buffer = Fmarker_buffer (OVERLAY_START (overlay)); | 3593 buffer = Fmarker_buffer (OVERLAY_START (overlay)); |
3594 if (NILP (buffer)) | 3594 if (NILP (buffer)) |
3685 (overlay) | 3685 (overlay) |
3686 Lisp_Object overlay; | 3686 Lisp_Object overlay; |
3687 { | 3687 { |
3688 Lisp_Object buffer; | 3688 Lisp_Object buffer; |
3689 struct buffer *b; | 3689 struct buffer *b; |
3690 int count = specpdl_ptr - specpdl; | 3690 int count = SPECPDL_INDEX (); |
3691 | 3691 |
3692 CHECK_OVERLAY (overlay); | 3692 CHECK_OVERLAY (overlay); |
3693 | 3693 |
3694 buffer = Fmarker_buffer (OVERLAY_START (overlay)); | 3694 buffer = Fmarker_buffer (OVERLAY_START (overlay)); |
3695 if (NILP (buffer)) | 3695 if (NILP (buffer)) |