From: Thien-Thi Nguyen Date: Sun, 2 May 2004 18:31:49 +0000 (+0000) Subject: Include stdio.h. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3591a2592f83e728c584a4cac059e9b9f76013f2;p=emacs.git Include stdio.h. --- diff --git a/src/ChangeLog b/src/ChangeLog index f9fc60f1bec..ab8d6155ab7 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 76a732d1ef8..dd16ad27c95 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. */ } } @@ -3192,7 +3193,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; @@ -3370,7 +3371,7 @@ Use %% to put a single % into the output.") } start = nchars; - + if (p > buf && multibyte && !ASCII_BYTE_P (*((unsigned char *) p - 1)) @@ -4078,3 +4079,5 @@ functions if all the text being accessed has this property."); defsubr (&Ssave_restriction); defsubr (&Stranspose_regions); } + +/* editfns.c ends here */