Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d63de416
Commit
d63de416
authored
Mar 08, 1993
by
Richard M. Stallman
Browse files
(event-basic-type): New function.
parent
1a7c673b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lisp/subr.el
lisp/subr.el
+8
-0
No files found.
lisp/subr.el
View file @
d63de416
...
...
@@ -244,6 +244,14 @@ See also the function `event-modifier-bits'."
(
setq
list
(
cons
'alt
list
)))
list
))))
(
defun
event-basic-type
(
event
)
"Returns the basic type of the given event (all modifiers removed).
The value is an ASCII printing character (not upper case) or a symbol."
(
if
(
symbolp
event
)
(
car
(
get
event
'event-symbol-elements
))
(
let
((
base
(
logand
event
(
1-
(
lsh
1
18
)))))
(
downcase
(
if
(
<
base
32
)
(
logior
base
64
)
base
)))))
(
defmacro
save-match-data
(
&rest
body
)
"Execute the BODY forms, restoring the global value of the match data."
(
let
((
original
(
make-symbol
"match-data"
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment