aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-02-16 03:01:16 +0000
committerRichard M. Stallman1998-02-16 03:01:16 +0000
commitd619ee06f24e8487f40040805be945e979c111d3 (patch)
treea63ed50e0ed34841354ce112972ddfb6113481a1 /src
parent067cc4dc8050b88ee0bef47e3a4ef0f707c8dea3 (diff)
downloademacs-d619ee06f24e8487f40040805be945e979c111d3.tar.gz
emacs-d619ee06f24e8487f40040805be945e979c111d3.zip
(INC_BOTH, DEC_BOTH): In unibyte mode, simply increment bytepos.
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