diff options
| author | Luc Teirlinck | 2004-07-31 15:45:30 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-07-31 15:45:30 +0000 |
| commit | 0e91dc923a0495534dba3d5b55093676d0321986 (patch) | |
| tree | 33892fa5ece0cd890902bdc79957764f0bbabbc2 | |
| parent | 7a4d608f415d1a48af1c86624d57a5e86e370daf (diff) | |
| download | emacs-0e91dc923a0495534dba3d5b55093676d0321986.tar.gz emacs-0e91dc923a0495534dba3d5b55093676d0321986.zip | |
(event-modifiers, event-basic-type): Doc fixes.
| -rw-r--r-- | lisp/subr.el | 11 |
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. |
| 645 | The elements of the list may include `meta', `control', | 645 | The 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', |
| 647 | and `down'." | 647 | and `down'. |
| 648 | EVENT may be an event or an event type. If EVENT is a symbol | ||
| 649 | that has never been used in an event that has been read as input | ||
| 650 | in the current Emacs session, then this function can return nil, | ||
| 651 | even 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). |
| 674 | The value is a printing character (not upper case) or a symbol." | 678 | The value is a printing character (not upper case) or a symbol. |
| 679 | EVENT may be an event or an event type. If EVENT is a symbol | ||
| 680 | that has never been used in an event that has been read as input | ||
| 681 | in 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) |