From: "T.V. Raman" <tv.raman.tv@gmail.com>
To: emacs-devel@gnu.org
Subject: post-self-insert-hook and last-command:
Date: Sat, 26 May 2012 16:20:40 -0700 [thread overview]
Message-ID: <CADkJX2i1EGdpgVLeU-WNy82Ayu_1Kp0j447R9PFk0WPgJe3BiQ@mail.gmail.com> (raw)
I'm trying to use post-self-insert-hook to speak characters as
they are typed in emacspeak --- rather than what I have done for
the last 18 years which was to execute emacspeak's own
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.
So to limit the calling of speech feedback to cases of
self-insert-command,
I added a test at the top of my speech feedback function of the
form
(eq last-command self-insert-command)
but this doesn't work -- since last-command gets apparently gets
set after post-self-insert-hook gets run --- at least that is my
guess based on what I observe:
With post-self-insert-hook set to call speech feedback if
(eq last-command self-insert-command) I dont hear spoken
feedback for the first invocation of self-insert-command.
--
--
next reply other threads:[~2012-05-26 23:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-26 23:20 T.V. Raman [this message]
2012-05-27 13:03 ` post-self-insert-hook and last-command: Stefan Monnier
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=CADkJX2i1EGdpgVLeU-WNy82Ayu_1Kp0j447R9PFk0WPgJe3BiQ@mail.gmail.com \
--to=tv.raman.tv@gmail.com \
--cc=emacs-devel@gnu.org \
/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.