all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: YE Qianchuan <stool.ye@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Is it legal to set `help-char' to nil?
Date: Thu, 11 Apr 2013 12:59:24 +0200	[thread overview]
Message-ID: <87vc7tcoz7.fsf@web.de> (raw)
In-Reply-To: <5166809E.6060305@gmail.com> (YE Qianchuan's message of "Thu, 11 Apr 2013 17:21:34 +0800")

YE Qianchuan <stool.ye@gmail.com> writes:

> 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.

I can reproduce this.  The error happens when loading "ehelp", here, in
the definition of `electric-help-map':

(define-key map (char-to-string help-char) 'electric-help-help)

Similar examples are spread over diverse other elisp files.  So, we know
now that Emacs indeed assumes that `help-char' is a character (and not
nil), so nil is not allowed as a value.

I don't have a better solution than to bind `help-char' to a different
character.  You could also create a bug report - I think what you want
could be made possible, but I don't know if emacs-dev would do it.


Regards,

Michael.



  reply	other threads:[~2013-04-11 10:59 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
2013-04-11 10:59     ` Michael Heerdegen [this message]
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=87vc7tcoz7.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=stool.ye@gmail.com \
    /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.