From: Kenichi Handa Date: Sat, 31 Oct 1998 05:12:07 +0000 (+0000) Subject: (Fsubst_char_in_region): Fix previous change. X-Git-Tag: emacs-20.4~1353 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=48839d2ed7f4752ceb3efa350bd90a532c073421;p=emacs.git (Fsubst_char_in_region): Fix previous change. (Ftranslate_region): Fix previous change. --- diff --git a/src/editfns.c b/src/editfns.c index 7ae39851ef5..bf3eebb5247 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -2022,7 +2022,7 @@ Both characters must have the same length of multi-byte form.") if (maybe_byte_combining && (CHAR_HEAD_P (*tostr) ? ! CHAR_HEAD_P (FETCH_BYTE (pos_byte + 1)) - : (pos_byte > BEGV_BYTE + : (pos_byte > BEG_BYTE && ! ASCII_BYTE_P (FETCH_BYTE (pos_byte - 1))))) { Lisp_Object tem, string; @@ -2121,7 +2121,7 @@ It returns the number of characters changed.") if (!ASCII_BYTE_P (nc) && (CHAR_HEAD_P (nc) ? ! CHAR_HEAD_P (FETCH_BYTE (pos_byte + 1)) - : (pos_byte > BEGV_BYTE + : (pos_byte > BEG_BYTE && ! ASCII_BYTE_P (FETCH_BYTE (pos_byte - 1))))) { Lisp_Object string;