aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1992-11-16 01:43:07 +0000
committerJim Blandy1992-11-16 01:43:07 +0000
commitd77c36e8803c79e414fe9991e19e01945d6bb5ac (patch)
tree09011333f53b6b2198c30c56db6df3e2780c9162
parentca3e10c715b5de43fcd54f8ddd1f223ae5f39fd0 (diff)
downloademacs-d77c36e8803c79e414fe9991e19e01945d6bb5ac.tar.gz
emacs-d77c36e8803c79e414fe9991e19e01945d6bb5ac.zip
* 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.
-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."
65 (and prompt (message (setq prompt 65 (and prompt (message (setq prompt
66 (format "%s %c" prompt char))))) 66 (format "%s %c" prompt char)))))
67 ((> count 0) 67 ((> count 0)
68 (setq unread-command-char char count 259)) 68 (setq unread-command-event char count 259))
69 (t (setq code char count 259)))) 69 (t (setq code char count 259))))
70 (logand 255 code))) 70 (logand 255 code)))
71 71
@@ -330,7 +330,7 @@ If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
330 (single-key-description exit-char)) 330 (single-key-description exit-char))
331 (let ((char (read-char))) 331 (let ((char (read-char)))
332 (or (eq char exit-char) 332 (or (eq char exit-char)
333 (setq unread-command-char char)))) 333 (setq unread-command-event char))))
334 (if insert-end 334 (if insert-end
335 (save-excursion 335 (save-excursion
336 (delete-region pos insert-end))) 336 (delete-region pos insert-end)))
@@ -413,6 +413,8 @@ and then modifies one entry in it."
413 "Macro which allows one to write (lambda ...) for anonymous functions. 413 "Macro which allows one to write (lambda ...) for anonymous functions.
414This is instead of having to write (function (lambda ...)) or 414This is instead of having to write (function (lambda ...)) or
415'(lambda ...), the latter of which won't get byte-compiled." 415'(lambda ...), the latter of which won't get byte-compiled."
416 (` (function (lambda (,@ cdr))))) 416 ;; Note that this definition should not use backquotes; subr.el should not
417 ;; depend on backquote.el.
418 (list 'function (cons 'lambda cdr)))
417 419
418;;; subr.el ends here 420;;; subr.el ends here