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
1d6fc0df
Commit
1d6fc0df
authored
Jul 19, 2012
by
Stefan Monnier
Browse files
* lisp/subr.el (eventp): Presume that if it looks vaguely like an event,
it's an event. Fixes: debbugs:10190
parent
d17337e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
lisp/ChangeLog
lisp/ChangeLog
+6
-1
lisp/subr.el
lisp/subr.el
+3
-11
No files found.
lisp/ChangeLog
View file @
1d6fc0df
2012-07-19 Stefan Monnier <monnier@iro.umontreal.ca>
* subr.el (eventp): Presume that if it looks vaguely like an event,
it's an event (bug#10190).
2012-07-19 Fabián Ezequiel Gallina <fgallina@cuca>
2012-07-19 Fabián Ezequiel Gallina <fgallina@cuca>
Enhancements to ppss related code (thanks Stefan).
Enhancements to ppss related code (thanks Stefan).
...
@@ -5,7 +10,7 @@
...
@@ -5,7 +10,7 @@
(python-indent-calculate-indentation, python-indent-dedent-line)
(python-indent-calculate-indentation, python-indent-dedent-line)
(python-indent-electric-colon, python-nav-forward-block)
(python-indent-electric-colon, python-nav-forward-block)
(python-mode-abbrev-table)
(python-mode-abbrev-table)
(python-info-assignment-continuation-line-p): Simplif
ied
checks
(python-info-assignment-continuation-line-p): Simplif
y
checks
for ppss context.
for ppss context.
(python-info-continuation-line-p): Cleanup.
(python-info-continuation-line-p): Cleanup.
(python-info-ppss-context): Do not catch 'quote.
(python-info-ppss-context): Do not catch 'quote.
...
...
lisp/subr.el
View file @
1d6fc0df
...
@@ -909,17 +909,9 @@ The normal global definition of the character C-x indirects to this keymap.")
...
@@ -909,17 +909,9 @@ The normal global definition of the character C-x indirects to this keymap.")
(
defsubst
eventp
(
obj
)
(
defsubst
eventp
(
obj
)
"True if the argument is an event object."
"True if the argument is an event object."
(
or
(
and
(
integerp
obj
)
(
or
(
integerp
obj
)
;; FIXME: Why bother?
(
and
(
symbolp
obj
)
obj
(
not
(
keywordp
obj
)))
;; Filter out integers too large to be events.
(
and
(
consp
obj
)
(
symbolp
(
car
obj
)))))
;; M is the biggest modifier.
(
zerop
(
logand
obj
(
lognot
(
1-
(
lsh
?\M-\^@
1
)))))
(
characterp
(
event-basic-type
obj
)))
(
and
(
symbolp
obj
)
(
get
obj
'event-symbol-elements
))
(
and
(
consp
obj
)
(
symbolp
(
car
obj
))
(
get
(
car
obj
)
'event-symbol-elements
))))
(
defun
event-modifiers
(
event
)
(
defun
event-modifiers
(
event
)
"Return a list of symbols representing the modifier keys in event EVENT.
"Return a list of symbols representing the modifier keys in event EVENT.
...
...
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