diff options
| author | Robert Pluim | 2025-01-20 18:43:00 +0100 |
|---|---|---|
| committer | Robert Pluim | 2025-01-21 17:41:35 +0100 |
| commit | 14e686e6cca83054afceb353ad7a1e24ebdb0133 (patch) | |
| tree | e99e109e2825c9d33009238b42b89cfef415deea /src/data.c | |
| parent | 64d314e0f6495de6fcf4f4c51e710b597a237e4f (diff) | |
| download | emacs-14e686e6cca83054afceb353ad7a1e24ebdb0133.tar.gz emacs-14e686e6cca83054afceb353ad7a1e24ebdb0133.zip | |
Signal error when keyword/arg list is malformed
* src/data.c (syms_of_data): Add Qmalformed_keyword_arg_list
error symbol.
* src/process.c (Fmake_process, Fmake_pipe_process)
(Fserial_process_configure, Fmake_serial_process)
(Fmake_network_process): Signal Qmalformed_keyword_arg_list when
the argument list length is odd.
* src/sound.c (parse_sound): Also here..
* src/w32fns.c (Fw32_notification_notify): ..and here.
(Bug#75584)
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c index 077719c4062..dcaa5756ebe 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -4020,6 +4020,7 @@ syms_of_data (void) | |||
| 4020 | 4020 | ||
| 4021 | DEFSYM (Qinvalid_function, "invalid-function"); | 4021 | DEFSYM (Qinvalid_function, "invalid-function"); |
| 4022 | DEFSYM (Qwrong_number_of_arguments, "wrong-number-of-arguments"); | 4022 | DEFSYM (Qwrong_number_of_arguments, "wrong-number-of-arguments"); |
| 4023 | DEFSYM (Qmalformed_keyword_arg_list, "malformed-keyword-arg-list"); | ||
| 4023 | DEFSYM (Qno_catch, "no-catch"); | 4024 | DEFSYM (Qno_catch, "no-catch"); |
| 4024 | DEFSYM (Qend_of_file, "end-of-file"); | 4025 | DEFSYM (Qend_of_file, "end-of-file"); |
| 4025 | DEFSYM (Qarith_error, "arith-error"); | 4026 | DEFSYM (Qarith_error, "arith-error"); |
| @@ -4119,6 +4120,8 @@ syms_of_data (void) | |||
| 4119 | PUT_ERROR (Qinvalid_function, error_tail, "Invalid function"); | 4120 | PUT_ERROR (Qinvalid_function, error_tail, "Invalid function"); |
| 4120 | PUT_ERROR (Qwrong_number_of_arguments, error_tail, | 4121 | PUT_ERROR (Qwrong_number_of_arguments, error_tail, |
| 4121 | "Wrong number of arguments"); | 4122 | "Wrong number of arguments"); |
| 4123 | PUT_ERROR (Qmalformed_keyword_arg_list, error_tail, | ||
| 4124 | "Keyword lacks a corresponding value"); | ||
| 4122 | PUT_ERROR (Qno_catch, error_tail, "No catch for tag"); | 4125 | PUT_ERROR (Qno_catch, error_tail, "No catch for tag"); |
| 4123 | PUT_ERROR (Qend_of_file, error_tail, "End of file during parsing"); | 4126 | PUT_ERROR (Qend_of_file, error_tail, "End of file during parsing"); |
| 4124 | 4127 | ||