aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2007-11-15 16:03:00 +0000
committerStefan Monnier2007-11-15 16:03:00 +0000
commit58da34c73b6fb576474c73c29dfc9cf1a9e9751e (patch)
tree7756bae639e70c8b3049f6e34cec61308537d51c /lisp
parent21e1464132e49b38ba58a944a2183006c309124f (diff)
downloademacs-58da34c73b6fb576474c73c29dfc9cf1a9e9751e.tar.gz
emacs-58da34c73b6fb576474c73c29dfc9cf1a9e9751e.zip
* subr.el (event-modifiers): Use internal-event-symbol-parse-modifiers.
* keyboard.c (Fevent_symbol_parse_modifiers): New function. (syms_of_keyboard): Defsubr it.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/subr.el4
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f39752b4e18..baf66e2007a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12007-11-15 Stefan Monnier <monnier@iro.umontreal.ca> 12007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * subr.el (event-modifiers): Use internal-event-symbol-parse-modifiers.
4
3 * pcvs.el (cvs-revert-if-needed): Ignore `unknown' files, since cvs 5 * pcvs.el (cvs-revert-if-needed): Ignore `unknown' files, since cvs
4 did not touch them. 6 did not touch them.
5 7
diff --git a/lisp/subr.el b/lisp/subr.el
index 17abc70e073..39bd8ea13c2 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -723,7 +723,9 @@ even when EVENT actually has modifiers."
723 (if (listp type) 723 (if (listp type)
724 (setq type (car type))) 724 (setq type (car type)))
725 (if (symbolp type) 725 (if (symbolp type)
726 (cdr (get type 'event-symbol-elements)) 726 ;; Don't read event-symbol-elements directly since we're not
727 ;; sure the symbol has already been parsed.
728 (cdr (internal-event-symbol-parse-modifiers type))
727 (let ((list nil) 729 (let ((list nil)
728 (char (logand type (lognot (logior ?\M-\^@ ?\C-\^@ ?\S-\^@ 730 (char (logand type (lognot (logior ?\M-\^@ ?\C-\^@ ?\S-\^@
729 ?\H-\^@ ?\s-\^@ ?\A-\^@))))) 731 ?\H-\^@ ?\s-\^@ ?\A-\^@)))))