diff options
| author | Paul Eggert | 2016-08-22 14:40:35 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-08-22 14:40:35 -0700 |
| commit | c325e199668a2449a9b0d662e114eec9d4802288 (patch) | |
| tree | 274955e934a223b81d593cb27d4d444a1eaf4ab6 /src | |
| parent | 512b06e4309ba6c5cd3d2d2518a931b0664c4150 (diff) | |
| parent | 927afa1ef6514e62162068d7dbdc9d8381a71598 (diff) | |
| download | emacs-c325e199668a2449a9b0d662e114eec9d4802288.tar.gz emacs-c325e199668a2449a9b0d662e114eec9d4802288.zip | |
Merge from origin/emacs-25
927afa1 ; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 RC2
6bf83b5 * etc/AUTHORS: Update the AUTHORS file
73cbb81 ; ChangeLog spelling fixes
9b99772 Some assorted documentation clarifications
37d4723 Improve commentary in src/character.h
5ccd593 ; Fix typo in /etc/NEWS
96e3d16 * etc/NEWS: Mention the change in json-encode-string.
2e524034 ; * etc/NEWS: Mention incompatible change in url-http-create...
2e4e74e Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emac...
66dea65 ; * doc/lispref/windows.texi (Window Parameters): Grammar twe...
# Conflicts:
# ChangeLog.2
# lisp/ldefs-boot.el
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog.12 | 2 | ||||
| -rw-r--r-- | src/callproc.c | 7 | ||||
| -rw-r--r-- | src/character.h | 20 | ||||
| -rw-r--r-- | src/editfns.c | 9 | ||||
| -rw-r--r-- | src/fileio.c | 3 |
5 files changed, 26 insertions, 15 deletions
diff --git a/src/ChangeLog.12 b/src/ChangeLog.12 index b2df482ba77..a1ebd30c8ec 100644 --- a/src/ChangeLog.12 +++ b/src/ChangeLog.12 | |||
| @@ -4382,7 +4382,7 @@ | |||
| 4382 | 4382 | ||
| 4383 | * nsterm.m (ns_dumpglyphs_image): Only draw slice of image (Bug#12506). | 4383 | * nsterm.m (ns_dumpglyphs_image): Only draw slice of image (Bug#12506). |
| 4384 | 4384 | ||
| 4385 | * nsterm.m (ns_update_auto_hide_menu_bar): Remove defintion of | 4385 | * nsterm.m (ns_update_auto_hide_menu_bar): Remove definition of |
| 4386 | MAC_OS_X_VERSION_10_6. | 4386 | MAC_OS_X_VERSION_10_6. |
| 4387 | (syms_of_nsterm): Remove comment about Panther and above for | 4387 | (syms_of_nsterm): Remove comment about Panther and above for |
| 4388 | ns-antialias-text. | 4388 | ns-antialias-text. |
diff --git a/src/callproc.c b/src/callproc.c index 487115d60c3..454ed6d633c 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1004,6 +1004,13 @@ create_temp_file (ptrdiff_t nargs, Lisp_Object *args, | |||
| 1004 | DEFUN ("call-process-region", Fcall_process_region, Scall_process_region, | 1004 | DEFUN ("call-process-region", Fcall_process_region, Scall_process_region, |
| 1005 | 3, MANY, 0, | 1005 | 3, MANY, 0, |
| 1006 | doc: /* Send text from START to END to a synchronous process running PROGRAM. | 1006 | doc: /* Send text from START to END to a synchronous process running PROGRAM. |
| 1007 | |||
| 1008 | START and END are normally buffer positions specifying the part of the | ||
| 1009 | buffer to send to the process. | ||
| 1010 | If START is nil, that means to use the entire buffer contents; END is | ||
| 1011 | ignored. | ||
| 1012 | If START is a string, then send that string to the process | ||
| 1013 | instead of any buffer contents; END is ignored. | ||
| 1007 | The remaining arguments are optional. | 1014 | The remaining arguments are optional. |
| 1008 | Delete the text if fourth arg DELETE is non-nil. | 1015 | Delete the text if fourth arg DELETE is non-nil. |
| 1009 | 1016 | ||
diff --git a/src/character.h b/src/character.h index 586f330fba9..0d0e31c4c92 100644 --- a/src/character.h +++ b/src/character.h | |||
| @@ -237,7 +237,8 @@ enum | |||
| 237 | #define CHAR_HEAD_P(byte) (((byte) & 0xC0) != 0x80) | 237 | #define CHAR_HEAD_P(byte) (((byte) & 0xC0) != 0x80) |
| 238 | 238 | ||
| 239 | /* How many bytes a character that starts with BYTE occupies in a | 239 | /* How many bytes a character that starts with BYTE occupies in a |
| 240 | multibyte form. */ | 240 | multibyte form. Unlike MULTIBYTE_LENGTH below, this macro does not |
| 241 | validate the multibyte form, but looks only at its first byte. */ | ||
| 241 | #define BYTES_BY_CHAR_HEAD(byte) \ | 242 | #define BYTES_BY_CHAR_HEAD(byte) \ |
| 242 | (!((byte) & 0x80) ? 1 \ | 243 | (!((byte) & 0x80) ? 1 \ |
| 243 | : !((byte) & 0x20) ? 2 \ | 244 | : !((byte) & 0x20) ? 2 \ |
| @@ -247,7 +248,9 @@ enum | |||
| 247 | 248 | ||
| 248 | 249 | ||
| 249 | /* The byte length of multibyte form at unibyte string P ending at | 250 | /* The byte length of multibyte form at unibyte string P ending at |
| 250 | PEND. If STR doesn't point to a valid multibyte form, return 0. */ | 251 | PEND. If the string doesn't point to a valid multibyte form, |
| 252 | return 0. Unlike BYTES_BY_CHAR_HEAD, this macro validates the | ||
| 253 | multibyte form. */ | ||
| 251 | 254 | ||
| 252 | #define MULTIBYTE_LENGTH(p, pend) \ | 255 | #define MULTIBYTE_LENGTH(p, pend) \ |
| 253 | (p >= pend ? 0 \ | 256 | (p >= pend ? 0 \ |
| @@ -263,7 +266,8 @@ enum | |||
| 263 | : 0) | 266 | : 0) |
| 264 | 267 | ||
| 265 | 268 | ||
| 266 | /* Like MULTIBYTE_LENGTH, but don't check the ending address. */ | 269 | /* Like MULTIBYTE_LENGTH, but don't check the ending address. The |
| 270 | multibyte form is still validated, unlike BYTES_BY_CHAR_HEAD. */ | ||
| 267 | 271 | ||
| 268 | #define MULTIBYTE_LENGTH_NO_CHECK(p) \ | 272 | #define MULTIBYTE_LENGTH_NO_CHECK(p) \ |
| 269 | (!((p)[0] & 0x80) ? 1 \ | 273 | (!((p)[0] & 0x80) ? 1 \ |
| @@ -324,15 +328,7 @@ enum | |||
| 324 | 328 | ||
| 325 | 329 | ||
| 326 | /* Like STRING_CHAR, but set ACTUAL_LEN to the length of multibyte | 330 | /* Like STRING_CHAR, but set ACTUAL_LEN to the length of multibyte |
| 327 | form. | 331 | form. */ |
| 328 | |||
| 329 | Note: This macro returns the actual length of the character's | ||
| 330 | multibyte sequence as it is stored in a buffer or string. The | ||
| 331 | character it returns might have a different codepoint that has a | ||
| 332 | different multibyte sequence of a different length, due to possible | ||
| 333 | unification of CJK characters inside string_char. Therefore do NOT | ||
| 334 | assume that the length returned by this macro is identical to the | ||
| 335 | length of the multibyte sequence of the character it returns. */ | ||
| 336 | 332 | ||
| 337 | #define STRING_CHAR_AND_LENGTH(p, actual_len) \ | 333 | #define STRING_CHAR_AND_LENGTH(p, actual_len) \ |
| 338 | (!((p)[0] & 0x80) \ | 334 | (!((p)[0] & 0x80) \ |
diff --git a/src/editfns.c b/src/editfns.c index 732306af868..26a86c7fab1 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1065,7 +1065,14 @@ usage: (save-current-buffer &rest BODY) */) | |||
| 1065 | 1065 | ||
| 1066 | DEFUN ("buffer-size", Fbuffer_size, Sbuffer_size, 0, 1, 0, | 1066 | DEFUN ("buffer-size", Fbuffer_size, Sbuffer_size, 0, 1, 0, |
| 1067 | doc: /* Return the number of characters in the current buffer. | 1067 | doc: /* Return the number of characters in the current buffer. |
| 1068 | If BUFFER, return the number of characters in that buffer instead. */) | 1068 | If BUFFER is not nil, return the number of characters in that buffer |
| 1069 | instead. | ||
| 1070 | |||
| 1071 | This does not take narrowing into account; to count the number of | ||
| 1072 | characters in the accessible portion of the current buffer, use | ||
| 1073 | `(- (point-max) (point-min))', and to count the number of characters | ||
| 1074 | in some other BUFFER, use | ||
| 1075 | `(with-current-buffer BUFFER (- (point-max) (point-min)))'. */) | ||
| 1069 | (Lisp_Object buffer) | 1076 | (Lisp_Object buffer) |
| 1070 | { | 1077 | { |
| 1071 | if (NILP (buffer)) | 1078 | if (NILP (buffer)) |
diff --git a/src/fileio.c b/src/fileio.c index 37948bc0ee9..bf6bf622abf 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4654,7 +4654,8 @@ DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, | |||
| 4654 | When called from a program, requires three arguments: | 4654 | When called from a program, requires three arguments: |
| 4655 | START, END and FILENAME. START and END are normally buffer positions | 4655 | START, END and FILENAME. START and END are normally buffer positions |
| 4656 | specifying the part of the buffer to write. | 4656 | specifying the part of the buffer to write. |
| 4657 | If START is nil, that means to use the entire buffer contents. | 4657 | If START is nil, that means to use the entire buffer contents; END is |
| 4658 | ignored. | ||
| 4658 | If START is a string, then output that string to the file | 4659 | If START is a string, then output that string to the file |
| 4659 | instead of any buffer contents; END is ignored. | 4660 | instead of any buffer contents; END is ignored. |
| 4660 | 4661 | ||