aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index a2bdc4e7294..be270fe4823 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -412,6 +412,15 @@ extern void enlarge_buffer_text (struct buffer *, ptrdiff_t);
412 ? BUF_FETCH_MULTIBYTE_CHAR ((buf), (pos)) \ 412 ? BUF_FETCH_MULTIBYTE_CHAR ((buf), (pos)) \
413 : BUF_FETCH_BYTE ((buf), (pos))) 413 : BUF_FETCH_BYTE ((buf), (pos)))
414 414
415/* Return character at byte position POS in buffer BUF. If BUF is
416 unibyte and the character is not ASCII, make the returning
417 character multibyte. */
418
419#define BUF_FETCH_CHAR_AS_MULTIBYTE(buf, pos) \
420 (! NILP (BVAR ((buf), enable_multibyte_characters)) \
421 ? BUF_FETCH_MULTIBYTE_CHAR ((buf), (pos)) \
422 : UNIBYTE_TO_CHAR (BUF_FETCH_BYTE ((buf), (pos))))
423
415/* Return the byte at byte position N in buffer BUF. */ 424/* Return the byte at byte position N in buffer BUF. */
416 425
417#define BUF_FETCH_BYTE(buf, n) \ 426#define BUF_FETCH_BYTE(buf, n) \