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 09:25:09 -0400 Message-ID: References: <20091012.103742.231009806.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 1255528066 24564 80.91.229.12 (14 Oct 2009 13:47:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 13:47:46 +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 Wed Oct 14 15:47:35 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 1My4CL-0002fQ-PK for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Oct 2009 15:47:26 +0200 Original-Received: from localhost ([127.0.0.1]:40543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My4CK-0003pE-Vi for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Oct 2009 09:47:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My4CE-0003oE-E8 for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 09:47:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My4CA-0003nV-Sg for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 09:47:18 -0400 Original-Received: from [199.232.76.173] (port=46687 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My4CA-0003nS-Q4 for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 09:47:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:32875) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1My4CA-0003c9-1M for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 09:47:14 -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 n9EDlAiE003664; Wed, 14 Oct 2009 06:47:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9EDZ39j001680; Wed, 14 Oct 2009 06:35:03 -0700 Resent-Date: Wed, 14 Oct 2009 06:35:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 14 Oct 2009 13:35:03 +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.1255526719676 (code B ref -1); Wed, 14 Oct 2009 13:35:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 14 Oct 2009 13:25:19 +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 n9EDPHhO000648 for ; Wed, 14 Oct 2009 06:25:18 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My3qv-0005pR-2S for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 09:25:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My3qp-0005my-W1 for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 09:25:16 -0400 Original-Received: from [199.232.76.173] (port=53741 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My3qp-0005mp-Q1 for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 09:25:11 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:18091 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1My3qp-0008Jb-IL for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2009 09:25:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAINu1UpMCqsb/2dsb2JhbACBUddbhC4EgVuGGoJ4 X-IronPort-AV: E=Sophos;i="4.44,557,1249272000"; d="scan'208";a="47537273" Original-Received: from 76-10-171-27.dsl.teksavvy.com (HELO pastel.home) ([76.10.171.27]) by ironport2-out.pppoe.ca with ESMTP; 14 Oct 2009 09:25:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E5C9D7F5B; Wed, 14 Oct 2009 09:25:09 -0400 (EDT) In-Reply-To: <20091012.103742.231009806.furue@hawaii.edu> (Ryo Furue's message of "Mon, 12 Oct 2009 10:37:42 -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-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 14 Oct 2009 09:47:18 -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:31920 Archived-At: > My ~/.emacs has "(keyboard-translate ?\C-h ?\C-?)". I start an emacs > daemon with > $ /usr/bin/env XMODIFIERS=@im=none /usr/bin/emacs23 --daemon > Then I start a client > $ /usr/bin/emacsclient.emacs23 -c > But, "C-h" still invokes the emacs help system. > Next, I evaluate "(keyboard-translate ?\C-h ?\C-?)" on the client. > Then "C-h" starts to work as delete. > Finally, I invoke another client with > "/usr/bin/emacsclient.emacs23 -c", on which "C-h" works as delete > from the beginning. > I'm not sure if this is a bug. I just wish there were a > "proper" mechanism to set a keyboard-translate-table globally. AFAIK, you cannot set it globally. You can arrange to set it in every terminal (by putting (keyboard-translate ?\C-h ?\C-?) on some hook whose name escapes me), tho. Still, I wonder: why would you want to set such a mapping everywhere? Stefan