diff options
author | Kim F. Storm <storm@cua.dk> | 2003-02-21 12:50:47 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2003-02-21 12:50:47 +0000 |
commit | 312cb3837b72d6f5c861d961941f8ca9e1ce1cd7 (patch) | |
tree | da22bed999a2028f3b84b10e2824e753a984e10e /lisp/emulation | |
parent | a95136e6a148c8a6d897c287b81e7d48108a94de (diff) | |
download | emacs-312cb3837b72d6f5c861d961941f8ca9e1ce1cd7.tar.gz |
Add run-time check to catch users trying
to use older versions of CUA-mode, rather than the version
distributed with Emacs. Use autoload cookies and eval-after-load.
Diffstat (limited to 'lisp/emulation')
-rw-r--r-- | lisp/emulation/cua-base.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 24f4e5e946a..de337d9fb82 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el @@ -1249,4 +1249,20 @@ paste (in addition to the normal emacs bindings)." (interactive) (setq cua--debug (not cua--debug))) +;; Install run-time check for older versions of CUA-mode which does not +;; work with GNU Emacs version 21.4 and newer. +;; +;; Except for version 1.2, all of the 1.x and 2.x version of cua-mode +;; provided the `CUA-mode' feature. Since this is no longer true, +;; we can warn the user if the `CUA-mode' feature is ever provided. + +;;;###autoload (eval-after-load 'CUA-mode +;;;###autoload '(error (concat "\n\n" +;;;###autoload "CUA-mode is now part of the standard GNU Emacs distribution,\n" +;;;###autoload "so you may now enable and customize CUA via the Options menu.\n\n" +;;;###autoload "Your " (file-name-nondirectory user-init-file) " loads an older version of CUA-mode which does\n" +;;;###autoload "not work correctly with this version of GNU Emacs.\n" +;;;###autoload "To correct this, remove the loading and customization of the\n" +;;;###autoload "old version from the " user-init-file " file.\n\n"))) + ;;; cua-base.el ends here |