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: Thu, 11 Apr 2013 12:59:24 +0200 Message-ID: <87vc7tcoz7.fsf@web.de> References: <8738uyo2r3.fsf@web.de> <5166809E.6060305@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365677989 7039 80.91.229.3 (11 Apr 2013 10:59:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 10:59:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: YE Qianchuan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 12:59:53 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 1UQFEN-0000pS-Es for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 12:59:51 +0200 Original-Received: from localhost ([::1]:52757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQFEN-0007Bw-0a for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 06:59:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQFE1-00076M-Q3 for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 06:59:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQFE0-000436-EO for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 06:59:29 -0400 Original-Received: from mout.web.de ([212.227.15.3]:62721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQFDz-00042v-U7 for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 06:59:28 -0400 Original-Received: from drachen.dragon ([92.74.136.91]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0LsyNK-1UafLD1l98-012ep3; Thu, 11 Apr 2013 12:59:25 +0200 Mail-Followup-To: YE Qianchuan , help-gnu-emacs@gnu.org In-Reply-To: <5166809E.6060305@gmail.com> (YE Qianchuan's message of "Thu, 11 Apr 2013 17:21:34 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V02:K0:r2m2bbIID3MIAa1Gi87qkz+ghQUJqsBQluVOxp40YpE rwlaDSFNEBEE4geh3jyFRsVTMmTM6vZ6Jt0vzp1EzpDzCjh1ln ZRmldi7ZAB0RiX4O2GJZt+hOr5ca8hMfT61vo02MYOyT4oOz7X uito+2YTYGEZeKegZFmozkFGrU6fm/E5g+eEKRotF78Nc+Vtup xoQ0H5slokj4UIWPCcZlDZHYHU5xHG8hRephEnB/zs= 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:90084 Archived-At: YE Qianchuan 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.