From: YE Qianchuan <stool.ye@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>, help-gnu-emacs@gnu.org
Subject: Re: Is it legal to set `help-char' to nil?
Date: Thu, 11 Apr 2013 17:21:34 +0800 [thread overview]
Message-ID: <5166809E.6060305@gmail.com> (raw)
In-Reply-To: <8738uyo2r3.fsf@web.de>
On 04/10/2013 10:49 PM, Michael Heerdegen wrote:
> 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'):
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.
next prev parent reply other threads:[~2013-04-11 9:21 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 ` Is it legal to set `help-char' to nil? Michael Heerdegen
[not found] ` <8738uyo2r3.fsf@web.de>
2013-04-11 9:21 ` YE Qianchuan [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5166809E.6060305@gmail.com \
--to=stool.ye@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).