[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
File for minor mode not found
From: |
fatiparty |
Subject: |
File for minor mode not found |
Date: |
Sun, 9 Jan 2022 16:46:51 +0100 (CET) |
Jan 9, 2022, 15:12 by stephen.berman@gmx.net:
> On Sun, 9 Jan 2022 15:43:42 +0100 (CET) fatiparty--- via Users list for the
> GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
>> Jan 9, 2022, 06:47 by tomas@tuxteam.de:
>>
>>> On Sun, Jan 09, 2022 at 06:14:33AM +0100, fatiparty--- via Users list for
>>> the GNU Emacs text editor wrote:
>>>
>>>>
>>>> Have made a minor mode called daph stored in file path
>>>>
>>>> ~/Admir/typ/zig/daph-ideograms"
>>>>
>>>
>>> Under which name is it stored there?
>>>
>>>> This is the call for daph-minor-mode
>>>>
>>>> (define-minor-mode daph-minor-mode
>>>>
>>>> At the end or the file I use (provide 'daph)
>>>>
>>>> In another file I call the minor mode
>>>>
>>>> (defun fad-daph-ideograms ()
>>>> "Tex command highlighting."
>>>>
>>>> (add-to-list
>>>> 'load-path "~/Admir/typ/zig/daph-ideograms")
>>>>
>>>> (require 'daph)
>>>>
>>>
>>> This is looking for a file "daph.el" (after looking for a "daph.elc")
>>> somewhere in `load-path'. Does that exist?
>>>
>>> Sorry for asking something which might be obvious, but your question
>>> doesn't make it completely clear.
>>>
>>
>> It does not exist. The file is named daph-ideograms.el but I am using
>> (provide 'daph) at the end of the file. And using (require 'daph) after
>> setting the load-path in another file.
>>
>
> That should be (require 'daph "daph-ideograms"), see `C-h f require':.
>
> require is a built-in function in ‘C source code’.
>
> (require FEATURE &optional FILENAME NOERROR)
>
> If feature FEATURE is not loaded, load it from FILENAME.
> If FEATURE is not a member of the list ‘features’, then the feature is
> not loaded; so load the file FILENAME.
>
> If FILENAME is omitted, the printname of FEATURE is used as the file
> name, and ‘load’ will try to load this name appended with the suffix
> ‘.elc’, ‘.el’, or the system-dependent suffix for dynamic module
> files, in that order.
>
> Steve Berman
>
Thanks Steve. One thing that has been difficult to see, is the relationship
between
(provide 'daph) and (require 'daph). Following your suggestion, I need to have
(require 'daph "daph-ideograms"). Are there any implications for the (provide
'daph) part?
- File for minor mode not found, fatiparty, 2022/01/09
- Re: File for minor mode not found, tomas, 2022/01/09
- File for minor mode not found, fatiparty, 2022/01/09
- Message not available
- File for minor mode not found,
fatiparty <=
- Re: File for minor mode not found, Stephen Berman, 2022/01/09
- Message not available
- File for minor mode not found, fatiparty, 2022/01/09
- Re: File for minor mode not found, tomas, 2022/01/09
- File for minor mode not found, fatiparty, 2022/01/09
- Re: File for minor mode not found, Tomas, 2022/01/09
- Message not available
- File for minor mode not found, fatiparty, 2022/01/10
- Re: File for minor mode not found, Tomas, 2022/01/10
- Message not available
- File for minor mode not found, fatiparty, 2022/01/10
- Re: File for minor mode not found, Tomas, 2022/01/11
- Re: File for minor mode not found, Michael Heerdegen, 2022/01/11