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
d88757d6
Commit
d88757d6
authored
Jul 16, 2005
by
Richard M. Stallman
Browse files
(calculator-last-input): Guard uses of event-key and key-press-event-p.
(event-key, key-press-event-p): Delete definitions.
parent
b63ecadb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
lisp/calculator.el
lisp/calculator.el
+3
-8
No files found.
lisp/calculator.el
View file @
d88757d6
...
...
@@ -1277,12 +1277,6 @@ arguments."
(
if
Dbound
(
fset
'D
Dsave
)
(
fmakunbound
'D
)))))
(
error
0
)))
(
eval-when-compile
; silence the compiler
(
or
(
fboundp
'event-key
)
(
defun
event-key
(
&rest
_
)
nil
))
(
or
(
fboundp
'key-press-event-p
)
(
defun
key-press-event-p
(
&rest
_
)
nil
)))
;;;---------------------------------------------------------------------
;;; Input interaction
...
...
@@ -1301,8 +1295,9 @@ Optional string argument KEYS will force using it as the keys entered."
(
setq
k
(
aref
inp
i
))
;; if Emacs will someday have a event-key, then this would
;; probably be modified anyway
(
and
(
fboundp
'event-key
)
(
key-press-event-p
k
)
(
event-key
k
)
(
setq
k
(
event-key
k
)))
(
and
(
if
(
fboundp
'key-press-event-p
)
(
key-press-event-p
k
))
(
if
(
fboundp
'event-key
)
(
and
(
event-key
k
)
(
setq
k
(
event-key
k
)))))
;; assume all symbols are translatable with an ascii-character
(
and
(
symbolp
k
)
(
setq
k
(
or
(
get
k
'ascii-character
)
?
)))
...
...
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