From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Is it legal to set `help-char' to nil? Date: Wed, 10 Apr 2013 16:49:57 +0200 Message-ID: <877gkao2y2.fsf@web.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365605415 4979 80.91.229.3 (10 Apr 2013 14:50:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2013 14:50:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 10 16:50:19 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 1UPwLq-00010d-9J for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 16:50:18 +0200 Original-Received: from localhost ([::1]:32839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPwLp-0008Ij-TO for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 10:50:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPwLa-0008Ew-8o for help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 10:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPwLY-0001PZ-R4 for help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 10:50:02 -0400 Original-Received: from mout.web.de ([212.227.15.3]:54005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPwLY-0001PJ-G8 for help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 10:50:00 -0400 Original-Received: from drachen.dragon ([92.74.136.91]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0LyUkU-1Ucba73yfm-0164RM; Wed, 10 Apr 2013 16:49:58 +0200 Mail-Followup-To: help-gnu-emacs@gnu.org, help-gnu-emacs@gnu.org In-Reply-To: (YE Qianchuan's message of "Sat, 06 Apr 2013 18:27:30 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V02:K0:UOcr1PcavOaWXRR9xsFywxKVcS4W4CA+o/y+QwU2JHU 1Ki5VQsmnbrB5/vyt8TSOtWfDn8pCFkryOj9DfDtHN0zrj15SU sQzuHpIxfjj2uFkmyJ5W+YVGdpzO/yjkqvpbB+Bh90UIJaghRn q3spMb/b+DPR+MSEFT47GCViEJUy86gm4NtVFx4CVbQELT2jWH uU4tBLIJAKt1elpGxoFJcl0PoO+GSBn/EdsY+fFY7U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.3 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:90060 Archived-At: 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'): ,---------------------------------------------------------------------- | 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.