diff options
| -rw-r--r-- | lisp/subr.el | 8 |
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. |
| 414 | This is instead of having to write (function (lambda ...)) or | 414 | This 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 |