[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 1c349c6: Remove unreliable assertion in buf_bytepos
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 1c349c6: Remove unreliable assertion in buf_bytepos_to_charpos |
Date: |
Tue, 5 Mar 2019 11:26:09 -0500 (EST) |
branch: master
commit 1c349c62305d432abf0fa2b6e3f5d754fe4cab79
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Remove unreliable assertion in buf_bytepos_to_charpos
* src/marker.c (buf_bytepos_to_charpos): Remove the assertion
regarding bytepos always at the head byte of a multibyte
sequence. For the reasons, see
http://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00100.html
http://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00102.html
---
src/marker.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/marker.c b/src/marker.c
index 6755993..b58051a 100644
--- a/src/marker.c
+++ b/src/marker.c
@@ -332,12 +332,6 @@ buf_bytepos_to_charpos (struct buffer *b, ptrdiff_t
bytepos)
if (best_above == best_above_byte)
return bytepos;
-#if 0
- /* Check bytepos is not in the middle of a character. */
- eassert (bytepos >= BUF_Z_BYTE (b)
- || CHAR_HEAD_P (BUF_FETCH_BYTE (b, bytepos)));
-#endif
-
best_below = BEG;
best_below_byte = BEG_BYTE;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 1c349c6: Remove unreliable assertion in buf_bytepos_to_charpos,
Eli Zaretskii <=