help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: require (was: Re: Hooks in minor modes)


From: Jean Louis
Subject: Re: require (was: Re: Hooks in minor modes)
Date: Fri, 30 Apr 2021 08:44:25 +0300
User-agent: Mutt/2.0.6 (2021-03-06)

* Emanuel Berg via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> [2021-04-30 08:04]:
> > require stuff
> 
> It seems it cannot see the file in its own directory,
> (push "." load-path) don't help it seems...?

If you just push "." to load-path that may cause every future current
directory to be the load-path, imagine that require would not work
depending of the current directory.

It is better to expand "."

(add-to-list 'load-path (expand-file-name "."))



-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]