From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: beginner's question:add-hook&AUCTeX Date: Fri, 26 Aug 2011 09:42:09 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151748e02ef7071304ab6b39a4 X-Trace: dough.gmane.org 1314376974 8866 80.91.229.12 (26 Aug 2011 16:42:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2011 16:42:54 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 26 18:42:50 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QwzUX-0000iY-Mb for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2011 18:42:49 +0200 Original-Received: from localhost ([::1]:36555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwzUW-0003Df-U3 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2011 12:42:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwzUS-0003D7-AG for help-gnu-emacs@gnu.org; Fri, 26 Aug 2011 12:42:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwzTu-0004Ux-CP for help-gnu-emacs@gnu.org; Fri, 26 Aug 2011 12:42:44 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:57060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwzTu-0004Us-6N for help-gnu-emacs@gnu.org; Fri, 26 Aug 2011 12:42:10 -0400 Original-Received: by fxg9 with SMTP id 9so3187148fxg.0 for ; Fri, 26 Aug 2011 09:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:cc:content-type; bh=t1fUBuV9hqhtK3wxZF0tYq0viuV8djf87iXd/K6dTj4=; b=mc4DxSPUaiYWS2lpaa48qyfQnJiyoswcTc5j60Xqh7p/5PyVjHf+vWYgFhDo1fBMYm LHXbCKPTgI/vdtF98vz3dnZO15RIHtQHS43CiH3+B9vu3jnd+5FCgn9SgZ4XSO5b5cLc 2CoN/xtuHAJ3gcmFa0zVInGVqezpwgNHNhbUk= Original-Received: by 10.223.63.139 with SMTP id b11mr1927959fai.87.1314376929183; Fri, 26 Aug 2011 09:42:09 -0700 (PDT) Original-Received: by 10.223.96.144 with HTTP; Fri, 26 Aug 2011 09:42:09 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 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:82075 Archived-At: --00151748e02ef7071304ab6b39a4 Content-Type: text/plain; charset=ISO-8859-1 On Friday, August 26, 2011, Tassilo Horn wrote: > nil in `load-path' means `default-directory' which is usually your HOME, > but might be redefined on a per-buffer basis, or maybe even bound > dynamically in some code loading lisp files. I'd really refrain from > using nil in `load-path'. Sounds like a can of worms to me... It's *always* defined on a per-buffer basis. Typically it's the directory of the file you're editing. -- -PJ --00151748e02ef7071304ab6b39a4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Friday, August 26, 2011, Tassilo Horn <tassilo@member.fsf.org> wrote:
> nil in `load-path= ' means `default-directory' which is usually your HOME,
> but= might be redefined on a per-buffer basis, or maybe even bound
> dynamically in some code loading lisp files. =A0I'd really refrain= from
> using nil in `load-path'. =A0Sounds like a can of worms t= o me...

It's *always* defined on a per-buffer basis. =A0Typicall= y it's the directory of the file you're editing.

--

-PJ
--00151748e02ef7071304ab6b39a4--