diff options
| author | Michael R. Mauger | 2017-07-03 15:32:41 -0400 |
|---|---|---|
| committer | Michael R. Mauger | 2017-07-03 15:32:41 -0400 |
| commit | 776635c01abd4aa759e7aa9584b513146978568c (patch) | |
| tree | 554f444bc96cb6b05435e8bf195de4df1b00df8f /src/buffer.h | |
| parent | 77083e2d34ba5559ae2899d3b03cf08c2e6c5ad4 (diff) | |
| parent | 4cd0db3d6e6e4d5bd49283483bdafbbfc0f583f1 (diff) | |
| download | emacs-776635c01abd4aa759e7aa9584b513146978568c.tar.gz emacs-776635c01abd4aa759e7aa9584b513146978568c.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 9 |
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) \ |