GNU bug report logs -
#54976
29.0.50; Eshell breaks when unknown entries in eshell-modules-list
Previous Next
Reported by: Sean Whitton <spwhitton <at> spwhitton.name>
Date: Sat, 16 Apr 2022 20:51:01 UTC
Severity: normal
Found in version 29.0.50
Fixed in version 29.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #13 received at 54976 <at> debbugs.gnu.org (full text, mbox):
Hello,
On Sun 19 Jun 2022 at 07:57am -07, Stefan Kangas wrote:
> close 54976 29.1
> thanks
>
> Sean Whitton <spwhitton <at> spwhitton.name> writes:
>
>> Suppose you put this in your init.el:
>>
>> (add-to-list 'eshell-modules-list 'eshell-elecslash)
>>
>> because you want to use the new em-elecslash.el module I'm working on.
>>
>> Then if you try to M-x eshell on an older version of Emacs which lacks
>> em-elecslash, Eshell will fail to initialise at all.
>>
>> It is easy add a guard (when (locate-library ...)) or similar, but this
>> is not possible if you have added eshell-elecslash using the customise
>> interface. In that case, by enabling the module, youq just make your
>> init unusable with older Emacs.
>>
>> It would be better to print a warning, say, rather than error.
>
> I agree that it makes more sense to warn here instead of refusing to
> start. So I have now done that in Emacs 29 (commit d6b4803850).
Many thanks for this!
--
Sean Whitton
This bug report was last modified 2 years and 332 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.