aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2019-06-21 10:30:50 -0400
committerStefan Monnier2019-06-21 10:30:50 -0400
commit436ccc6967146e5fbcf7a27a90fb44d0452cb901 (patch)
tree0579a3bcf627661a4cedf9aa69e2d73508263ec7
parent869cf5cbc0721bbe9e4df557f4ed3633fb13c05f (diff)
downloademacs-436ccc6967146e5fbcf7a27a90fb44d0452cb901.tar.gz
emacs-436ccc6967146e5fbcf7a27a90fb44d0452cb901.zip
* lisp/emacs-lisp/bytecomp.el (byte-compile-dynamic): Mark obsolete
See bug#11649 for an example problem, and emacs-devel discussion «Prickliness of the "invalid byte code" stuff». * lisp/wid-edit.el, lisp/wdired.el, lisp/vc/pcvs-util.el: * lisp/progmodes/executable.el, lisp/mail/sendmail.el: * lisp/emacs-lisp/cl-seq.el, lisp/emacs-lisp/cl-macs.el: * lisp/emacs-lisp/cl-lib.el, lisp/emacs-lisp/cl-extra.el: * lisp/dired-x.el, lisp/dired-aux.el, lisp/calendar/calendar.el: Don't use byte-compile-dynamic any more.
-rw-r--r--etc/NEWS6
-rw-r--r--lisp/calendar/calendar.el7
-rw-r--r--lisp/dired-aux.el1
-rw-r--r--lisp/dired-x.el1
-rw-r--r--lisp/emacs-lisp/bytecomp.el3
-rw-r--r--lisp/emacs-lisp/cl-extra.el1
-rw-r--r--lisp/emacs-lisp/cl-lib.el4
-rw-r--r--lisp/emacs-lisp/cl-macs.el1
-rw-r--r--lisp/emacs-lisp/cl-seq.el1
-rw-r--r--lisp/mail/sendmail.el5
-rw-r--r--lisp/progmodes/executable.el2
-rw-r--r--lisp/vc/pcvs-util.el2
-rw-r--r--lisp/wdired.el5
-rw-r--r--lisp/wid-edit.el2
14 files changed, 12 insertions, 29 deletions
diff --git a/etc/NEWS b/etc/NEWS
index f880e393c02..fabf5a3341b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -472,6 +472,12 @@ current and the previous or the next line, as before.
472 472
473* Changes in Specialized Modes and Packages in Emacs 27.1 473* Changes in Specialized Modes and Packages in Emacs 27.1
474 474
475** byte compiler
476*** byte-compile-dynamic is now obsolete
477This is because on the one hand it suffers from various misbehaviors in corner
478cases that have plagued it for years, and on the other experiments indicated
479that it doesn't bring any measurable benefit.
480
475** compile.el 481** compile.el
476--- 482---
477*** In 'compilation-error-regexp-alist', 'line' (and 'end-line') can 483*** In 'compilation-error-regexp-alist', 'line' (and 'end-line') can
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 2baa01f9d5a..1e988c2712f 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -212,8 +212,7 @@ update the calendar display to reflect the change, otherwise
212movement commands will not work correctly." 212movement commands will not work correctly."
213 :type 'integer 213 :type 'integer
214 ;; Change the initialize so that if you reload calendar.el, it will not 214 ;; Change the initialize so that if you reload calendar.el, it will not
215 ;; cause a redraw (which may fail, e.g. with "invalid byte-code in 215 ;; cause a redraw.
216 ;; calendar.elc" because of the "byte-compile-dynamic").
217 :initialize 'custom-initialize-default 216 :initialize 'custom-initialize-default
218 :set (lambda (sym val) 217 :set (lambda (sym val)
219 (set sym val) 218 (set sym val)
@@ -2666,8 +2665,4 @@ If called by a mouse-event, pops up a menu with the result."
2666 2665
2667(provide 'calendar) 2666(provide 'calendar)
2668 2667
2669;; Local variables:
2670;; byte-compile-dynamic: t
2671;; End:
2672
2673;;; calendar.el ends here 2668;;; calendar.el ends here
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 41fcd062fb8..2705c0ad2a3 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2959,7 +2959,6 @@ instead."
2959(provide 'dired-aux) 2959(provide 'dired-aux)
2960 2960
2961;; Local Variables: 2961;; Local Variables:
2962;; byte-compile-dynamic: t
2963;; generated-autoload-file: "dired-loaddefs.el" 2962;; generated-autoload-file: "dired-loaddefs.el"
2964;; End: 2963;; End:
2965 2964
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 3b78ec47d93..b7ec41aa95f 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -1598,7 +1598,6 @@ If `current-prefix-arg' is non-nil, uses name at point as guess."
1598(provide 'dired-x) 1598(provide 'dired-x)
1599 1599
1600;; Local Variables: 1600;; Local Variables:
1601;; byte-compile-dynamic: t
1602;; generated-autoload-file: "dired-loaddefs.el" 1601;; generated-autoload-file: "dired-loaddefs.el"
1603;; End: 1602;; End:
1604 1603
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index b7351481106..431525431a4 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -240,6 +240,7 @@ For example, add -*-byte-compile-dynamic: t;-*- on the first line.
240 240
241When this option is true, if you load the compiled file and then move it, 241When this option is true, if you load the compiled file and then move it,
242the functions you loaded will not be able to run.") 242the functions you loaded will not be able to run.")
243(make-obsolete-variable 'byte-compile-dynamic "not worthwhile any more." "27.1")
243;;;###autoload(put 'byte-compile-dynamic 'safe-local-variable 'booleanp) 244;;;###autoload(put 'byte-compile-dynamic 'safe-local-variable 'booleanp)
244 245
245(defvar byte-compile-disable-print-circle nil 246(defvar byte-compile-disable-print-circle nil
@@ -1031,7 +1032,7 @@ If STR is something like \"Buffer foo.el\", return #<buffer foo.el>
1031 str)) 1032 str))
1032 1033
1033(defconst emacs-lisp-compilation-parse-errors-filename-function 1034(defconst emacs-lisp-compilation-parse-errors-filename-function
1034 'emacs-lisp-compilation-file-name-or-buffer 1035 #'emacs-lisp-compilation-file-name-or-buffer
1035 "The value for `compilation-parse-errors-filename-function' for when 1036 "The value for `compilation-parse-errors-filename-function' for when
1036we go into emacs-lisp-compilation-mode.") 1037we go into emacs-lisp-compilation-mode.")
1037 1038
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el
index a2400a0ba37..90533295b68 100644
--- a/lisp/emacs-lisp/cl-extra.el
+++ b/lisp/emacs-lisp/cl-extra.el
@@ -938,7 +938,6 @@ Outputs to the current buffer."
938(run-hooks 'cl-extra-load-hook) 938(run-hooks 'cl-extra-load-hook)
939 939
940;; Local variables: 940;; Local variables:
941;; byte-compile-dynamic: t
942;; generated-autoload-file: "cl-loaddefs.el" 941;; generated-autoload-file: "cl-loaddefs.el"
943;; End: 942;; End:
944 943
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 3a9280fae62..f014f8e0104 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -660,8 +660,4 @@ of record objects."
660 (t 660 (t
661 (advice-remove 'type-of #'cl--old-struct-type-of)))) 661 (advice-remove 'type-of #'cl--old-struct-type-of))))
662 662
663;; Local variables:
664;; byte-compile-dynamic: t
665;; End:
666
667;;; cl-lib.el ends here 663;;; cl-lib.el ends here
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 24e79acfa55..7e11dd2e4aa 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -3397,7 +3397,6 @@ STRUCT and SLOT-NAME are symbols. INST is a structure instance."
3397(run-hooks 'cl-macs-load-hook) 3397(run-hooks 'cl-macs-load-hook)
3398 3398
3399;; Local variables: 3399;; Local variables:
3400;; byte-compile-dynamic: t
3401;; generated-autoload-file: "cl-loaddefs.el" 3400;; generated-autoload-file: "cl-loaddefs.el"
3402;; End: 3401;; End:
3403 3402
diff --git a/lisp/emacs-lisp/cl-seq.el b/lisp/emacs-lisp/cl-seq.el
index 87c02a6b54f..a15c994bc1a 100644
--- a/lisp/emacs-lisp/cl-seq.el
+++ b/lisp/emacs-lisp/cl-seq.el
@@ -1038,7 +1038,6 @@ Atoms are compared by `eql'; cons cells are compared recursively.
1038(run-hooks 'cl-seq-load-hook) 1038(run-hooks 'cl-seq-load-hook)
1039 1039
1040;; Local variables: 1040;; Local variables:
1041;; byte-compile-dynamic: t
1042;; generated-autoload-file: "cl-loaddefs.el" 1041;; generated-autoload-file: "cl-loaddefs.el"
1043;; End: 1042;; End:
1044 1043
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 208ebb68017..291efab961e 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -2078,9 +2078,4 @@ you can move to one of them and type C-c C-c to recover that one."
2078;; Do not add anything but external entries on this page. 2078;; Do not add anything but external entries on this page.
2079 2079
2080(provide 'sendmail) 2080(provide 'sendmail)
2081
2082;; Local Variables:
2083;; byte-compile-dynamic: t
2084;; End:
2085
2086;;; sendmail.el ends here 2081;;; sendmail.el ends here
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el
index d7985a7c87a..8d206c38413 100644
--- a/lisp/progmodes/executable.el
+++ b/lisp/progmodes/executable.el
@@ -1,4 +1,4 @@
1;;; executable.el --- base functionality for executable interpreter scripts -*- byte-compile-dynamic: t -*- 1;;; executable.el --- base functionality for executable interpreter scripts
2 2
3;; Copyright (C) 1994-1996, 2000-2019 Free Software Foundation, Inc. 3;; Copyright (C) 1994-1996, 2000-2019 Free Software Foundation, Inc.
4 4
diff --git a/lisp/vc/pcvs-util.el b/lisp/vc/pcvs-util.el
index 55da04ff40a..5a50393d622 100644
--- a/lisp/vc/pcvs-util.el
+++ b/lisp/vc/pcvs-util.el
@@ -1,4 +1,4 @@
1;;; pcvs-util.el --- utility functions for PCL-CVS -*- byte-compile-dynamic: t -*- 1;;; pcvs-util.el --- utility functions for PCL-CVS
2 2
3;; Copyright (C) 1991-2019 Free Software Foundation, Inc. 3;; Copyright (C) 1991-2019 Free Software Foundation, Inc.
4 4
diff --git a/lisp/wdired.el b/lisp/wdired.el
index d2a298bd25b..b52da777533 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -913,9 +913,4 @@ Like original function but it skips read-only words."
913 (cons changes errors))) 913 (cons changes errors)))
914 914
915(provide 'wdired) 915(provide 'wdired)
916
917;; Local Variables:
918;; byte-compile-dynamic: t
919;; End:
920
921;;; wdired.el ends here 916;;; wdired.el ends here
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 382eeb8925d..d6f42dab8c4 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -1,4 +1,4 @@
1;;; wid-edit.el --- Functions for creating and using widgets -*-byte-compile-dynamic: t; lexical-binding:t -*- 1;;; wid-edit.el --- Functions for creating and using widgets -*- lexical-binding:t -*-
2;; 2;;
3;; Copyright (C) 1996-1997, 1999-2019 Free Software Foundation, Inc. 3;; Copyright (C) 1996-1997, 1999-2019 Free Software Foundation, Inc.
4;; 4;;