From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Brockman Newsgroups: gmane.emacs.devel Subject: [patch] Very minor issue with CUA mode Date: Sat, 30 Apr 2005 02:04:37 +0200 Message-ID: <87vf65t9ii.fsf@wigwam.deepwood.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114969631 28946 80.91.229.2 (1 May 2005 17:47:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 May 2005 17:47:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 01 19:47:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DSIWs-00032V-MO for ged-emacs-devel@m.gmane.org; Sun, 01 May 2005 19:46:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSIVb-0005Tn-1q for ged-emacs-devel@m.gmane.org; Sun, 01 May 2005 13:45:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSIAc-0003vM-EI for emacs-devel@gnu.org; Sun, 01 May 2005 13:23:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSIAZ-0003u7-9q for emacs-devel@gnu.org; Sun, 01 May 2005 13:23:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSIAY-0003tV-Pd for emacs-devel@gnu.org; Sun, 01 May 2005 13:23:50 -0400 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34) id 1DSHnc-0007Lm-VS for emacs-devel@gnu.org; Sun, 01 May 2005 13:00:09 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.34) id 1DRfSh-0006vE-Au for emacs-devel@gnu.org; Fri, 29 Apr 2005 20:03:59 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DRfJ1-0001y7-Fk for emacs-devel@gnu.org; Sat, 30 Apr 2005 01:53:59 +0200 Original-Received: from c-4db670d5.028-10-67766c2.cust.bredbandsbolaget.se ([213.112.182.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Apr 2005 01:53:59 +0200 Original-Received: from daniel by c-4db670d5.028-10-67766c2.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Apr 2005 01:53:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-4db670d5.028-10-67766c2.cust.bredbandsbolaget.se X-Face: :&2UWGm>e24)ip~'K@iOsA&JT3JX*v@1-#L)=dUb825\Fwg#`^N!Y*g-TqdS AevzjFJe96f@V'ya8${57/T'"mTd`1o{TGYhHnVucLq!D$r2O{IN)7>.0op_Y`%r;/Q +(]`3F-t10N7NF\.Mm0q}p1:%iqTi:5]1E]rDF)R$9.!,Eu'9K':y9^U3F8UCS1M+A$ 8[[[WT^`$P[vu>P+8]aQMh9giu&fPCqLW2FSsGs User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:kTKsJxZHBLaDJ96mSEWrZvYgloM= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36540 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36540 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