summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-11-16 01:43:07 +0000
committerJim Blandy <jimb@redhat.com>1992-11-16 01:43:07 +0000
commitd77c36e8803c79e414fe9991e19e01945d6bb5ac (patch)
tree09011333f53b6b2198c30c56db6df3e2780c9162 /lisp
parentca3e10c715b5de43fcd54f8ddd1f223ae5f39fd0 (diff)
downloademacs-d77c36e8803c79e414fe9991e19e01945d6bb5ac.tar.gz
* subr.el (lambda): Don't use backquotes in lambda's definition.
* bytecomp.el: Declare unread-command-char an obsolete variable. * vip.el (vip-escape-to-emacs, vip-prefix-arg-value, vip-prefix-arg-com): Use unread-command-event instead of unread-command-char; respect its new semantics. * subr.el (read-quoted-char, momentary-string-display): Same.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 54db5f17420..858e9de6ac7 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -65,7 +65,7 @@ Optional argument PROMPT specifies a string to use to prompt the user."
(and prompt (message (setq prompt
(format "%s %c" prompt char)))))
((> count 0)
- (setq unread-command-char char count 259))
+ (setq unread-command-event char count 259))
(t (setq code char count 259))))
(logand 255 code)))
@@ -330,7 +330,7 @@ If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
(single-key-description exit-char))
(let ((char (read-char)))
(or (eq char exit-char)
- (setq unread-command-char char))))
+ (setq unread-command-event char))))
(if insert-end
(save-excursion
(delete-region pos insert-end)))
@@ -413,6 +413,8 @@ and then modifies one entry in it."
"Macro which allows one to write (lambda ...) for anonymous functions.
This is instead of having to write (function (lambda ...)) or
'(lambda ...), the latter of which won't get byte-compiled."
- (` (function (lambda (,@ cdr)))))
+ ;; Note that this definition should not use backquotes; subr.el should not
+ ;; depend on backquote.el.
+ (list 'function (cons 'lambda cdr)))
;;; subr.el ends here