[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 22:49:58 +0100 (CET) |
Jan 9, 2022, 16:50 by tomas@tuxteam.de:
> On Sun, Jan 09, 2022 at 05:37:49PM +0100, fatiparty--- via Users list for the
> GNU Emacs text editor wrote:
>
> [...]
>
>> I have difficulty about the utility of 'provide'. You have pointed out that
>> (provide 'daph)
>> simply announces that daph is a feature of the current emacs. Can it be any
>> name? The
>> manual states that "calling 'provide' adds 'feature' tothe front of
>> 'features' if it is not already
>> in that list". This suggests that provide should also use (provide
>> 'daph-ideograms).
>>
>
> That depends on how you want to call your feature. Note that once a
> feature is `provide'd, a `require' of that feature does nothing. Quoting
> from the docs:
>
> 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.
>
>> I guess that one could define the feature as 'daph' when using 'provide'.
>> And use the feature 'daph'
>> when calling 'require'. In this way, the 'daph' will be recognise the
>> 'daph' feature in the features variable,
>> but use the optional filename "daph-ideograms"
>>
>
> Yes, that'd be a way to do it (in theory you could have one file
> providing several features, for example).
>
>> Thus
>>
>> daph-ideograms.el
>> **********************
>> (provide 'daph)
>>
>> test.el
>> *******
>> (add-to-list
>> 'load-path
>> "~/Admin/bin/gadi-1.0/typex/ziggurat-protowrit/daph-ideograms")
>> ;; Load the Daph Package if it has not already been loaded.
>> (require 'daph "daph-ideograms")
>>
>> --------
>>
>> My load path is quite long, and wonder how this can be shortened by storing
>> in some other variable
>> before passing to 'add-to-list'.
>>
>
> I don't quite understand your last sentence. What is it you are trying
> to shorten -- and how?
>
I want to keep within 72 characters on the line. I could store the first part
'~/Admin/bin/gadi-1.0/typex/ziggurat-protowrit/' in some variable, and find
some
way to add the complete path for 'add-to-list'.
> Cheers
> --
> t
>
- Re: File for minor mode not found, (continued)
- File for minor mode not found, fatiparty, 2022/01/09
- Message not available
- File for minor mode not found, fatiparty, 2022/01/09
- 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 <=
- 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
- Re: File for minor mode not found, tomas, 2022/01/11
- Message not available
- File for minor mode not found, fatiparty, 2022/01/11
- Re: File for minor mode not found, Michael Heerdegen, 2022/01/11
- Re: File for minor mode not found, Tomas, 2022/01/09