From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Cut and open commands? Date: Tue, 26 Feb 2008 08:51:05 +0100 Message-ID: <87mypo6tqu.fsf@thievol.homelinux.org> 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=us-ascii X-Trace: ger.gmane.org 1204011646 28755 80.91.229.12 (26 Feb 2008 07:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 07:40:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: saneman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 08:41:02 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 1JTuQv-0004DH-Gi for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 08:41:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTuQP-0001Yx-KL for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 02:40:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTuPY-0001I8-OQ for help-gnu-emacs@gnu.org; Tue, 26 Feb 2008 02:39:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTuPX-0001H8-TP for help-gnu-emacs@gnu.org; Tue, 26 Feb 2008 02:39:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTuPX-0001Gz-Pv for help-gnu-emacs@gnu.org; Tue, 26 Feb 2008 02:39:35 -0500 Original-Received: from fk-out-0910.google.com ([209.85.128.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTuPX-0003cC-Af for help-gnu-emacs@gnu.org; Tue, 26 Feb 2008 02:39:35 -0500 Original-Received: by fk-out-0910.google.com with SMTP id 26so2422226fkx.10 for ; Mon, 25 Feb 2008 23:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=IRgPbf6U0R5aRt2WxF81drQsgktlyqfJvNP5NZXHU9Q=; b=WhZfLzBBc25QOBUuTGDiJOV4YmgWcLjE1nD+S6IvmN1NTYfpwtpDQok7qQ2KToofWiOSCFhPMyj3HhbkdTEUHDYQM9NDOQ9pdhZaqChVg1hZuvwBBSiJcmK5f3hy06SxPIbF1wwfJ53gQGFefgMY2NBkT0Lp62hGoX9yp3fpm/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=xe4aMKFw5iOt0a2EuBlI11sDGrTIX4jaqngNkQllD6OF0Spo+iPXRP/FGbXBmoY4P5tlAhRyHrXFXm5Cwr3GbuRSv998NhQsfniHbryZ9mvsxBvWbQL6Pr+yoAKUXlbOo715DBSFPh027ywjAaokSA3dSUIQFuIzB8/ivrbJKOg= Original-Received: by 10.82.191.3 with SMTP id o3mr8133215buf.17.1204011574097; Mon, 25 Feb 2008 23:39:34 -0800 (PST) Original-Received: from thievol.homelinux.org ( [77.197.77.154]) by mx.google.com with ESMTPS id w5sm8723456mue.2.2008.02.25.23.39.31 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Feb 2008 23:39:32 -0800 (PST) In-Reply-To: (saneman's message of "Mon, 25 Feb 2008 23:27:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:51870 Archived-At: 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 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. -- A + Thierry Pub key: http://pgp.mit.edu