aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2003-02-21 12:50:58 +0000
committerKim F. Storm2003-02-21 12:50:58 +0000
commit06f8e605cdecaf35c26e310348333517fea8df4d (patch)
tree56c72039e91d8988c5ab0f3e83edd6ae4878e2da
parentf5b6cffdd7fc800a6aa288896a9242031d75fff1 (diff)
downloademacs-06f8e605cdecaf35c26e310348333517fea8df4d.tar.gz
emacs-06f8e605cdecaf35c26e310348333517fea8df4d.zip
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.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/emulation/cua-base.el16
2 files changed, 27 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 27e13540d13..89cb57f8727 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
12003-02-21 Kim F. Storm <storm@cua.dk>
2
3 * emulation/cua-base.el: Add run-time check to catch users trying
4 to use older versions of CUA-mode, rather than the version
5 distributed with Emacs. Use autoload cookies and eval-after-load.
6
7 * startup.el (command-line): Clarify and tidy up the message
8 printed when there are errors in the user-init-file.
9 Do not encapsulate the error data; it's read by humans here.
10 Do not split windows when displaying the *Message* buffer.
11
12003-02-20 Ehud Karni <ehud@unix.mvs.co.il> (tiny change) 122003-02-20 Ehud Karni <ehud@unix.mvs.co.il> (tiny change)
2 13
3 * mail/rmail.el (rmail-insert-inbox-text): Make the pop3 mechanism 14 * mail/rmail.el (rmail-insert-inbox-text): Make the pop3 mechanism
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)."
1249 (interactive) 1249 (interactive)
1250 (setq cua--debug (not cua--debug))) 1250 (setq cua--debug (not cua--debug)))
1251 1251
1252;; Install run-time check for older versions of CUA-mode which does not
1253;; work with GNU Emacs version 21.4 and newer.
1254;;
1255;; Except for version 1.2, all of the 1.x and 2.x version of cua-mode
1256;; provided the `CUA-mode' feature. Since this is no longer true,
1257;; we can warn the user if the `CUA-mode' feature is ever provided.
1258
1259;;;###autoload (eval-after-load 'CUA-mode
1260;;;###autoload '(error (concat "\n\n"
1261;;;###autoload "CUA-mode is now part of the standard GNU Emacs distribution,\n"
1262;;;###autoload "so you may now enable and customize CUA via the Options menu.\n\n"
1263;;;###autoload "Your " (file-name-nondirectory user-init-file) " loads an older version of CUA-mode which does\n"
1264;;;###autoload "not work correctly with this version of GNU Emacs.\n"
1265;;;###autoload "To correct this, remove the loading and customization of the\n"
1266;;;###autoload "old version from the " user-init-file " file.\n\n")))
1267
1252;;; cua-base.el ends here 1268;;; cua-base.el ends here