diff options
| author | Glenn Morris | 2017-11-29 17:12:05 -0800 |
|---|---|---|
| committer | Glenn Morris | 2017-11-29 17:12:05 -0800 |
| commit | 7aedb6116ffaa6590c86e70380f533385c1ced58 (patch) | |
| tree | 186436d57261f5bd0e5f1bff8844615c17b46128 /src | |
| parent | 728d259243206136387b6b59c2efb7de8cd9f6ed (diff) | |
| parent | 02d114d6b85e02132d5f99ead517b69dbdd77e35 (diff) | |
| download | emacs-7aedb6116ffaa6590c86e70380f533385c1ced58.tar.gz emacs-7aedb6116ffaa6590c86e70380f533385c1ced58.zip | |
Merge from origin/emacs-26
02d114d6b8 * lisp/tree-widget.el (tree-widget-end-guide): Escape it. ...
0a85d12474 Fix ELisp "Warning Tips"
06d05fec84 Fix Bug#29163
ac64fdb248 Harden exec_byte_code against redefining 'error'
700f74e4c8 Fix Edebug specs for if-let* and and-let* (Bug#29236)
0ded1b41a9 Fix Edebug's handling of dotted specs (bug#6415)
16358d4fcb Improve documentation of "constant" symbols
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 2 | ||||
| -rw-r--r-- | src/bytecode.c | 6 | ||||
| -rw-r--r-- | src/data.c | 6 | ||||
| -rw-r--r-- | src/font.c | 9 |
4 files changed, 14 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c index 6e3412c3d05..c6f9eb28e25 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5620,6 +5620,8 @@ file I/O and the behavior of various editing commands. | |||
| 5620 | 5620 | ||
| 5621 | This variable is buffer-local but you cannot set it directly; | 5621 | This variable is buffer-local but you cannot set it directly; |
| 5622 | use the function `set-buffer-multibyte' to change a buffer's representation. | 5622 | use the function `set-buffer-multibyte' to change a buffer's representation. |
| 5623 | To prevent any attempts to set it or make it buffer-local, Emacs will | ||
| 5624 | signal an error in those cases. | ||
| 5623 | See also Info node `(elisp)Text Representations'. */); | 5625 | See also Info node `(elisp)Text Representations'. */); |
| 5624 | make_symbol_constant (intern_c_string ("enable-multibyte-characters")); | 5626 | make_symbol_constant (intern_c_string ("enable-multibyte-characters")); |
| 5625 | 5627 | ||
diff --git a/src/bytecode.c b/src/bytecode.c index ebaf3c3a7fc..8746568f166 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -1346,10 +1346,8 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth, | |||
| 1346 | /* Actually this is Bstack_ref with offset 0, but we use Bdup | 1346 | /* Actually this is Bstack_ref with offset 0, but we use Bdup |
| 1347 | for that instead. */ | 1347 | for that instead. */ |
| 1348 | /* CASE (Bstack_ref): */ | 1348 | /* CASE (Bstack_ref): */ |
| 1349 | call3 (Qerror, | 1349 | error ("Invalid byte opcode: op=%d, ptr=%"pD"d", |
| 1350 | build_string ("Invalid byte opcode: op=%s, ptr=%d"), | 1350 | op, pc - 1 - bytestr_data); |
| 1351 | make_number (op), | ||
| 1352 | make_number (pc - 1 - bytestr_data)); | ||
| 1353 | 1351 | ||
| 1354 | /* Handy byte-codes for lexical binding. */ | 1352 | /* Handy byte-codes for lexical binding. */ |
| 1355 | CASE (Bstack_ref1): | 1353 | CASE (Bstack_ref1): |
diff --git a/src/data.c b/src/data.c index 7ca1892f64a..3c9152049b7 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -3896,12 +3896,14 @@ syms_of_data (void) | |||
| 3896 | set_symbol_function (Qwholenump, XSYMBOL (Qnatnump)->u.s.function); | 3896 | set_symbol_function (Qwholenump, XSYMBOL (Qnatnump)->u.s.function); |
| 3897 | 3897 | ||
| 3898 | DEFVAR_LISP ("most-positive-fixnum", Vmost_positive_fixnum, | 3898 | DEFVAR_LISP ("most-positive-fixnum", Vmost_positive_fixnum, |
| 3899 | doc: /* The largest value that is representable in a Lisp integer. */); | 3899 | doc: /* The largest value that is representable in a Lisp integer. |
| 3900 | This variable cannot be set; trying to do so will signal an error. */); | ||
| 3900 | Vmost_positive_fixnum = make_number (MOST_POSITIVE_FIXNUM); | 3901 | Vmost_positive_fixnum = make_number (MOST_POSITIVE_FIXNUM); |
| 3901 | make_symbol_constant (intern_c_string ("most-positive-fixnum")); | 3902 | make_symbol_constant (intern_c_string ("most-positive-fixnum")); |
| 3902 | 3903 | ||
| 3903 | DEFVAR_LISP ("most-negative-fixnum", Vmost_negative_fixnum, | 3904 | DEFVAR_LISP ("most-negative-fixnum", Vmost_negative_fixnum, |
| 3904 | doc: /* The smallest value that is representable in a Lisp integer. */); | 3905 | doc: /* The smallest value that is representable in a Lisp integer. |
| 3906 | This variable cannot be set; trying to do so will signal an error. */); | ||
| 3905 | Vmost_negative_fixnum = make_number (MOST_NEGATIVE_FIXNUM); | 3907 | Vmost_negative_fixnum = make_number (MOST_NEGATIVE_FIXNUM); |
| 3906 | make_symbol_constant (intern_c_string ("most-negative-fixnum")); | 3908 | make_symbol_constant (intern_c_string ("most-negative-fixnum")); |
| 3907 | 3909 | ||
diff --git a/src/font.c b/src/font.c index 51625b49fa8..f7cebdce78c 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -5421,19 +5421,22 @@ gets the repertory information by an opened font and ENCODING. */); | |||
| 5421 | doc: /* Vector of valid font weight values. | 5421 | doc: /* Vector of valid font weight values. |
| 5422 | Each element has the form: | 5422 | Each element has the form: |
| 5423 | [NUMERIC-VALUE SYMBOLIC-NAME ALIAS-NAME ...] | 5423 | [NUMERIC-VALUE SYMBOLIC-NAME ALIAS-NAME ...] |
| 5424 | NUMERIC-VALUE is an integer, and SYMBOLIC-NAME and ALIAS-NAME are symbols. */); | 5424 | NUMERIC-VALUE is an integer, and SYMBOLIC-NAME and ALIAS-NAME are symbols. |
| 5425 | This variable cannot be set; trying to do so will signal an error. */); | ||
| 5425 | Vfont_weight_table = BUILD_STYLE_TABLE (weight_table); | 5426 | Vfont_weight_table = BUILD_STYLE_TABLE (weight_table); |
| 5426 | make_symbol_constant (intern_c_string ("font-weight-table")); | 5427 | make_symbol_constant (intern_c_string ("font-weight-table")); |
| 5427 | 5428 | ||
| 5428 | DEFVAR_LISP_NOPRO ("font-slant-table", Vfont_slant_table, | 5429 | DEFVAR_LISP_NOPRO ("font-slant-table", Vfont_slant_table, |
| 5429 | doc: /* Vector of font slant symbols vs the corresponding numeric values. | 5430 | doc: /* Vector of font slant symbols vs the corresponding numeric values. |
| 5430 | See `font-weight-table' for the format of the vector. */); | 5431 | See `font-weight-table' for the format of the vector. |
| 5432 | This variable cannot be set; trying to do so will signal an error. */); | ||
| 5431 | Vfont_slant_table = BUILD_STYLE_TABLE (slant_table); | 5433 | Vfont_slant_table = BUILD_STYLE_TABLE (slant_table); |
| 5432 | make_symbol_constant (intern_c_string ("font-slant-table")); | 5434 | make_symbol_constant (intern_c_string ("font-slant-table")); |
| 5433 | 5435 | ||
| 5434 | DEFVAR_LISP_NOPRO ("font-width-table", Vfont_width_table, | 5436 | DEFVAR_LISP_NOPRO ("font-width-table", Vfont_width_table, |
| 5435 | doc: /* Alist of font width symbols vs the corresponding numeric values. | 5437 | doc: /* Alist of font width symbols vs the corresponding numeric values. |
| 5436 | See `font-weight-table' for the format of the vector. */); | 5438 | See `font-weight-table' for the format of the vector. |
| 5439 | This variable cannot be set; trying to do so will signal an error. */); | ||
| 5437 | Vfont_width_table = BUILD_STYLE_TABLE (width_table); | 5440 | Vfont_width_table = BUILD_STYLE_TABLE (width_table); |
| 5438 | make_symbol_constant (intern_c_string ("font-width-table")); | 5441 | make_symbol_constant (intern_c_string ("font-width-table")); |
| 5439 | 5442 | ||