From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T.V. Raman" Newsgroups: gmane.emacs.devel Subject: post-self-insert-hook and last-command: Date: Sun, 27 May 2012 07:38:04 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1338129494 23647 80.91.229.3 (27 May 2012 14:38:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 May 2012 14:38:14 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 27 16:38:13 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 1SYebk-0003cJ-FG for ged-emacs-devel@m.gmane.org; Sun, 27 May 2012 16:38:12 +0200 Original-Received: from localhost ([::1]:54577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYebk-0005FG-21 for ged-emacs-devel@m.gmane.org; Sun, 27 May 2012 10:38:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYebg-0005F5-Nd for emacs-devel@gnu.org; Sun, 27 May 2012 10:38:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYebe-0007Uw-NO for emacs-devel@gnu.org; Sun, 27 May 2012 10:38:08 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:46273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYebe-0007Un-GV for emacs-devel@gnu.org; Sun, 27 May 2012 10:38:06 -0400 Original-Received: by yenm7 with SMTP id m7so1220149yen.0 for ; Sun, 27 May 2012 07:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TiZuR5CYUWuIXhLqalA1uzGB44BHzCX1nlbMPJ1Acvk=; b=LhVLd8C4Q35pvtaILu+6P81VlVOPSvva6DFyckU1Wmo7BQZqNak2sTR6XsqmW8l6lh rBSi+56cQLpFxdcwN+33qJGPSv+Wx+krvQ+ZwGrrOtNCFZAllHgs28EFJ/xteGAKWEfy XEb/c3nlnKolQpKFYUxADQWVHQ8vLBqS+R7a1eD1yvletrx/GqZ3jJyFyaryZTNVjpJc ADWd12HvAP75E+yjzmDDUzsOaA7pIkhyg4eyhufd7jnAJlVZFaKz01WF0MC3UtZhE9T+ m+r2doLKx//tcckiM1ONBLluI2G9UUBR+oU96FSQn5SboiwW2amWKFAPASmNerqjxH2B qSxg== Original-Received: by 10.50.88.225 with SMTP id bj1mr2638330igb.42.1338129484465; Sun, 27 May 2012 07:38:04 -0700 (PDT) Original-Received: by 10.231.13.194 with HTTP; Sun, 27 May 2012 07:38:04 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 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:150658 Archived-At: Stehane, will try this-command -- not clear which calls cause the chatter, but with the new code installed, emacs chatters more than it used to as it loads my .emacs. Since this is a substantial change in how emacspeak has done things over 18 years, I suspect it'll take some testing. The electric commands are already advised to speak, and I'm leaving those advice fragments in place. -- Best Regards, --raman -- Best Regards, --raman On 5/27/12, Stefan Monnier wrote: >> 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 >