From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Translate-mode Date: Mon, 06 Sep 2010 20:41:07 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283798527 3792 80.91.229.12 (6 Sep 2010 18:42:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 18:42:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 06 20:42:06 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 1Osgdk-0003hE-88 for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 20:42:00 +0200 Original-Received: from localhost ([127.0.0.1]:51034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Osgdj-0006n3-IT for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 14:41:59 -0400 Original-Received: from [140.186.70.92] (port=41462 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsgdB-0006mH-OW for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 14:41:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsgdA-0006Mw-QM for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 14:41:25 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53561) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsgdA-0006Mf-KM for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 14:41:24 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Osgd2-0003H4-Et for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 20:41:16 +0200 Original-Received: from xdsl-89-0-29-117.netcologne.de ([89.0.29.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Sep 2010 20:41:16 +0200 Original-Received: from andrea.crotti.0 by xdsl-89-0-29-117.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Sep 2010 20:41:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: xdsl-89-0-29-117.netcologne.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:VjB0tJdnGtAH9gzsOxgB97KLfL0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:74900 Archived-At: 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...