[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] bug#10125: RFE: require and load-path-shadowing
From: |
Stefan Monnier |
Subject: |
[O] bug#10125: RFE: require and load-path-shadowing |
Date: |
Fri, 11 Jan 2013 17:52:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
>>>> I guess we could fork Emacs early on and keep this second process
>>>> around as a "process from which to generate new clean slates".
>>> I've been thinking about something like this for a while… if it worked
>>> at least as well as starting a new Emacs instance on all platforms, I'd
>>> favor this approach.
>> IIUC "fork" is not really an option for w32.
> For the intended application spawn should work as well?
Could be: depends on the precise semantics of spawn, which I don't know.
>> Along the same lines, we could try to use unload-feature.
> I thought this was potentially dangerous, but reading the docstring
> again maybe not. Let me try that as well.
It's fundamentally tricky just in the same way as your proposed
"namespace cleanup": if you undefine a function that's still registered
on some hook, process filter, ... you may get subsequent errors, some of
which may render Emacs completely unusable.
So it's risky to call unload-feature on a random package, but it's not
too hard for a package to make sure it survives unload-feature.
Tho currently, there are some significant shortcomings (IIRC there are
cases where the package's autoloads aren't re-instated, for example).
Stefan
- [O] bug#10125: RFE: require and load-path-shadowing, Stefan Monnier, 2013/01/10
- [O] bug#10125: RFE: require and load-path-shadowing, Jambunathan K, 2013/01/10
- [O] bug#10125: RFE: require and load-path-shadowing, Achim Gratz, 2013/01/11
- [O] bug#10125: RFE: require and load-path-shadowing, Stefan Monnier, 2013/01/11
- Message not available
- [O] bug#10125: RFE: require and load-path-shadowing, Achim Gratz, 2013/01/11
- [O] bug#10125: RFE: require and load-path-shadowing,
Stefan Monnier <=
- [O] bug#10125: RFE: require and load-path-shadowing, Eli Zaretskii, 2013/01/12
- Message not available
- [O] bug#10125: RFE: require and load-path-shadowing, Achim Gratz, 2013/01/12
- [O] bug#10125: RFE: require and load-path-shadowing, Eli Zaretskii, 2013/01/12
- [O] bug#10125: RFE: require and load-path-shadowing, Stefan Monnier, 2013/01/12
- [O] bug#10125: RFE: require and load-path-shadowing, Eli Zaretskii, 2013/01/12
- Message not available
- Message not available
- [O] bug#10125: RFE: require and load-path-shadowing, Achim Gratz, 2013/01/12
- [O] bug#10125: RFE: require and load-path-shadowing, Eli Zaretskii, 2013/01/12
- Message not available
- Message not available
- [O] bug#10125: RFE: require and load-path-shadowing, Achim Gratz, 2013/01/13
- [O] bug#10125: RFE: require and load-path-shadowing, Glenn Morris, 2013/01/12
- Message not available
- Message not available
- [O] bug#10125: RFE: require and load-path-shadowing, Achim Gratz, 2013/01/13