diff options
| author | Lars Ingebrigtsen | 2021-01-12 15:12:28 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-01-12 15:12:38 +0100 |
| commit | ca024b0575c4ea754c4c6e6dbf21ed610e0d1fb8 (patch) | |
| tree | 4b87356a3d9a269d88a7d0a05b04afcba9b7074d /src/data.c | |
| parent | d191f1589b6d06221a58c8c4e6a6441b0a2a2e49 (diff) | |
| download | emacs-ca024b0575c4ea754c4c6e6dbf21ed610e0d1fb8.tar.gz emacs-ca024b0575c4ea754c4c6e6dbf21ed610e0d1fb8.zip | |
Add a new variable `inhibit-interaction'
* doc/lispref/elisp.texi (Top): Add a link.
* doc/lispref/errors.texi (Standard Errors): Mention the new error.
* doc/lispref/minibuf.texi (Minibuffers): Add a link.
(Inhibiting Interaction): New node.
* src/data.c (syms_of_data): Define the `inhibited-interaction' error.
* src/lisp.h: Export the barfing function.
* src/lread.c (Fread_char, Fread_event, Fread_char_exclusive):
Barf if inhibited.
* src/minibuf.c (barf_if_interaction_inhibited): New function.
(Fread_from_minibuffer, Fread_no_blanks_input): Barf if inhibited.
(syms_of_minibuf): Define the `inhibit-interaction' variable.
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 d420bf5fc58..35a6890b9bd 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -3760,6 +3760,7 @@ syms_of_data (void) | |||
| 3760 | DEFSYM (Qbuffer_read_only, "buffer-read-only"); | 3760 | DEFSYM (Qbuffer_read_only, "buffer-read-only"); |
| 3761 | DEFSYM (Qtext_read_only, "text-read-only"); | 3761 | DEFSYM (Qtext_read_only, "text-read-only"); |
| 3762 | DEFSYM (Qmark_inactive, "mark-inactive"); | 3762 | DEFSYM (Qmark_inactive, "mark-inactive"); |
| 3763 | DEFSYM (Qinhibited_interaction, "inhibited-interaction"); | ||
| 3763 | 3764 | ||
| 3764 | DEFSYM (Qlistp, "listp"); | 3765 | DEFSYM (Qlistp, "listp"); |
| 3765 | DEFSYM (Qconsp, "consp"); | 3766 | DEFSYM (Qconsp, "consp"); |
| @@ -3844,6 +3845,8 @@ syms_of_data (void) | |||
| 3844 | PUT_ERROR (Qbuffer_read_only, error_tail, "Buffer is read-only"); | 3845 | PUT_ERROR (Qbuffer_read_only, error_tail, "Buffer is read-only"); |
| 3845 | PUT_ERROR (Qtext_read_only, pure_cons (Qbuffer_read_only, error_tail), | 3846 | PUT_ERROR (Qtext_read_only, pure_cons (Qbuffer_read_only, error_tail), |
| 3846 | "Text is read-only"); | 3847 | "Text is read-only"); |
| 3848 | PUT_ERROR (Qinhibited_interaction, error_tail, | ||
| 3849 | "User interaction while inhibited"); | ||
| 3847 | 3850 | ||
| 3848 | DEFSYM (Qrange_error, "range-error"); | 3851 | DEFSYM (Qrange_error, "range-error"); |
| 3849 | DEFSYM (Qdomain_error, "domain-error"); | 3852 | DEFSYM (Qdomain_error, "domain-error"); |