mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Test for an up-to-date Custom library when byte-compiling, and issue
an informative message when one cannot be found, as is the case with a vanilla Emacs 19.34 (and NTEmacs 19.34).
This commit is contained in:
parent
08052c7bb6
commit
673d05f0ee
1 changed files with 20 additions and 1 deletions
|
@ -30,6 +30,8 @@
|
||||||
;; you may need to acquire the Custom library. Please see
|
;; you may need to acquire the Custom library. Please see
|
||||||
;; <http://www.python.org/ftp/emacs/> for details.
|
;; <http://www.python.org/ftp/emacs/> for details.
|
||||||
|
|
||||||
|
;; You will want to byte-compile this file.
|
||||||
|
|
||||||
;; python-mode.el is currently distributed with XEmacs 19 and XEmacs
|
;; python-mode.el is currently distributed with XEmacs 19 and XEmacs
|
||||||
;; 20. Since this file is not GPL'd it is not distributed with Emacs,
|
;; 20. Since this file is not GPL'd it is not distributed with Emacs,
|
||||||
;; but it is compatible with 19.34 and the current 20 series Emacsen.
|
;; but it is compatible with 19.34 and the current 20 series Emacsen.
|
||||||
|
@ -80,7 +82,24 @@
|
||||||
|
|
||||||
(require 'custom)
|
(require 'custom)
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
(require 'cl))
|
(require 'cl)
|
||||||
|
(require 'custom)
|
||||||
|
;; Stock Emacs 19.34 has a broken/old Custom library that does more
|
||||||
|
;; harm than good
|
||||||
|
(or (fboundp 'defcustom)
|
||||||
|
(error "STOP! STOP! STOP! STOP!
|
||||||
|
|
||||||
|
The Custom library was not found or is out of date. A more current
|
||||||
|
version is required. Please download and install the latest version
|
||||||
|
of the Custom library from:
|
||||||
|
|
||||||
|
<http://www.dina.kvl.dk/~abraham/custom/>
|
||||||
|
|
||||||
|
See the Python Mode home page for details:
|
||||||
|
|
||||||
|
<http://www.python.org/ftp/emacs/>
|
||||||
|
")))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;; user definable variables
|
;; user definable variables
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue