aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charset.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/charset.h b/src/charset.h
index 0e91ca57445..290ee11ca83 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -648,22 +648,28 @@ else
648 648
649/* Increment both CHARPOS and BYTEPOS, each in the appropriate way. */ 649/* Increment both CHARPOS and BYTEPOS, each in the appropriate way. */
650 650
651#define INC_BOTH(charpos, bytepos) \ 651#define INC_BOTH(charpos, bytepos) \
652do \ 652do \
653 { \ 653 { \
654 (charpos)++; \ 654 (charpos)++; \
655 INC_POS ((bytepos)); \ 655 if (NILP (current_buffer->enable_multibyte_characters)) \
656 } \ 656 (bytepos)++; \
657 else \
658 INC_POS ((bytepos)); \
659 } \
657while (0) 660while (0)
658 661
659/* Decrement both CHARPOS and BYTEPOS, each in the appropriate way. */ 662/* Decrement both CHARPOS and BYTEPOS, each in the appropriate way. */
660 663
661#define DEC_BOTH(charpos, bytepos) \ 664#define DEC_BOTH(charpos, bytepos) \
662do \ 665do \
663 { \ 666 { \
664 (charpos)--; \ 667 (charpos)--; \
665 DEC_POS ((bytepos)); \ 668 if (NILP (current_buffer->enable_multibyte_characters)) \
666 } \ 669 (bytepos)--; \
670 else \
671 DEC_POS ((bytepos)); \
672 } \
667while (0) 673while (0)
668 674
669/* Increase the buffer point POS of the current buffer to the next 675/* Increase the buffer point POS of the current buffer to the next