Mercurial > emacs
comparison src/buffer.c @ 20368:9f5fab56f4b3
(nsberror, record_buffer, validate_region,
fix_overlay_before): Declare them as void.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 27 Nov 1997 12:04:49 +0000 |
parents | 6c9879dee580 |
children | b964f3facafa |
comparison
equal
deleted
inserted
replaced
20367:3d1939f30ec6 | 20368:9f5fab56f4b3 |
---|---|
163 Lisp_Object Qinsert_behind_hooks; | 163 Lisp_Object Qinsert_behind_hooks; |
164 | 164 |
165 /* For debugging; temporary. See set_buffer_internal. */ | 165 /* For debugging; temporary. See set_buffer_internal. */ |
166 /* Lisp_Object Qlisp_mode, Vcheck_symbol; */ | 166 /* Lisp_Object Qlisp_mode, Vcheck_symbol; */ |
167 | 167 |
168 void | |
168 nsberror (spec) | 169 nsberror (spec) |
169 Lisp_Object spec; | 170 Lisp_Object spec; |
170 { | 171 { |
171 if (STRINGP (spec)) | 172 if (STRINGP (spec)) |
172 error ("No buffer named %s", XSTRING (spec)->data); | 173 error ("No buffer named %s", XSTRING (spec)->data); |
1190 /* Move the assoc for buffer BUF to the front of buffer-alist. Since | 1191 /* Move the assoc for buffer BUF to the front of buffer-alist. Since |
1191 we do this each time BUF is selected visibly, the more recently | 1192 we do this each time BUF is selected visibly, the more recently |
1192 selected buffers are always closer to the front of the list. This | 1193 selected buffers are always closer to the front of the list. This |
1193 means that other_buffer is more likely to choose a relevant buffer. */ | 1194 means that other_buffer is more likely to choose a relevant buffer. */ |
1194 | 1195 |
1196 void | |
1195 record_buffer (buf) | 1197 record_buffer (buf) |
1196 Lisp_Object buf; | 1198 Lisp_Object buf; |
1197 { | 1199 { |
1198 register Lisp_Object link, prev; | 1200 register Lisp_Object link, prev; |
1199 | 1201 |
1611 implies that the future text is not really related to the past text. */ | 1613 implies that the future text is not really related to the past text. */ |
1612 XSETFASTINT (current_buffer->save_length, 0); | 1614 XSETFASTINT (current_buffer->save_length, 0); |
1613 return Qnil; | 1615 return Qnil; |
1614 } | 1616 } |
1615 | 1617 |
1618 void | |
1616 validate_region (b, e) | 1619 validate_region (b, e) |
1617 register Lisp_Object *b, *e; | 1620 register Lisp_Object *b, *e; |
1618 { | 1621 { |
1619 CHECK_NUMBER_COERCE_MARKER (*b, 0); | 1622 CHECK_NUMBER_COERCE_MARKER (*b, 0); |
1620 CHECK_NUMBER_COERCE_MARKER (*e, 1); | 1623 CHECK_NUMBER_COERCE_MARKER (*e, 1); |
2615 | 2618 |
2616 This function fixes ordering of overlays in the slot | 2619 This function fixes ordering of overlays in the slot |
2617 `overlays_before' of the buffer *BP. Before the insertion, `point' | 2620 `overlays_before' of the buffer *BP. Before the insertion, `point' |
2618 was at PREV, and now is at POS. */ | 2621 was at PREV, and now is at POS. */ |
2619 | 2622 |
2623 void | |
2620 fix_overlays_before (bp, prev, pos) | 2624 fix_overlays_before (bp, prev, pos) |
2621 struct buffer *bp; | 2625 struct buffer *bp; |
2622 int prev, pos; | 2626 int prev, pos; |
2623 { | 2627 { |
2624 Lisp_Object *tailp = &bp->overlays_before; | 2628 Lisp_Object *tailp = &bp->overlays_before; |