From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: saneman Newsgroups: gmane.emacs.help Subject: Re: Cut and open commands? Date: Tue, 26 Feb 2008 10:12:30 +0100 Organization: UNI-C Message-ID: References: <87zlto6hos.fsf@W0053328.mgh.harvard.edu> <878x1866jz.fsf@W0053328.mgh.harvard.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204019213 21579 80.91.229.12 (26 Feb 2008 09:46:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 09:46:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 10:47:15 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JTwOh-00022f-3H for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 10:46:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTwOA-0006ps-SE for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 04:46:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 120 Original-NNTP-Posting-Host: 130.225.245.182 Original-X-Trace: news.net.uni-c.dk 1204017135 22304 130.225.245.182 (26 Feb 2008 09:12:15 GMT) Original-X-Complaints-To: usenet@news.net.uni-c.dk Original-NNTP-Posting-Date: Tue, 26 Feb 2008 09:12:15 +0000 (UTC) User-Agent: Thunderbird 2.0.0.6 (X11/20071022) In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:156503 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51872 Archived-At: Thierry Volpiatto wrote: > saneman writes: > >> Joel J. Adamson wrote: >>> saneman writes: >>> >>>> Joel J. Adamson wrote: >>>>> saneman writes: >>>>> >>>>> >>>>> [...] >>>>> >>>>>> I have installed: emacs-goodies-el where I can see that cua is listed, >>>>>> but I still get the error. >>>>> You have to load it; make sure the .el file is in your load-path (M-x >>>>> describe-variable RET load-path) and then use (require 'emacs-goodies). >>>>> I'm guessing you're using a Debian system, so it probably installed into >>>>> your load-path and all you need is the require statement in your .emacs. >>>>> >>>>> Joel >>>>> >>>> I have added this to my .emacs file: >>>> >>>> >>>> (setq load-path (cons "~/work/mylisp" load-path)) >>>> (setq load-path (cons "/usr/share/emacs21/site-lisp/emacs-goodies-el" >>>> load-path)) >>> Sorry I forgot to mention: use add-to-list as in >>> >>> (add-to-list 'load-path >>> (expand-file-name "~/lisp/el/")) >>> >>> Joel >>> >> I still get the same error. This is how my .emacs file looks: >> >> >> ;;; Emacs Load Path >> (setq load-path (cons "~/work/mylisp" load-path)) >> >> (add-to-list 'load-path >> (expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el")) >> >> >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> ;; Load .el files >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> >> (require 'emacs-goodies) >> >> >> >> >> I have tried to comment out: >> >> (add-to-list 'load-path >> (expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el")) >> >> and then print the content of my load-path with: >> >> M-x describe-variable RET load-path >> >> and the result is: >> >> load-path's value is >> ("~/work/mylisp" "/usr/share/emacs21/site-lisp/emacs-goodies-el" >> "/usr/share/emacs21/site-lisp/dictionaries-common" "/etc/emacs21" >> "/etc/emacs" "/usr/local/share/emacs/21.4/site-lisp" >> "/usr/local/share/emacs/site-lisp" "/usr/share/emacs/21.4/site-lisp" >> "/usr/share/emacs/21.4/site-lisp/dictionaries-common" >> "/usr/share/emacs/21.4/site-lisp/emacs-goodies-el" >> "/usr/share/emacs/site-lisp" "/usr/share/emacs/21.4/leim" >> "/usr/share/emacs/21.4/lisp" "/usr/share/emacs/21.4/lisp/toolbar" >> "/usr/share/emacs/21.4/lisp/textmodes" >> "/usr/share/emacs/21.4/lisp/progmodes" >> "/usr/share/emacs/21.4/lisp/play" >> "/usr/share/emacs/21.4/lisp/obsolete" "/usr/share/emacs/21.4/lisp/net" >> "/usr/share/emacs/21.4/lisp/mail" >> "/usr/share/emacs/21.4/lisp/language" >> "/usr/share/emacs/21.4/lisp/international" >> "/usr/share/emacs/21.4/lisp/gnus" "/usr/share/emacs/21.4/lisp/eshell" >> "/usr/share/emacs/21.4/lisp/emulation" >> "/usr/share/emacs/21.4/lisp/emacs-lisp" >> "/usr/share/emacs/21.4/lisp/calendar") >> >> As can be seen the /usr/share/emacs21/site-lisp/emacs-goodies-el path >> is already in my load-path without adding it in my .emacs file. So the >> error must have something to do with the: >> >> (require 'emacs-goodies) >> >> command... >> > This code: > > (add-to-list 'load-path > (expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el")) > is wrong > > And this one as Peter told you is wrong also: > > (require 'emacs-goodies) > > You have to add to load-path a directory and not a file /usr/share/emacs21/site-lisp/emacs-goodies-el is a directory containing the file (symlink): emacs-goodies-el.el > You have to require a name of file without the extension (what is in > provide at the end of this file) and not a directory. this made it work: (require 'emacs-goodies-el) instead of: (require 'emacs-goodies)