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: Translate-mode Date: Mon, 6 Sep 2010 20:46:57 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1283798882 5277 80.91.229.12 (6 Sep 2010 18:48:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 18:48:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 06 20:48:01 2010 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.69) (envelope-from ) id 1OsgjX-0006iD-3W for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 20:48:01 +0200 Original-Received: from localhost ([127.0.0.1]:48217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsgjV-0001yE-1r for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 14:47:57 -0400 Original-Received: from [140.186.70.92] (port=46657 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Osgj6-0001y4-9t for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 14:47:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Osgj5-0007Zj-2Z for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 14:47:32 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:64685) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Osgj5-0007Zd-0A for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 14:47:31 -0400 Original-Received: by qwf7 with SMTP id 7so5423877qwf.0 for ; Mon, 06 Sep 2010 11:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=YBJ5dIDcqADbBE2U2y0hieU3z+Ha3WgcJTaiWJ1C4ck=; b=l5GPMuR8Cx2I3z7d8+Z5Tx0Iz4d9maCVz+S+F8d9X3dpDry+Lk+htdh3cZygc6Wq8e BfQDBK837LEmFiUD4m/BsBs1xDG26wFU+9iuQO8WUGNdOhfDXY4AsaKrPK3X/bwg4Svc jTGdcm4jEhHyFpxawsRoCLalH7qHcEOQW7nEE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=FD3dOSXztFOYTFaPsrEyHaXctdlg5KVTEqtvEn9BhmGy8Y5Szr2eIXl0u/WSebJPCa sLvMoDnIxl42ulE6IRxgr9PUGvJWYAmIsgt2NTnMaZWQvp6HnNSkARZLky/4pL83zfOX 63DWzS7cjY0XOlxlLRaH0unWUwZtxzDq5oSfA= Original-Received: by 10.229.181.73 with SMTP id bx9mr3852519qcb.70.1283798849652; Mon, 06 Sep 2010 11:47:29 -0700 (PDT) Original-Received: by 10.229.216.74 with HTTP; Mon, 6 Sep 2010 11:46:57 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.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:74902 Archived-At: On Mon, Sep 6, 2010 at 8:41 PM, Andrea Crotti wrote: > I would really love to have something like the google translate page but > inside emacs. > > The idea is simple, two buffers, one I write and the other is > automatically updated with the translation from and to the languages I > want (using babel.el). > > So I think I should remap the command keys that input a space (or tab or > newline) to make them trigger the updating of the second buffer. > > How do I make such a keyboard mapping? Still a sparse key with a regular > expression? > Or other ways? > > And what's the best way to manage the other buffer, just > with-temp-buffer and keeping read-only and without focus? > > Thanks everyone, I hope that it will also be useful for someone else maybe... http://www.emacswiki.org/emacs/TextTranslator But I do not believe in doing the translation on each space char...