X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d40dc1d037dd5636864c961d8c018554e7167ec5..f9e65eb300c487a85de743edc0bafd6434d6db5e:/src/editfns.c diff --git a/src/editfns.c b/src/editfns.c index 26d811d8f4..0c012514f9 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -289,16 +289,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 ("The mark is not set now, so there is no region"); - + if ((PT < XFASTINT (m)) == beginningp) m = make_number (PT); return m; @@ -456,7 +456,7 @@ get_pos_property (position, prop, object) } } } - + } { /* Now check the text-properties. */ @@ -881,7 +881,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 @@ -2952,7 +2952,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. */ } } @@ -3367,6 +3367,10 @@ usage: (format STRING &rest OBJECTS) */) if (*format == 'c') { if (! SINGLE_BYTE_CHAR_P (XINT (args[n])) + /* Note: No one can remeber why we have to treat + the character 0 as a multibyte character here. + But, until it causes a real problem, let's + don't change it. */ || XINT (args[n]) == 0) { if (! multibyte)