From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YE Qianchuan Newsgroups: gmane.emacs.help Subject: Re: Is it legal to set `help-char' to nil? Date: Fri, 12 Apr 2013 18:14:12 +0800 Message-ID: <5167DE74.90409@gmail.com> References: <8738uyo2r3.fsf@web.de> <5166809E.6060305@gmail.com> <87vc7tcoz7.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365761705 2835 80.91.229.3 (12 Apr 2013 10:15:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 10:15:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 12 12:15:09 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 1UQb0e-0007FV-Rs for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Apr 2013 12:15:08 +0200 Original-Received: from localhost ([::1]:42149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQb0e-0001r9-C5 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Apr 2013 06:15:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQb0P-0001q0-ON for help-gnu-emacs@gnu.org; Fri, 12 Apr 2013 06:14:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQb0O-0004nx-Fv for help-gnu-emacs@gnu.org; Fri, 12 Apr 2013 06:14:53 -0400 Original-Received: from mail-pb0-f47.google.com ([209.85.160.47]:57304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQb0O-0004nm-9Y for help-gnu-emacs@gnu.org; Fri, 12 Apr 2013 06:14:52 -0400 Original-Received: by mail-pb0-f47.google.com with SMTP id rq13so1339610pbb.6 for ; Fri, 12 Apr 2013 03:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=MdzOr+GGlaw/UzMM6n83WPavqad1ApMJlXrKgGGLUSI=; b=eiRC5pRH1Sj7AT6j6lgnhDQrVYa7RQSZelizhHGUGoTOe+nneG2L7k7LA68k6ebYTf GDI34tpb+I6pbH07dTN/UQfDKA4lYztZdRL8zVw56gEeF4tnaBA0RKfd9JL5pdcp18QC CLvnlSZWiwMCHSlpUkUeFlZSI7L1VdXhKCOaHy7KyldghYZ4ZFe9oZeTjrA6Rc78iBx6 jtI/qfiwpNXsmyhXVrGF2XR2hzLqP3GIKt7B2Xy/M/CMBZ1H2tzoDP2WXXiexdh2zeQe 5sj7iCsW4I47Pi5TxJvxFjiXP/rlUHh1fBsM6MtzIQxUsjyKpwJPGf0yzFZFbvfqdQGk 9Vrg== X-Received: by 10.68.204.40 with SMTP id kv8mr13899245pbc.37.1365761691023; Fri, 12 Apr 2013 03:14:51 -0700 (PDT) Original-Received: from [0.0.0.0] ([2605:6400:2:fed5:22:178d:9007:c212]) by mx.google.com with ESMTPS id 7sm7966445pbl.39.2013.04.12.03.14.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Apr 2013 03:14:50 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130403 Thunderbird/17.0.5 In-Reply-To: <87vc7tcoz7.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.47 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:90116 Archived-At: On 04/11/2013 06:59 PM, Michael Heerdegen wrote: > 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) Thanks for the explanation. It makes sense now. > > 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. OK, so it answered my question. nil is not legal for `help-char'. > > 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. All the legal characters have been defined for other commands, or can't be used in terminal. It's fine with me to just leave C-h for help in those cases. Thank you. > > Regards, > > Michael.