[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: require (was: Re: Hooks in minor modes)
From: |
Emanuel Berg |
Subject: |
Re: require (was: Re: Hooks in minor modes) |
Date: |
Fri, 30 Apr 2021 23:53:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Jean Louis wrote:
>> 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
"May cause", isn't that the intention and what's wrong
with that?
I have . first in the shell PATH as well to execute scripts
there quickly, but also to give precedence if some binary
somewhere deep in the system has the same name.
> , imagine that require would not work depending of the
> current directory.
What do you mean, when that file is byte-compiled, isn't the
current directory that of that file, i.e. just where it should
look first to require stuff? Or it doesn't work like that, you
mean? Or what do you mean? I don't understand what you mean.
> It is better to expand "."
>
> (add-to-list 'load-path (expand-file-name "."))
OK, it is better to expand ".", whatever that means, because
of ______ (please insert reason)
?
--
underground experts united
https://dataswamp.org/~incal
- Hooks in minor modes, steve-humphreys, 2021/04/29
- Re: Hooks in minor modes, Emanuel Berg, 2021/04/29
- Re: Hooks in minor modes, Stefan Monnier, 2021/04/29
- Re: Hooks in minor modes, steve-humphreys, 2021/04/30
- Re: Hooks in minor modes, Emanuel Berg, 2021/04/30
- require (was: Re: Hooks in minor modes), Emanuel Berg, 2021/04/30
- Re: require (was: Re: Hooks in minor modes), Emanuel Berg, 2021/04/30
- Re: require (was: Re: Hooks in minor modes), Jean Louis, 2021/04/30
- Re: require (was: Re: Hooks in minor modes),
Emanuel Berg <=
- Re: require (was: Re: Hooks in minor modes), Jean Louis, 2021/04/30
- Re: require (was: Re: Hooks in minor modes), Emanuel Berg, 2021/04/30
- FW: [External] : Re: require (was: Re: Hooks in minor modes), Drew Adams, 2021/04/30
- Re: FW: [External] : Re: require (was: Re: Hooks in minor modes), Emanuel Berg, 2021/04/30
- FW: FW: [External] : Re: require (was: Re: Hooks in minor modes), Drew Adams, 2021/04/30
- Re: FW: FW: [External] : Re: require (was: Re: Hooks in minor modes), Emanuel Berg, 2021/04/30
- Re: Hooks in minor modes, Stefan Monnier, 2021/04/30
- Re: Hooks in minor modes, Emanuel Berg, 2021/04/30