aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-07-31 15:45:30 +0000
committerLuc Teirlinck2004-07-31 15:45:30 +0000
commit0e91dc923a0495534dba3d5b55093676d0321986 (patch)
tree33892fa5ece0cd890902bdc79957764f0bbabbc2
parent7a4d608f415d1a48af1c86624d57a5e86e370daf (diff)
downloademacs-0e91dc923a0495534dba3d5b55093676d0321986.tar.gz
emacs-0e91dc923a0495534dba3d5b55093676d0321986.zip
(event-modifiers, event-basic-type): Doc fixes.
-rw-r--r--lisp/subr.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 8282e3a9316..0572446aefc 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -644,7 +644,11 @@ The normal global definition of the character C-x indirects to this keymap.")
644 "Return a list of symbols representing the modifier keys in event EVENT. 644 "Return a list of symbols representing the modifier keys in event EVENT.
645The elements of the list may include `meta', `control', 645The elements of the list may include `meta', `control',
646`shift', `hyper', `super', `alt', `click', `double', `triple', `drag', 646`shift', `hyper', `super', `alt', `click', `double', `triple', `drag',
647and `down'." 647and `down'.
648EVENT may be an event or an event type. If EVENT is a symbol
649that has never been used in an event that has been read as input
650in the current Emacs session, then this function can return nil,
651even when EVENT actually has modifiers."
648 (let ((type event)) 652 (let ((type event))
649 (if (listp type) 653 (if (listp type)
650 (setq type (car type))) 654 (setq type (car type)))
@@ -671,7 +675,10 @@ and `down'."
671 675
672(defun event-basic-type (event) 676(defun event-basic-type (event)
673 "Return the basic type of the given event (all modifiers removed). 677 "Return the basic type of the given event (all modifiers removed).
674The value is a printing character (not upper case) or a symbol." 678The value is a printing character (not upper case) or a symbol.
679EVENT may be an event or an event type. If EVENT is a symbol
680that has never been used in an event that has been read as input
681in the current Emacs session, then this function may return nil."
675 (if (consp event) 682 (if (consp event)
676 (setq event (car event))) 683 (setq event (car event)))
677 (if (symbolp event) 684 (if (symbolp event)