unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re:Re:Re:beginner's question: add-hook& AUCTeX
@ 2011-08-26 23:58 Shiyuan
  0 siblings, 0 replies; only message in thread
From: Shiyuan @ 2011-08-26 23:58 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]

Tassilo, thanks for reply.
Then the emacs online reference
http://www.gnu.org/software/emacs/elisp/html_node/Library-Search.html is
very misleading where nil is used in an example, but explained as "current
working directory". Using it in an example without any warning also makes me
think using nil is recommended.
Bests,
Shiyuan

>Message: 2
>Date: Fri, 26 Aug 2011 16:53:02 +0200
>From: Tassilo Horn <tassilo@member.fsf.org>
>To: help-gnu-emacs@gnu.org
>Subject: Re: beginner's question: add-hook& AUCTeX
>Message-ID: <87fwko6x81.fsf@thinkpad.tsdh.de>
>Content-Type: text/plain

>Shiyuan <gshy2014@gmail.com> 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

[-- Attachment #2: Type: text/html, Size: 1876 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-26 23:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-26 23:58 Re:Re:Re:beginner's question: add-hook& AUCTeX Shiyuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).