From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Alekseyev Newsgroups: gmane.emacs.help Subject: Achieving consistent key translations in terminal and GTK Date: Thu, 19 Jan 2012 17:02:51 -0600 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1327014190 30550 80.91.229.12 (19 Jan 2012 23:03:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2012 23:03:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 20 00:03:05 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ro10b-00078Y-52 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jan 2012 00:03:05 +0100 Original-Received: from localhost ([::1]:59583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro10V-0001Yy-0R for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jan 2012 18:02:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro10Q-0001Yt-Id for help-gnu-emacs@gnu.org; Thu, 19 Jan 2012 18:02:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ro10P-0006Oc-Ft for help-gnu-emacs@gnu.org; Thu, 19 Jan 2012 18:02:54 -0500 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:57389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro10P-0006OY-8Q for help-gnu-emacs@gnu.org; Thu, 19 Jan 2012 18:02:53 -0500 Original-Received: by pbdu6 with SMTP id u6so413777pbd.0 for ; Thu, 19 Jan 2012 15:02:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=NKRM+/4eOmn9oY2clEvY5mfVEwKUpg8UYwYyp9qv0Jc=; b=D0GYB36u5cqzcEGomdhUyOCplNghhz92ceb+CVIeATnoPoAPuxJuq4E+KRur7IbWDv wzn/uEf5dQrn4k++/uiuRi9SN8l8Z+KMuw6FCk4LgZOsZ50EG3BTQ1llwg6mB7GsoZ8t MTprXiQTuS6ae6aFpXNveUKZgFDVB80NbiBaM= Original-Received: by 10.68.75.229 with SMTP id f5mr55861647pbw.110.1327014171645; Thu, 19 Jan 2012 15:02:51 -0800 (PST) Original-Received: by 10.68.58.137 with HTTP; Thu, 19 Jan 2012 15:02:51 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 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:83526 Archived-At: In terminal, the bindings for keys {enter, tab, escape} are {RET, TAB, ESC}. Under GTK, they are {, , }. This leads to the following annoyances: - custom keybindings involving these have to be defined twice, e.g. once for "RET" and once for "" for things to work both in terminal and GTK - some modes apparently fail to do this, overload one form (e.g. "TAB") but not another, forcing me to go and fix it manually Is there a way to normalize the keybindings so that things work the same under terminal and GTK with no further effort? Furthermore, is it possible to achieve this while preserving (in the terminal) the distinction between e.g. C-[ and physical escape key, or C-i and physical tab key (under GTK, these send "ESC" vs and "TAB" vs respectively). --Leo