* [patch] Very minor issue with CUA mode
@ 2005-04-30 0:04 Daniel Brockman
2005-05-01 22:35 ` Kim F. Storm
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Brockman @ 2005-04-30 0:04 UTC (permalink / raw)
Download cua.el from cua.dk and put it in ~/cua.el.
Then do emacs -q RET M-x load-file RET ~/cua.el RET. BANG.
*** cua-base.el 18 Apr 2005 21:50:07 +0200 1.46
--- cua-base.el 30 Apr 2005 00:43:44 +0200
***************
*** 1397,1406 ****
;;;###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")))
(provide 'cua)
--- 1397,1408 ----
;;;###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 (if user-init-file (concat
! ;;;###autoload "Your " (file-name-nondirectory user-init-file)
! ;;;###autoload " 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")))))
(provide 'cua)
Ideally, the error shouldn't even mention the init file unless it
actually knows that the library was loaded from there. I don't know,
is there something like `loading-init-file-p'?
I should say that I didn't test the above patch, and to be honest, I
couldn't figure out how to do it! It seems that the autoload code is
somehow cached so that changing it in the Lisp file doesn't work.
--
Daniel Brockman <daniel@brockman.se>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-01 22:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-30 0:04 [patch] Very minor issue with CUA mode Daniel Brockman
2005-05-01 22:35 ` Kim F. Storm
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.