[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: post-self-insert-hook and last-command:

From: Stefan Monnier
Subject: Re: post-self-insert-hook and last-command:
Date: Sun, 27 May 2012 09:03:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> emacspeak-self-insert-command.  It all works (almost) -- except
> that the speech feedback is called in situations other than  when
> the user executes self-insert-command. The usual emacspeak
> technique of advising has never worked for this case since
> self-insert-command is a builtin.

I wonder which calls to self-insert-command are problematic.

> (eq last-command self-insert-command)

Why last-command rather than this-command?
But note that if you test this-command, you'll miss most of the
electric-foo commands (which don't use post-self-insert-hook but
instead define new commands that then call self-insert-command).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]