From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "T.V. Raman" <tv.raman.tv@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: post-self-insert-hook and last-command:
Date: Sun, 27 May 2012 09:03:36 -0400 [thread overview]
Message-ID: <jwvmx4t7p7e.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CADkJX2i1EGdpgVLeU-WNy82Ayu_1Kp0j447R9PFk0WPgJe3BiQ@mail.gmail.com> (T. V. Raman's message of "Sat, 26 May 2012 16:20:40 -0700")
> 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).
Stefan
next prev parent reply other threads:[~2012-05-27 13:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-26 23:20 post-self-insert-hook and last-command: T.V. Raman
2012-05-27 13:03 ` Stefan Monnier [this message]
2012-05-27 14:38 ` T.V. Raman
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=jwvmx4t7p7e.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=tv.raman.tv@gmail.com \
/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.