From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6222: Shouldn't f1 in isearch-mode be help? Date: Thu, 20 May 2010 02:31:41 +0200 Message-ID: References: <87sk5n77bf.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274317063 7791 80.91.229.12 (20 May 2010 00:57:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 00:57:43 +0000 (UTC) Cc: 6222@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 20 02:57:41 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OEu4y-0001L4-SL for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 May 2010 02:57:41 +0200 Original-Received: from localhost ([127.0.0.1]:50471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEu4y-0000nR-4i for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 May 2010 20:57:40 -0400 Original-Received: from [140.186.70.92] (port=60190 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEu4N-0000UV-DF for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 20:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEu4L-00048U-Kh for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 20:57:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53943) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEu4L-00048Q-H5 for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 20:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OEth7-0007jI-K9; Wed, 19 May 2010 20:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 May 2010 00:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6222 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6222-submit@debbugs.gnu.org id=B6222.127431552729702 (code B ref 6222); Thu, 20 May 2010 00:33:01 +0000 Original-Received: (at 6222) by debbugs.gnu.org; 20 May 2010 00:32:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEtgE-0007j1-TY for submit@debbugs.gnu.org; Wed, 19 May 2010 20:32:07 -0400 Original-Received: from mail-gx0-f223.google.com ([209.85.217.223]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEtgD-0007if-DF for 6222@debbugs.gnu.org; Wed, 19 May 2010 20:32:05 -0400 Original-Received: by gxk23 with SMTP id 23so4750226gxk.15 for <6222@debbugs.gnu.org>; Wed, 19 May 2010 17:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=sWZch2orTw0OwWPJW/t0KnSkVjMqlGx/khR4ZmvTOzs=; b=QUctq9AC7xqavcF05z3L6IJ6IU8N10d8BvPrGNT3SNxEeMTmgYIVq7hDJBklaIGxgQ mWSQGsscfGJm8grwsVUecm+jA7lDntJkv0I8XpMF6UVoQyppvIRdUri395gQUGwLupPe yY2QDICCmuFtUsIC6W31j9JF0i5cVsRSDfjU4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=q+ObS6A4jesKzh0NjT7ateIhhe5xvy0ddzd3LxecKoU0GZUMfZMTCk355Pzhh3edFg 8jzpWLlpyV5D3977PmAkz1yvE48fO8hGS01EttB9nBBJ5w8GXUcwEIIglnWtJQ9Sit9e qla4U/57vBpRCC6iBFWPEtisW1C/7U3AThmfw= Original-Received: by 10.101.128.28 with SMTP id f28mr11443089ann.80.1274315521276; Wed, 19 May 2010 17:32:01 -0700 (PDT) Original-Received: by 10.100.225.13 with HTTP; Wed, 19 May 2010 17:31:41 -0700 (PDT) In-Reply-To: <87sk5n77bf.fsf@mail.jurta.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 19 May 2010 20:33:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37069 Archived-At: On Thu, May 20, 2010 at 2:20 AM, Juri Linkov wrote: >> C-h gives isearch help in isearch, but f1 does not. Should not both do >> the same for consistency? >> >> And should not `help-char' (or [help]) be used instead of C-h in the cod= e? >> >> The doc string for isearch does not mention that you now have this >> good help for isearch during isearch. Shouldn't it do that? >> >> BTW: My bad memory can't find a variable that is holding both C-h and >> f1. Wasn't there such a variable? > > There is no such variable. =C2=A0E.g. in help.el help bindings are repeat= ed > three times: > > =C2=A0 =C2=A0(define-key map (char-to-string help-char) 'help-for-help) > =C2=A0 =C2=A0(define-key map [help] 'help-for-help) > =C2=A0 =C2=A0(define-key map [f1] 'help-for-help) > > and > > =C2=A0 =C2=A0(define-key global-map (char-to-string help-char) 'help-comm= and) > =C2=A0 =C2=A0(define-key global-map [help] 'help-command) > =C2=A0 =C2=A0(define-key global-map [f1] 'help-command) Thanks, I see. But shouldn't isearch do the same then? What about having a function in help.el for defining a binding for all three possibilities? Something like (defun help-define-help-keys (map command) (define-key map (char-to-string help-char) command) (define-key map [help] command) (define-key map [f1] command))