Mercurial > cpython-lru_cache-weakref
diff Misc/python-mode.el @ 7724:1bb943cd2c23 legacy-trunk
#minor change to eval-while-compile so that it must both find
#custom.el and have an up-to-date version (i.e. one that defines
#defcustom -- which Emacs 19.34's by default does not).
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Thu, 19 Mar 1998 22:33:06 +0000 |
| parents | d103c0180b2d |
| children | 663367ca13f8 |
line wrap: on
line diff
--- a/Misc/python-mode.el Thu Mar 19 21:52:06 1998 +0000 +++ b/Misc/python-mode.el Thu Mar 19 22:33:06 1998 +0000 @@ -108,10 +108,13 @@ (require 'custom) (eval-when-compile (require 'cl) - (require 'custom) - ;; Stock Emacs 19.34 has a broken/old Custom library that does more - ;; harm than good - (or (fboundp 'defcustom) + (if (not (and (condition-case nil + (require 'custom) + (error nil)) + ;; Stock Emacs 19.34 has a broken/old Custom library + ;; that does more harm than good. Fortunately, it is + ;; missing defcustom + (fboundp 'defcustom))) (error "STOP! STOP! STOP! STOP! The Custom library was not found or is out of date. A more current
