[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22272: 24.5; nonfunctional Emacs with a bad global mode (post-comman
From: |
Michael Heerdegen |
Subject: |
bug#22272: 24.5; nonfunctional Emacs with a bad global mode (post-command-hook). |
Date: |
Wed, 30 Dec 2015 21:28:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Bruno BARBIER <brubar.cs@gmail.com> writes:
> 1. the error is not silenced,
>
> 2. and the function is not removed.
>
> Thus, the error is constantly raised rendering Emacs
> nonfunctional. That's why I had to ask the OS to kill my Emacs.
>
> So, I'm saying Emacs could be slightly improved by following what the
> documentation says.
>
> Am I wrong ?
Emacs behaves as documented, but the situation is more complicated as
you expect - See the code `define-globalized-minor-mode':
Turning on a globalized minor mode pushes a function to
change-major-mode-hook that adds a function to post-command-hook - and
that's the one that fails. So the cited behavior of Emacs removing the
erroneous function from post-command-hook doesn't solve the problem
permanently.
Michael.