diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-02-04 11:40:12 +0000 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-02-04 15:11:20 +0100 |
commit | 15aedf3e3d7814aff980098f9290396222c0ff8d (patch) | |
tree | 1a3b1287cc72b7ecb2703761ad03dfc75f4dbe2e /lisp/emacs-lisp/byte-opt.el | |
parent | ea56b58098d78b242bc0c51cf1d8b1d21962c130 (diff) | |
parent | b641c178ce3d022a9fca1d44ecb60f3878a989bd (diff) | |
download | emacs-15aedf3e3d7814aff980098f9290396222c0ff8d.tar.gz emacs-15aedf3e3d7814aff980098f9290396222c0ff8d.tar.bz2 emacs-15aedf3e3d7814aff980098f9290396222c0ff8d.zip |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
-rw-r--r-- | lisp/emacs-lisp/byte-opt.el | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 38bf1121e8a..fe0930c684b 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -498,15 +498,12 @@ form) ((eq fn 'condition-case) - (if byte-compile--use-old-handlers - ;; Will be optimized later. - form - `(condition-case ,(nth 1 form) ;Not evaluated. - ,(byte-optimize-form (nth 2 form) for-effect) - ,@(mapcar (lambda (clause) - `(,(car clause) - ,@(byte-optimize-body (cdr clause) for-effect))) - (nthcdr 3 form))))) + `(condition-case ,(nth 1 form) ;Not evaluated. + ,(byte-optimize-form (nth 2 form) for-effect) + ,@(mapcar (lambda (clause) + `(,(car clause) + ,@(byte-optimize-body (cdr clause) for-effect))) + (nthcdr 3 form)))) ((eq fn 'unwind-protect) ;; the "protected" part of an unwind-protect is compiled (and thus @@ -521,12 +518,7 @@ ((eq fn 'catch) (cons fn (cons (byte-optimize-form (nth 1 form) nil) - (if byte-compile--use-old-handlers - ;; The body of a catch is compiled (and thus - ;; optimized) as a top-level form, so don't do it - ;; here. - (cdr (cdr form)) - (byte-optimize-body (cdr form) for-effect))))) + (byte-optimize-body (cdr form) for-effect)))) ((eq fn 'ignore) ;; Don't treat the args to `ignore' as being |