aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
authorGlenn Morris2018-09-10 13:12:38 -0700
committerGlenn Morris2018-09-10 13:12:38 -0700
commit0407733ef3d4e8e133e91917097dbc9bcc688b47 (patch)
tree9223757d1d54460b3ca0e7867636072a51cd55f2 /src/lread.c
parent6e050694f247671e67c1eabace36cf9792ab4451 (diff)
parent7efcdf7b3e70f0334caa328cbb5b05a4e30099bd (diff)
downloademacs-0407733ef3d4e8e133e91917097dbc9bcc688b47.tar.gz
emacs-0407733ef3d4e8e133e91917097dbc9bcc688b47.zip
Merge from origin/emacs-26
7efcdf7 (origin/emacs-26) Clarify completion text in the ELisp manual 30b0b0e Fix handling of abbreviated control command in gdb-mi.el 5cf282d Clarify documentation of functions reading character events 96281c5 Record :version for built-in variables while dumping 82160cf * src/process.c (connect_network_socket): Fix memory leak. (... 6c616e4 * Makefile.in (appdatadir): Use the non-obsolete location "me... 9618e16 Better fix for bug#32550 30d94e4 Fix Bug#32550 57bcdc7 Don't call XGetGeometry for frames without outer X window (Bu... 82fc6b6 * lisp/calculator.el: Fix doc typo. ddc7c64 Standardize calc bug reporting instructions Conflicts: lisp/cus-start.el
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/lread.c b/src/lread.c
index e43929a8c6a..73e38d89954 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -741,10 +741,14 @@ read_filtered_event (bool no_switch_frame, bool ascii_required,
741} 741}
742 742
743DEFUN ("read-char", Fread_char, Sread_char, 0, 3, 0, 743DEFUN ("read-char", Fread_char, Sread_char, 0, 3, 0,
744 doc: /* Read a character from the command input (keyboard or macro). 744 doc: /* Read a character event from the command input (keyboard or macro).
745It is returned as a number. 745It is returned as a number.
746If the character has modifiers, they are resolved and reflected to the 746If the event has modifiers, they are resolved and reflected in the
747character code if possible (e.g. C-SPC -> 0). 747returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97).
748If some of the modifiers cannot be reflected in the character code, the
749returned value will include those modifiers, and will not be a valid
750character code: it will fail the `characterp' test. Use `event-basic-type'
751to recover the character code with the modifiers removed.
748 752
749If the user generates an event which is not a character (i.e. a mouse 753If the user generates an event which is not a character (i.e. a mouse
750click or function key event), `read-char' signals an error. As an 754click or function key event), `read-char' signals an error. As an
@@ -791,10 +795,14 @@ floating-point value. */)
791} 795}
792 796
793DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 3, 0, 797DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 3, 0,
794 doc: /* Read a character from the command input (keyboard or macro). 798 doc: /* Read a character event from the command input (keyboard or macro).
795It is returned as a number. Non-character events are ignored. 799It is returned as a number. Non-character events are ignored.
796If the character has modifiers, they are resolved and reflected to the 800If the event has modifiers, they are resolved and reflected in the
797character code if possible (e.g. C-SPC -> 0). 801returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97).
802If some of the modifiers cannot be reflected in the character code, the
803returned value will include those modifiers, and will not be a valid
804character code: it will fail the `characterp' test. Use `event-basic-type'
805to recover the character code with the modifiers removed.
798 806
799If the optional argument PROMPT is non-nil, display that as a prompt. 807If the optional argument PROMPT is non-nil, display that as a prompt.
800If the optional argument INHERIT-INPUT-METHOD is non-nil and some 808If the optional argument INHERIT-INPUT-METHOD is non-nil and some