From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YE Qianchuan Newsgroups: gmane.emacs.help Subject: Re: Is it legal to set `help-char' to nil? Date: Thu, 11 Apr 2013 17:21:34 +0800 Message-ID: <5166809E.6060305@gmail.com> References: <8738uyo2r3.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365672128 9228 80.91.229.3 (11 Apr 2013 09:22:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 09:22:08 +0000 (UTC) To: Michael Heerdegen , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 11:22:12 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQDhr-0008EE-S6 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 11:22:12 +0200 Original-Received: from localhost ([::1]:42419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQDhr-0006OR-EY for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 05:22:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQDhg-0006OE-3l for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 05:22:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQDhe-0005F3-QO for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 05:22:00 -0400 Original-Received: from mail-pa0-f46.google.com ([209.85.220.46]:58580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQDhe-0005Eo-K3 for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 05:21:58 -0400 Original-Received: by mail-pa0-f46.google.com with SMTP id lb1so812270pab.19 for ; Thu, 11 Apr 2013 02:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/L4vTw4peDcMgsfYz04WN2h4EZAcKISFXgoAl1h6eQA=; b=tRhviswUxrbnUQ3XE4CjBQLkh3DoKdM0KlMCcoghEpqnJUO24DofE+C4/A/2h1dkUw pfrijrxQez4gtVCuPzZrWwlbRYkcqJ2dER1DK9d/8VocP7cLOZw0VG8KmO+UvhatOSDv 1Z4Hi+ordbk7Ty9yCeMkd8pFOsrt38yJTYLT5+Dod4+Ig561QOHI0AO1SU2hvt31ijiJ Fmcah48GOQjCIY9xTsszks4MrbnTBMA+LuQO5mKt8WBxdDYv4z8kzn/TH+efCYg5fh4s N2SlI8ZMBfE9gvF+5DEVZLLEStMOuEZewyZDpxmZVEVKo8QK9TwUaS7xC5O487LHYF/F Phrw== X-Received: by 10.66.252.101 with SMTP id zr5mr8423423pac.130.1365672117526; Thu, 11 Apr 2013 02:21:57 -0700 (PDT) Original-Received: from [0.0.0.0] ([2605:6400:2:fed5:22:178d:9007:c212]) by mx.google.com with ESMTPS id wz9sm3525946pbc.5.2013.04.11.02.21.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Apr 2013 02:21:56 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130403 Thunderbird/17.0.5 In-Reply-To: <8738uyo2r3.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.46 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:90080 Archived-At: On 04/10/2013 10:49 PM, Michael Heerdegen wrote: > YE Qianchuan writes: > >> I prefer using C-h to delete backward, thus I mapped C-h to DEL by >> modifying key-translation-map. Then set `help-char' to nil to avoid >> invoking help for a list of commands start by prefix. (I can't find a >> good enough char to replace it) For example, press C-x C-h to invoke >> C-x DEL but not to print help message. >> >> If it's not legal, are there any workaround? > Dunno if it's legal. > >> If it's legal, then there are bugs in certain modules like term, >> because doing such thing breaks it. > In which way? > > In term, no matter if `help-char' is bound to 8 or not, I see that C-h > is bound to the command `term-send-raw' in char-mode. Or do you use > line-mode? In this case, note that C-h is still bound in the > global-map (which is something different than `help-char'): Well, I can't even enter term-mode. I can reproduce it in this way: 1. open emacs without initial files (emacs -Q) 2. eval (setq help-char nil) 3. type M-x term Then it throw an error: Wrong type argument: characterp, nil. If you don't have this problem, maybe it's a bug in trunk. > > ,---------------------------------------------------------------------- > | ELISP> (lookup-key global-map [?\C-h]) > | help-command > | > | ELISP> (symbol-function 'help-command) > | (keymap > | (111 . my-info-org) > | (11 . describe-bindings-for-key) > | (113 . help-quit) > | (118 . describe-variable) > | (119 . where-is) > | (116 . my-info-tramp) > | (115 . describe-syntax) > | (114 . info-emacs-manual) > | (80 . describe-package) > | (112 . finder-by-keyword) > | (110 . view-emacs-news) > | (109 . describe-mode) > | (108 . view-lossage) > | (107 . describe-key) > | (52 keymap > | (105 . info-other-window)) > | (105 . info) > | (104 . view-hello-file) > | (103 . my-info-gnus) > | (102 . describe-function) > | (101 . my-info-elisp) > | (100 . apropos-documentation) > | (99 . my-info-cl) > | (98 . describe-bindings) > | (97 . apropos) > | (83 . info-lookup-symbol) > | (76 . describe-language-environment) > | (75 . Info-goto-emacs-key-command-node) > | (73 . describe-input-method) > | (70 . Info-goto-emacs-command-node) > | (67 . describe-coding-system) > | (28 . describe-input-method) > | (23 . describe-no-warranty) > | (20 . view-emacs-todo) > | (16 . view-emacs-problems) > | (15 . describe-distribution) > | (14 . view-emacs-news) > | (13 . view-order-manuals) > | (6 . view-emacs-FAQ) > | (5 . view-external-packages) > | (4 . view-emacs-debugging) > | (3 . describe-copying) > | (1 . about-emacs) > | (63 . help-for-help) > | (46 . display-local-help) > | (f1 . help-for-help) > | (help . help-for-help) > | (8 . help-for-help)) > `---------------------------------------------------------------------- > > Of course, you can unbind it. > > > Regards, > > Michael.