[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54976: 29.0.50; Eshell breaks when unknown entries in eshell-modules
From: |
Sean Whitton |
Subject: |
bug#54976: 29.0.50; Eshell breaks when unknown entries in eshell-modules-list |
Date: |
Sat, 16 Apr 2022 13:50:39 -0700 |
User-agent: |
Emacs/29.0.50 (x86_64-pc-linux-gnu) |
Hello,
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.
--
Sean Whitton
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#54976: 29.0.50; Eshell breaks when unknown entries in eshell-modules-list,
Sean Whitton <=