all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruno BARBIER <brubar.cs@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 22272@debbugs.gnu.org
Subject: bug#22272: 24.5; nonfunctional Emacs with a bad global mode (post-command-hook).
Date: Thu, 31 Dec 2015 07:40:19 +0100	[thread overview]
Message-ID: <20151231073819brubar.cs@gmail.com> (raw)
In-Reply-To: <87lh8b65qo.fsf@web.de>

On Wed, Dec 30, 2015 at 09:28:31PM +0100, Michael Heerdegen wrote:
> 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.

Ok. I see. Not that simple indeed and I was wrong: the error is
silenced and the function removed (but `change-major-mode-hook' pushes
it back into `post-command-hook' as instructed by
`define-globalized-minor-mode').

The simplest solution is probably to use a spare Emacs when
developping a new global mode and to catch errors in it; that makes
sense.


I guess this non bug should be closed. Sorry for the noise.

Thanks Eli and Michael for your prompt reply and your time.

Bruno.
 
> 
> Michael.
> 






  reply	other threads:[~2015-12-31  6:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30  7:28 bug#22272: 24.5; nonfunctional Emacs with a bad global mode (post-command-hook) brubar.cs
2015-12-30 18:04 ` Eli Zaretskii
2015-12-30 19:02   ` Bruno BARBIER
2015-12-30 20:28     ` Michael Heerdegen
2015-12-31  6:40       ` Bruno BARBIER [this message]
2015-12-31 20:31         ` Michael Heerdegen
2015-12-31 20:33 ` bug#22272: Close 22272 Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151231073819brubar.cs@gmail.com \
    --to=brubar.cs@gmail.com \
    --cc=22272@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.