From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.help Subject: Re: scripting input methods (was back (batch) translate chars to keyboard events) Date: Mon, 13 Feb 2012 13:11:41 +0530 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae934052bf7483b04b8d39b41 X-Trace: dough.gmane.org 1329118920 11619 80.91.229.3 (13 Feb 2012 07:42:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 07:42:00 +0000 (UTC) To: nicholas.dokos@hp.com, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 08:41:59 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RwqXu-0000W5-1c for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 08:41:58 +0100 Original-Received: from localhost ([::1]:58684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwqXt-0005Gc-7c for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 02:41:57 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwqXi-0005Fi-E9 for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 02:41:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwqXe-0005bJ-9o for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 02:41:46 -0500 Original-Received: from mail-tul01m020-f169.google.com ([209.85.214.169]:37373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwqXe-0005b3-32 for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 02:41:42 -0500 Original-Received: by obbta7 with SMTP id ta7so7617094obb.0 for ; Sun, 12 Feb 2012 23:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OCJi4Uz+uuU1YdUiqYpLc/HeoJgnXpifBgweRPJ4KH4=; b=OxDAMe4UoTTYxFYnGOaFlwuUE9ti5POa2R4Hiw0gnnHmbhCfQiPRjvw3BaoHGzSnOg iA2BZwMux05gx9V9/jgwM9GcB4pbbC9mCtBFwbRd6zAUn01WqREMqX0JId/YSuMlOIyw hCq+xT3JMCC3Zky/W0AyejfRJo8BjwDoSTQj4= Original-Received: by 10.50.217.129 with SMTP id oy1mr28610257igc.4.1329118901127; Sun, 12 Feb 2012 23:41:41 -0800 (PST) Original-Received: by 10.231.200.2 with HTTP; Sun, 12 Feb 2012 23:41:41 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83725 Archived-At: --14dae934052bf7483b04b8d39b41 Content-Type: text/plain; charset=ISO-8859-1 Some progress: 1. Replacing the kmacro-exec-ring-item with the lower level execute-kbd-macro works (defun om () "Keyboard macro." (interactive) (execute-kbd-macro [79 77 32 98 104 85 114 98 104 117 118 97 72 32 115 117 118 97 72 116 97 116 115 97 118 105 116 117 114 118 97 114 101 110 121 97 109 98 104 97 114 103 111 32 100 101 118 97 115 121 97 32 100 104 73 109 97 104 105 100 104 105 121 111 32 121 111 110 97 72 32 112 114 97 99 104 111 100 97 121 65 116 10])) 2. The misbehavior on the last 10 was because it was in Lisp Interaction mode So now... If I can produce that vector from elisp rather than python I guess its easy after that... Thanks again Nick! --14dae934052bf7483b04b8d39b41 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Some progress:

1. Replacing the kmacro-exec-ring-item with the lower= level execute-kbd-macro works


(defun om ()
=A0 "Keyboa= rd macro."
=A0 (interactive)
=A0 (execute-kbd-macro [79=A0 77= =A0 32=A0 98=A0 104=A0 85=A0 114=A0 98=A0 104=A0 117=A0 118=A0 97=A0 72=A0 = 32=A0 115=A0 117=A0 118=A0 97=A0 72=A0 116=A0 97=A0 116=A0 115=A0 97=A0 118= =A0 105=A0 116=A0 117=A0 114=A0 118=A0 97=A0 114=A0 101=A0 110=A0 121=A0 97= =A0 109=A0 98=A0 104=A0 97=A0 114=A0 103=A0 111=A0 32=A0 100=A0 101=A0 118= =A0 97=A0 115=A0 121=A0 97=A0 32=A0 100=A0 104=A0 73=A0 109=A0 97=A0 104=A0= 105=A0=A0=A0 100=A0 104=A0 105=A0 121=A0 111=A0 32=A0 121=A0 111=A0 110=A0= 97=A0 72=A0 32=A0 112=A0 114=A0 97=A0 99=A0 104=A0 111=A0 100=A0 97=A0 121= =A0 65=A0 116 10]))

2. The misbehavior on the last 10 was because it was in Lisp Interactio= n mode <grin>

So now...
If I can produce that vector from e= lisp rather than python I guess its easy after that...

Thanks again = Nick!
--14dae934052bf7483b04b8d39b41--