summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-opt.el
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2023-01-17 22:11:31 +0800
committerPo Lu <luangruo@yahoo.com>2023-01-17 22:11:31 +0800
commit6253e7e74249c7cdfa86723f0b91a1d207cb143e (patch)
tree797c1f9de31084283df720f1d5e61626733cda33 /lisp/emacs-lisp/byte-opt.el
parent1b8258a1f2b6a080a4f0e819aa4a86c1ec2da89f (diff)
parent96015c9c8cc1720e8ee7cd9cea4de48126dd9122 (diff)
downloademacs-6253e7e74249c7cdfa86723f0b91a1d207cb143e.tar.gz
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
-rw-r--r--lisp/emacs-lisp/byte-opt.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index d7a0d851e01..039cebedb44 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -1380,6 +1380,9 @@ See Info node `(elisp) Integer Basics'."
;; (apply F ... (list X Y ...)) -> (funcall F ... X Y ...)
((eq (car-safe last) 'list)
`(funcall ,fn ,@(butlast (cddr form)) ,@(cdr last)))
+ ;; (apply F ... (cons X Y)) -> (apply F ... X Y)
+ ((eq (car-safe last) 'cons)
+ (append (butlast form) (cdr last)))
(t form)))
form)))