all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Brockman <daniel@brockman.se>
Subject: [patch] Very minor issue with CUA mode
Date: Sat, 30 Apr 2005 02:04:37 +0200	[thread overview]
Message-ID: <87vf65t9ii.fsf@wigwam.deepwood.net> (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>

             reply	other threads:[~2005-04-30  0:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-30  0:04 Daniel Brockman [this message]
2005-05-01 22:35 ` [patch] Very minor issue with CUA mode Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vf65t9ii.fsf@wigwam.deepwood.net \
    --to=daniel@brockman.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.