diff options
| author | Po Lu | 2023-01-11 16:07:32 +0800 |
|---|---|---|
| committer | Po Lu | 2023-01-11 16:07:32 +0800 |
| commit | 2fa5583d96fe78ff66d6fd41f18e54e4e20ea7d6 (patch) | |
| tree | d3cf4a755e2da9b11c284763ed20041033b5dc3b /src | |
| parent | 494bedde3235f9034746c977260bbbc2c1e51d8c (diff) | |
| parent | 033f2cc6140d03e78403f37689b9f54b64bded01 (diff) | |
| download | emacs-2fa5583d96fe78ff66d6fd41f18e54e4e20ea7d6.tar.gz emacs-2fa5583d96fe78ff66d6fd41f18e54e4e20ea7d6.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'src')
| -rw-r--r-- | src/callint.c | 12 | ||||
| -rw-r--r-- | src/gnutls.c | 4 | ||||
| -rw-r--r-- | src/pgtkfns.c | 2 | ||||
| -rw-r--r-- | src/print.c | 9 |
4 files changed, 19 insertions, 8 deletions
diff --git a/src/callint.c b/src/callint.c index c60a376b958..d8d2b278458 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -105,11 +105,13 @@ If the string begins with `^' and `shift-select-mode' is non-nil, | |||
| 105 | You may use `@', `*', and `^' together. They are processed in the | 105 | You may use `@', `*', and `^' together. They are processed in the |
| 106 | order that they appear, before reading any arguments. | 106 | order that they appear, before reading any arguments. |
| 107 | 107 | ||
| 108 | If MODES is present, it should be a list of mode names (symbols) that | 108 | If MODES is present, it should be one or more mode names (symbols) |
| 109 | this command is applicable for. The main effect of this is that | 109 | for which this command is applicable. This is so that `M-x TAB' |
| 110 | `M-x TAB' (by default) won't list this command if the current buffer's | 110 | will be able to exclude this command from the list of completion |
| 111 | mode doesn't match the list. That is, if either the major mode isn't | 111 | candidates if the current buffer's mode doesn't match the list. |
| 112 | derived from them, or (when it's a minor mode) the mode isn't in effect. | 112 | Which commands are excluded from the list of completion |
| 113 | candidates based on this information is controlled by the value | ||
| 114 | of `read-extended-command-predicate', which see. | ||
| 113 | 115 | ||
| 114 | usage: (interactive &optional ARG-DESCRIPTOR &rest MODES) */ | 116 | usage: (interactive &optional ARG-DESCRIPTOR &rest MODES) */ |
| 115 | attributes: const) | 117 | attributes: const) |
diff --git a/src/gnutls.c b/src/gnutls.c index e8528381efd..ca7e9fc4c73 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -2405,6 +2405,9 @@ gnutls_symmetric_aead (bool encrypting, gnutls_cipher_algorithm_t gca, | |||
| 2405 | aead_auth_size = aend_byte - astart_byte; | 2405 | aead_auth_size = aend_byte - astart_byte; |
| 2406 | } | 2406 | } |
| 2407 | 2407 | ||
| 2408 | /* Only block ciphers require that ISIZE be a multiple of the block | ||
| 2409 | size, and AEAD ciphers are not block ciphers. */ | ||
| 2410 | #if 0 | ||
| 2408 | ptrdiff_t expected_remainder = encrypting ? 0 : cipher_tag_size; | 2411 | ptrdiff_t expected_remainder = encrypting ? 0 : cipher_tag_size; |
| 2409 | ptrdiff_t cipher_block_size = gnutls_cipher_get_block_size (gca); | 2412 | ptrdiff_t cipher_block_size = gnutls_cipher_get_block_size (gca); |
| 2410 | 2413 | ||
| @@ -2414,6 +2417,7 @@ gnutls_symmetric_aead (bool encrypting, gnutls_cipher_algorithm_t gca, | |||
| 2414 | "is not %"pD"d greater than a multiple of the required %"pD"d"), | 2417 | "is not %"pD"d greater than a multiple of the required %"pD"d"), |
| 2415 | gnutls_cipher_get_name (gca), desc, | 2418 | gnutls_cipher_get_name (gca), desc, |
| 2416 | isize, expected_remainder, cipher_block_size); | 2419 | isize, expected_remainder, cipher_block_size); |
| 2420 | #endif | ||
| 2417 | 2421 | ||
| 2418 | ret = ((encrypting ? gnutls_aead_cipher_encrypt : gnutls_aead_cipher_decrypt) | 2422 | ret = ((encrypting ? gnutls_aead_cipher_encrypt : gnutls_aead_cipher_decrypt) |
| 2419 | (acipher, vdata, vsize, aead_auth_data, aead_auth_size, | 2423 | (acipher, vdata, vsize, aead_auth_data, aead_auth_size, |
diff --git a/src/pgtkfns.c b/src/pgtkfns.c index 6b3a0459d36..6e5bb22375a 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c | |||
| @@ -1902,7 +1902,7 @@ parse_resource_key (const char *res_key, char *setting_key) | |||
| 1902 | 1902 | ||
| 1903 | /* check existence of setting_key */ | 1903 | /* check existence of setting_key */ |
| 1904 | GSettingsSchemaSource *ssrc = g_settings_schema_source_get_default (); | 1904 | GSettingsSchemaSource *ssrc = g_settings_schema_source_get_default (); |
| 1905 | GSettingsSchema *scm = g_settings_schema_source_lookup (ssrc, SCHEMA_ID, FALSE); | 1905 | GSettingsSchema *scm = g_settings_schema_source_lookup (ssrc, SCHEMA_ID, TRUE); |
| 1906 | if (!scm) | 1906 | if (!scm) |
| 1907 | return NULL; /* *.schema.xml is not installed. */ | 1907 | return NULL; /* *.schema.xml is not installed. */ |
| 1908 | if (!g_settings_schema_has_key (scm, setting_key)) | 1908 | if (!g_settings_schema_has_key (scm, setting_key)) |
diff --git a/src/print.c b/src/print.c index bc6d5487c13..d656774b9cd 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -2039,8 +2039,13 @@ print_vectorlike (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag, | |||
| 2039 | /* Now the node must be up-to-date, and calling functions like | 2039 | /* Now the node must be up-to-date, and calling functions like |
| 2040 | Ftreesit_node_start will not signal. */ | 2040 | Ftreesit_node_start will not signal. */ |
| 2041 | bool named = treesit_named_node_p (XTS_NODE (obj)->node); | 2041 | bool named = treesit_named_node_p (XTS_NODE (obj)->node); |
| 2042 | const char *delim1 = named ? "(" : "\""; | 2042 | /* We used to use () as delimiters for named nodes, but that |
| 2043 | const char *delim2 = named ? ")" : "\""; | 2043 | confuses pretty-printing a tad bit. There might be more |
| 2044 | little breakages here and there if we print parenthesizes | ||
| 2045 | inside an object, so I guess better not do it. | ||
| 2046 | (bug#60696) */ | ||
| 2047 | const char *delim1 = named ? "" : "\""; | ||
| 2048 | const char *delim2 = named ? "" : "\""; | ||
| 2044 | print_c_string (delim1, printcharfun); | 2049 | print_c_string (delim1, printcharfun); |
| 2045 | print_string (Ftreesit_node_type (obj), printcharfun); | 2050 | print_string (Ftreesit_node_type (obj), printcharfun); |
| 2046 | print_c_string (delim2, printcharfun); | 2051 | print_c_string (delim2, printcharfun); |