aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorJohn Wiegley2016-03-11 13:33:32 -0800
committerJohn Wiegley2016-03-11 13:33:32 -0800
commit63efcc268635dea78c6bd80749eae4ee2c72d717 (patch)
tree888b43de0eb148cf46a129a15f08a80caa8a5dfe /src/buffer.h
parentb4fbd69b66a927ad8ff479bee6ca57e977d7e649 (diff)
parentfacb5e20ce186e47506860bde982e35020fedce5 (diff)
downloademacs-63efcc268635dea78c6bd80749eae4ee2c72d717.tar.gz
emacs-63efcc268635dea78c6bd80749eae4ee2c72d717.zip
Merge from origin/emacs-25
facb5e2 Update Emacs manual section related to character folding 4efea8e ; * etc/DEBUG: Fix a typo. (Bug#22984) f8df21b Update admin/notes/unicode 950be68 Add symref-filepattern entries for c?perl-mode 8b8a6ad Don't use XRANDR 1.3 extensions if the server doesn't support them. 985dacf ; NEWS update for the last change in etags 741a6f8 Sync with gnulib 7352c6c Rework C source files to avoid ^( a589e9a By default, etags produces unqualified Perl tag names 72c7438 Indent methods with keyword names correctly 28532a9 Propertize character literals and special global variables differently a7d6f39 ; Fix last change in NEWS 83b2a20 Change how /etc/NEWS presents character folding b417c5a Revert "Revert "Backport: * lisp/isearch.el: Turn char-folding off by default"" 711ca36 Properly handle lambda as read function (bug 22961) 1b9d616 Propertize operator symbol names with symbol syntax class 9b16bc2 Stop recognizing :#{} as symbol in ruby-mode 366ec77 Allow using the left shift operator without spaces on both sides 02bf7cc Properly handle unquoting in wdired (bug 22938) 16cf469 ; Spelling fix and tighten up comment f50bc04 Allow splat operator before percent literal 991c801 Don't apply the return value of goto-char as syntax class 6e63b3e Guard against nested percent literals 066f3bc Recognize iuwu-mod after an escaped newline 6f7a57c Fix symbolic mode string conversion for s and t 50b9826 Update 'ucs-names' database 993b2fb Improve doc string of 'shell-command' b71c717 Make the code in movemail_strftime more general cc057e4 Speed up redisplay of binary files with long series of nulls e51b27e Remove the highlighting support for quoting 'like this' inside Lisp docstrings b1abce1 Restore leading space in movemail pop output 98b8d44 Fix bidi-paragraph-direction in Rmail view buffer dc9d837 Don't misindent computed property generator methods 7923112 Fix mbox files produced by movemail on MS-Windows c45a1ca doc string file descriptor exhaustion fix 265141b Fix Bug#22814
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 5783bfb51ab..87b7cee4413 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -7,8 +7,8 @@ This file is part of GNU Emacs.
7 7
8GNU Emacs is free software: you can redistribute it and/or modify 8GNU Emacs is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by 9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 3 of the License, or 10the Free Software Foundation, either version 3 of the License, or (at
11(at your option) any later version. 11your option) any later version.
12 12
13GNU Emacs is distributed in the hope that it will be useful, 13GNU Emacs is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of 14but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -352,9 +352,9 @@ extern void enlarge_buffer_text (struct buffer *, ptrdiff_t);
352/* Convert PTR, the address of a byte in the buffer, into a byte position. */ 352/* Convert PTR, the address of a byte in the buffer, into a byte position. */
353 353
354#define PTR_BYTE_POS(ptr) \ 354#define PTR_BYTE_POS(ptr) \
355((ptr) - (current_buffer)->text->beg \ 355 ((ptr) - (current_buffer)->text->beg \
356 - (ptr - (current_buffer)->text->beg <= GPT_BYTE - BEG_BYTE ? 0 : GAP_SIZE) \ 356 - (ptr - (current_buffer)->text->beg <= GPT_BYTE - BEG_BYTE ? 0 : GAP_SIZE) \
357 + BEG_BYTE) 357 + BEG_BYTE)
358 358
359/* Return character at byte position POS. See the caveat WARNING for 359/* Return character at byte position POS. See the caveat WARNING for
360 FETCH_MULTIBYTE_CHAR below. */ 360 FETCH_MULTIBYTE_CHAR below. */
@@ -386,24 +386,24 @@ extern void enlarge_buffer_text (struct buffer *, ptrdiff_t);
386 Note that both arguments can be computed more than once. */ 386 Note that both arguments can be computed more than once. */
387 387
388#define BUF_BYTE_ADDRESS(buf, pos) \ 388#define BUF_BYTE_ADDRESS(buf, pos) \
389((buf)->text->beg + (pos) - BEG_BYTE \ 389 ((buf)->text->beg + (pos) - BEG_BYTE \
390 + ((pos) >= (buf)->text->gpt_byte ? (buf)->text->gap_size : 0)) 390 + ((pos) >= (buf)->text->gpt_byte ? (buf)->text->gap_size : 0))
391 391
392/* Return the address of character at char position POS in buffer BUF. 392/* Return the address of character at char position POS in buffer BUF.
393 Note that both arguments can be computed more than once. */ 393 Note that both arguments can be computed more than once. */
394 394
395#define BUF_CHAR_ADDRESS(buf, pos) \ 395#define BUF_CHAR_ADDRESS(buf, pos) \
396((buf)->text->beg + buf_charpos_to_bytepos ((buf), (pos)) - BEG_BYTE \ 396 ((buf)->text->beg + buf_charpos_to_bytepos ((buf), (pos)) - BEG_BYTE \
397 + ((pos) >= (buf)->text->gpt ? (buf)->text->gap_size : 0)) 397 + ((pos) >= (buf)->text->gpt ? (buf)->text->gap_size : 0))
398 398
399/* Convert PTR, the address of a char in buffer BUF, 399/* Convert PTR, the address of a char in buffer BUF,
400 into a character position. */ 400 into a character position. */
401 401
402#define BUF_PTR_BYTE_POS(buf, ptr) \ 402#define BUF_PTR_BYTE_POS(buf, ptr) \
403((ptr) - (buf)->text->beg \ 403 ((ptr) - (buf)->text->beg \
404 - (ptr - (buf)->text->beg <= BUF_GPT_BYTE (buf) - BEG_BYTE \ 404 - (ptr - (buf)->text->beg <= BUF_GPT_BYTE (buf) - BEG_BYTE \
405 ? 0 : BUF_GAP_SIZE ((buf))) \ 405 ? 0 : BUF_GAP_SIZE ((buf))) \
406 + BEG_BYTE) 406 + BEG_BYTE)
407 407
408/* Return the character at byte position POS in buffer BUF. */ 408/* Return the character at byte position POS in buffer BUF. */
409 409