diff options
| author | Stefan Kangas | 2021-12-19 16:09:32 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2021-12-19 16:09:32 +0100 |
| commit | 8f82a83caec9ad48a6d4abc4dc26bed67f0e89e3 (patch) | |
| tree | 215bc5aaf14f33fbc6f3a89d60f4d3cddd05a30c | |
| parent | 22b8d6813217187e3121338b93deabe62add99c1 (diff) | |
| download | emacs-8f82a83caec9ad48a6d4abc4dc26bed67f0e89e3.tar.gz emacs-8f82a83caec9ad48a6d4abc4dc26bed67f0e89e3.zip | |
Make bad-packages-alist obsolete
* lisp/simple.el (bad-packages-alist, bad-package-check): Make
obsolete. (Bug#52351)
| -rw-r--r-- | lisp/simple.el | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 26c3ff575e2..b217aeb49ce 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -9790,24 +9790,7 @@ If it does not exist, create it and switch it to `messages-buffer-mode'." | |||
| 9790 | ;; versions together with bad values. This is therefore not as | 9790 | ;; versions together with bad values. This is therefore not as |
| 9791 | ;; flexible as it could be. See the thread: | 9791 | ;; flexible as it could be. See the thread: |
| 9792 | ;; https://lists.gnu.org/r/emacs-devel/2007-08/msg00300.html | 9792 | ;; https://lists.gnu.org/r/emacs-devel/2007-08/msg00300.html |
| 9793 | (defconst bad-packages-alist | 9793 | (defconst bad-packages-alist nil |
| 9794 | ;; Not sure exactly which semantic versions have problems. | ||
| 9795 | ;; Definitely 2.0pre3, probably all 2.0pre's before this. | ||
| 9796 | '((semantic semantic-version "\\`2\\.0pre[1-3]\\'" | ||
| 9797 | "The version of `semantic' loaded does not work in Emacs 22. | ||
| 9798 | It can cause constant high CPU load. | ||
| 9799 | Upgrade to at least Semantic 2.0pre4 (distributed with CEDET 1.0pre4).") | ||
| 9800 | ;; CUA-mode does not work with GNU Emacs version 22.1 and newer. | ||
| 9801 | ;; Except for version 1.2, all of the 1.x and 2.x version of cua-mode | ||
| 9802 | ;; provided the `CUA-mode' feature. Since this is no longer true, | ||
| 9803 | ;; we can warn the user if the `CUA-mode' feature is ever provided. | ||
| 9804 | (CUA-mode t nil | ||
| 9805 | "CUA-mode is now part of the standard GNU Emacs distribution, | ||
| 9806 | so you can now enable CUA via the Options menu or by customizing `cua-mode'. | ||
| 9807 | |||
| 9808 | You have loaded an older version of CUA-mode which does not work | ||
| 9809 | correctly with this version of Emacs. You should remove the old | ||
| 9810 | version and use the one distributed with Emacs.")) | ||
| 9811 | "Alist of packages known to cause problems in this version of Emacs. | 9794 | "Alist of packages known to cause problems in this version of Emacs. |
| 9812 | Each element has the form (PACKAGE SYMBOL REGEXP STRING). | 9795 | Each element has the form (PACKAGE SYMBOL REGEXP STRING). |
| 9813 | PACKAGE is either a regular expression to match file names, or a | 9796 | PACKAGE is either a regular expression to match file names, or a |
| @@ -9815,9 +9798,11 @@ symbol (a feature name), like for `with-eval-after-load'. | |||
| 9815 | SYMBOL is either the name of a string variable, or t. Upon | 9798 | SYMBOL is either the name of a string variable, or t. Upon |
| 9816 | loading PACKAGE, if SYMBOL is t or matches REGEXP, display a | 9799 | loading PACKAGE, if SYMBOL is t or matches REGEXP, display a |
| 9817 | warning using STRING as the message.") | 9800 | warning using STRING as the message.") |
| 9801 | (make-obsolete-variable 'bad-packages-alist nil "29.1") | ||
| 9818 | 9802 | ||
| 9819 | (defun bad-package-check (package) | 9803 | (defun bad-package-check (package) |
| 9820 | "Run a check using the element from `bad-packages-alist' matching PACKAGE." | 9804 | "Run a check using the element from `bad-packages-alist' matching PACKAGE." |
| 9805 | (declare (obsolete nil "29.1")) | ||
| 9821 | (condition-case nil | 9806 | (condition-case nil |
| 9822 | (let* ((list (assoc package bad-packages-alist)) | 9807 | (let* ((list (assoc package bad-packages-alist)) |
| 9823 | (symbol (nth 1 list))) | 9808 | (symbol (nth 1 list))) |
| @@ -9829,11 +9814,6 @@ warning using STRING as the message.") | |||
| 9829 | (display-warning package (nth 3 list) :warning))) | 9814 | (display-warning package (nth 3 list) :warning))) |
| 9830 | (error nil))) | 9815 | (error nil))) |
| 9831 | 9816 | ||
| 9832 | (dolist (elem bad-packages-alist) | ||
| 9833 | (let ((pkg (car elem))) | ||
| 9834 | (with-eval-after-load pkg | ||
| 9835 | (bad-package-check pkg)))) | ||
| 9836 | |||
| 9837 | 9817 | ||
| 9838 | ;;; Generic dispatcher commands | 9818 | ;;; Generic dispatcher commands |
| 9839 | 9819 | ||