From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Sending keystrokes to the OS Date: Fri, 27 Mar 2009 00:25:36 +0100 Message-ID: References: <867i2ckkui.fsf@timbral.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238109976 14093 80.91.229.12 (26 Mar 2009 23:26:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Mar 2009 23:26:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Evans Winner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 27 00:27:34 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lmyyy-0003NG-6d for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2009 00:27:32 +0100 Original-Received: from localhost ([127.0.0.1]:53571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmyxb-0001Me-4h for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Mar 2009 19:26:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmyxC-0001M4-Kf for help-gnu-emacs@gnu.org; Thu, 26 Mar 2009 19:25:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lmyx8-0001Jw-9X for help-gnu-emacs@gnu.org; Thu, 26 Mar 2009 19:25:42 -0400 Original-Received: from [199.232.76.173] (port=58254 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmyx7-0001JY-Sg for help-gnu-emacs@gnu.org; Thu, 26 Mar 2009 19:25:37 -0400 Original-Received: from mail-fx0-f166.google.com ([209.85.220.166]:36382) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lmyx7-0004qK-Fu for help-gnu-emacs@gnu.org; Thu, 26 Mar 2009 19:25:37 -0400 Original-Received: by fxm10 with SMTP id 10so778392fxm.42 for ; Thu, 26 Mar 2009 16:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=G4Na9b8GpYAja1j03L+9lNgeLTZXL0Te7cDYwtNgYQk=; b=Y3OW1o0fFYk610MbYKc1ghGF65mw1IzplOVf+PEzMHhPgUL06zXvBSukQkxaOPYr/a HyNP2Ve2EvEV7qLoQkce56bPSxz7Hv0yVrE6rqDxXUzk0sZyTzNkMtGqLc+mANwGxkS+ BH+D4f5/FCxgo9VwR3Iq874/tGoIN4Ppi34zA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=AfT72wp4v84/YZfIScKEZ/ecYlbn5gfkB5DPv5Ju6knRmweRHzspa1YT/8HSv3izlV 7f2GmHN4lIVc5oeL8HMNqMZUmUADPdvgTfAfhdkCvFNY1BEg6Rqnupv5RoTa03bgkWmN 12j/9Fj/xbzTYgtDVPMui2hdqK4SuL9rGisgg= Original-Received: by 10.223.108.15 with SMTP id d15mr1137008fap.62.1238109936597; Thu, 26 Mar 2009 16:25:36 -0700 (PDT) In-Reply-To: <867i2ckkui.fsf@timbral.net> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63309 Archived-At: On Thu, Mar 26, 2009 at 10:58 PM, Evans Winner wrote: > I don't suppose there's a way to send arbitrary keystrokes > to the OS from Emacs? -- like, as a way to use Emacs as a > kind of keyboard macro server for the window manager? =C2=A0If > not, I don't suppose anyone knows how to do something like > that with Clisp or sbcl? =C2=A0The point being that I would like > to find a way to write little macros I can activate from any > application using some kind of prefix key combination, > maybe, (and in some kind of lispy way, preferably). =C2=A0I think > with stumpwm I could do it, but alas, I am not using an OS > (in this context) that is compatible with stumpwm. =C2=A0Any > pointers would be useful. =C2=A0Thanks. There is nothing like that in Emacs. If you want to write something yourself then look for accessibility API:s.