From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: beginner's question: add-hook& AUCTeX Date: Fri, 26 Aug 2011 16:53:02 +0200 Message-ID: <87fwko6x81.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314370413 28083 80.91.229.12 (26 Aug 2011 14:53:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2011 14:53:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 26 16:53:29 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 1Qwxmi-000874-PW for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2011 16:53:28 +0200 Original-Received: from localhost ([::1]:36466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwxmi-0000B3-0H for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2011 10:53:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwxme-0000Am-ES for help-gnu-emacs@gnu.org; Fri, 26 Aug 2011 10:53:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwxmd-0001Ea-6V for help-gnu-emacs@gnu.org; Fri, 26 Aug 2011 10:53:24 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwxmc-0001ES-Ui for help-gnu-emacs@gnu.org; Fri, 26 Aug 2011 10:53:23 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QwxmZ-00083t-9g for help-gnu-emacs@gnu.org; Fri, 26 Aug 2011 16:53:19 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 16:53:19 +0200 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 16:53:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ci6MgOXxM/o6TDwDBLAaQzlLTHo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:82074 Archived-At: Shiyuan writes: Hi! > It turns out that the problem is caused by another line of my .emacs file, > which I want to append the load-path, > (setq load-path (append (list nil "~/lisp") load-path)) > if the "nil" is deleted, it works fine. But I don't understand why adding > the current directory to load-path messes up the loading of AUCTeX. I don't > have any lisp package s in my current directory. 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... Bye, Tassilo