From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4709: 23.1; keyboard-translate not working with emacs daemon Date: Wed, 14 Oct 2009 23:34:15 -0400 Message-ID: References: <20091012.103742.231009806.furue@hawaii.edu> <20091014.110719.209373463.furue@hawaii.edu> Reply-To: Stefan Monnier , 4709@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255578459 16575 80.91.229.12 (15 Oct 2009 03:47:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 03:47:39 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 4709@emacsbugs.donarmstrong.com To: Ryo Furue Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 15 05:47:28 2009 Return-path: Envelope-to: geb-bug-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 1MyHJI-0008Oq-D4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Oct 2009 05:47:28 +0200 Original-Received: from localhost ([127.0.0.1]:38530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyHJH-00008y-TA for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Oct 2009 23:47:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyHJB-00005q-6T for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:47:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyHJ6-0008RT-Ge for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:47:20 -0400 Original-Received: from [199.232.76.173] (port=52188 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyHJ6-0008RI-0d for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:47:16 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55880) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MyHJ5-00059Z-GA for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:47:15 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9F3lBbt002861; Wed, 14 Oct 2009 20:47:11 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9F3e6Rc001522; Wed, 14 Oct 2009 20:40:06 -0700 Resent-Date: Wed, 14 Oct 2009 20:40:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 15 Oct 2009 03:40:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4709 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.1255577680553 (code B ref -1); Thu, 15 Oct 2009 03:40:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 15 Oct 2009 03:34:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9F3YcRL000547 for ; Wed, 14 Oct 2009 20:34:39 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyH6s-00027E-7F for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:34:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyH6n-00024T-Qi for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:34:37 -0400 Original-Received: from [199.232.76.173] (port=40367 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyH6n-00024Q-LA for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:34:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:48602 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyH6n-0003G1-Bn for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 23:34:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAL011kpMCqsb/2dsb2JhbACBUtd2hC4Eh3WCeA X-IronPort-AV: E=Sophos;i="4.44,563,1249272000"; d="scan'208";a="47597815" Original-Received: from 76-10-171-27.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.27]) by ironport2-out.pppoe.ca with ESMTP; 14 Oct 2009 23:34:15 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id BF8A7B4100; Wed, 14 Oct 2009 23:34:15 -0400 (EDT) In-Reply-To: <20091014.110719.209373463.furue@hawaii.edu> (Ryo Furue's message of "Wed, 14 Oct 2009 11:07:19 -1000 (HST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 14 Oct 2009 23:47:20 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31952 Archived-At: > | AFAIK, you cannot set it globally. > Then, could we make it a request for a new feature? Sure. > We could even say that the keyboard-translate functionality > is partially broken because it sometimes works and sometimes > doesn't (Please recall my example). To tell you the truth, it's the first time I hear of this feature being actually used. So that should give you the kind of priority this feature request will "enjoy". And of course it gets worse because of the discussion below. > | Still, I wonder: why would you want to set such a mapping > | everywhere? > I'm not sure if I understand your question. . . . If you want > a keyboard translation, you'd want it everywhere consistently, > wouldn't you? > In this particular case, I want C-h to delete the character > before the cursor anywhere and everywhere (when deleting > characters makes sense, that is. But do you really also want C-x C-h to invoke the command bound to C-x C-? > You don't want to delete characters on a webpage displayed by > a webbrowser, for example). That's natural for a person like me who > instinctively types C-h to delete. > I used to use > (global-set-key "\C-h" 'delete-backward-char) That seems closer to what you want, yes. But admittedly, C-h is hardwired at many places, so you'd have to "fix" them one by one as you bump into them. > So, I think keyboard-translate is the cleanest, > once-and-for-all solution, if it works globally. Have you tried key-translation-map (which is global)? I have never understand the existence of both key-translation-map and keyboard-translate-table. Stefan