unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [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

* Re: [patch] Very minor issue with CUA mode
  2005-04-30  0:04 [patch] Very minor issue with CUA mode Daniel Brockman
@ 2005-05-01 22:35 ` Kim F. Storm
  0 siblings, 0 replies; 2+ messages in thread
From: Kim F. Storm @ 2005-05-01 22:35 UTC (permalink / raw)
  Cc: emacs-devel

Daniel Brockman <daniel@brockman.se> writes:

> 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.
>
> 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.

You need to make bootstrap to test it.

I installed the patch, thanks.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ 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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).