From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Timur Aydin Newsgroups: gmane.emacs.help Subject: Re: xcscope setup Date: Wed, 20 May 2015 19:38:15 +0300 Message-ID: <555CB877.2050000@taydin.org> References: <555C79FD.9040805@taydin.org> <155DEC68569B714B86C2C7075F5EDA9892BF7DBA@DAKIYA1.pegasus.local> <555C9FBE.4010301@taydin.org> <83bnhf70l6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1432139997 26751 80.91.229.3 (20 May 2015 16:39:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 16:39:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 20 18:39:57 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yv72D-0004XA-4W for geh-help-gnu-emacs@m.gmane.org; Wed, 20 May 2015 18:39:57 +0200 Original-Received: from localhost ([::1]:53328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv72C-0007dw-KQ for geh-help-gnu-emacs@m.gmane.org; Wed, 20 May 2015 12:39:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv70f-0005Sf-Ov for help-gnu-emacs@gnu.org; Wed, 20 May 2015 12:38:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv70b-0003I2-PL for help-gnu-emacs@gnu.org; Wed, 20 May 2015 12:38:21 -0400 Original-Received: from bonsai.taydin.org ([213.14.134.124]:34786 helo=mail.taydin.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv70b-0003Hk-Ht for help-gnu-emacs@gnu.org; Wed, 20 May 2015 12:38:17 -0400 Original-Received: from [127.0.0.1] (mail.taydin.org [127.0.0.1]) by mail.taydin.org (Postfix) with ESMTPSA id 0B1B6440032 for ; Wed, 20 May 2015 19:38:16 +0300 (EEST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <83bnhf70l6.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.14.134.124 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104500 Archived-At: On 05/20/2015 06:03 PM, Eli Zaretskii wrote: > So that probably means you didn't install the package correctly. A > correct installation should take care of 2 things that are necessary > for you to be able to call any function inside a package: . it should > add the package directory to load-path . it should load the package, > either by 'require' or by an explicit 'load' (in the latter case, if > it uses an absolute file name, it can avoid adding the directoy to > load-path) I understand that I need to add the package path into load-path and "require" it in .emacs.el when I want to use a package that is located on some directory in the filesystem. But I have used ELPA to install this package. Are these steps still necessary when using ELPA? Or maybe for some packages? Because I remember installing magit using ELPA and it just worked without adding anything to the load-path and without requiring the package in .emacs.el ... >> If I put that into.emacs.el anyway, it issues the following error: >> >> Warning (initialization): An error occurred while loading >> `/home/ta/.emacs.el': >> >> File error: Cannot open load file, no such file or directory, cscope > Which probably means your load-path doesn't include the package's > directory. >