From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: Is it legal to set `help-char' to nil?
Date: Wed, 10 Apr 2013 16:49:57 +0200 [thread overview]
Message-ID: <877gkao2y2.fsf@web.de> (raw)
In-Reply-To: <mailman.23660.1365244070.855.help-gnu-emacs@gnu.org> (YE Qianchuan's message of "Sat, 06 Apr 2013 18:27:30 +0800")
YE Qianchuan <stool.ye@gmail.com> 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.
next parent reply other threads:[~2013-04-10 14:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.23660.1365244070.855.help-gnu-emacs@gnu.org>
2013-04-10 14:49 ` Michael Heerdegen [this message]
[not found] ` <8738uyo2r3.fsf@web.de>
2013-04-11 9:21 ` Is it legal to set `help-char' to nil? YE Qianchuan
2013-04-11 10:59 ` Michael Heerdegen
2013-04-12 10:14 ` YE Qianchuan
2013-04-12 16:54 ` Stefan Monnier
2013-04-13 15:29 ` YE Qianchuan
2013-04-06 10:27 YE Qianchuan
2013-04-06 11:04 ` Peter Dyballa
2013-04-06 14:13 ` YE Qianchuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gkao2y2.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.