From a455e66b968ac0d7305c23fb8e37f922635a04cf Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Sun, 2 May 2004 18:28:55 +0000 Subject: [PATCH] Include stdio.h. --- src/ChangeLog | 4 ++++ src/editfns.c | 17 ++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7848111557a..226c941a33b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-05-02 Thien-Thi Nguyen + + * editfns.c: Include stdio.h. + 2004-05-02 Thien-Thi Nguyen * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'. diff --git a/src/editfns.c b/src/editfns.c index afc84658bb2..0cc567eb124 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -33,6 +33,7 @@ Boston, MA 02111-1307, USA. */ #include #endif +#include #include #include "lisp.h" @@ -287,16 +288,16 @@ region_limit (beginningp) { extern Lisp_Object Vmark_even_if_inactive; /* Defined in callint.c. */ Lisp_Object m; - + if (!NILP (Vtransient_mark_mode) && NILP (Vmark_even_if_inactive) && NILP (current_buffer->mark_active)) Fsignal (Qmark_inactive, Qnil); - + m = Fmarker_position (current_buffer->mark); if (NILP (m)) error ("There is no region now"); - + if ((PT < XFASTINT (m)) == beginningp) m = make_number (PT); return m; @@ -832,7 +833,7 @@ save_excursion_restore (info) /* visible */ info = XCDR (info); visible_p = !NILP (XCAR (info)); - + #if 0 /* We used to make the current buffer visible in the selected window if that was true previously. That avoids some anomalies. But it creates others, and it wasn't documented, and it is simpler @@ -2884,7 +2885,7 @@ save_restriction_restore (data) clip_to_bounds (beg->charpos, pt, end->charpos), clip_to_bounds (beg->bytepos, BUF_PT_BYTE(buf), end->bytepos)); - + buf->clip_changed = 1; /* Remember that the narrowing changed. */ } } @@ -3191,7 +3192,7 @@ Use %% to put a single % into the output.") number of chars to print from a string. */ precision = field_width = 0; - + while (index ("-*# 0", *format)) ++format; @@ -3368,7 +3369,7 @@ Use %% to put a single % into the output.") } start = nchars; - + if (p > buf && multibyte && !ASCII_BYTE_P (*((unsigned char *) p - 1)) @@ -4076,3 +4077,5 @@ functions if all the text being accessed has this property."); defsubr (&Ssave_restriction); defsubr (&Stranspose_regions); } + +/* editfns.c ends here */ -- 2.39.5