From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: post-self-insert-hook and last-command: Date: Sun, 27 May 2012 09:03:36 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1338123828 19754 80.91.229.3 (27 May 2012 13:03:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 May 2012 13:03:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: "T.V. Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 27 15:03:47 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SYd8K-0008Qv-0U for ged-emacs-devel@m.gmane.org; Sun, 27 May 2012 15:03:44 +0200 Original-Received: from localhost ([::1]:40729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYd8J-0001yZ-OG for ged-emacs-devel@m.gmane.org; Sun, 27 May 2012 09:03:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYd8G-0001yP-4X for emacs-devel@gnu.org; Sun, 27 May 2012 09:03:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYd8E-0005xo-F2 for emacs-devel@gnu.org; Sun, 27 May 2012 09:03:39 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:7145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYd8E-0005xd-BJ for emacs-devel@gnu.org; Sun, 27 May 2012 09:03:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCpYd/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="182872174" Original-Received: from 76-10-150-29.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 May 2012 09:03:36 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A6F8F591A0; Sun, 27 May 2012 09:03:36 -0400 (EDT) In-Reply-To: (T. V. Raman's message of "Sat, 26 May 2012 16:20:40 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150657 Archived-At: > 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