From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#10945: Can't search through help menu. Date: Fri, 22 Oct 2021 20:49:04 -0700 Message-ID: References: <20120305100726.GB2824@acm.acm> <87v9s3w7ym.fsf@marxist.se> <87o8xfo66x.fsf@mail.linkov.net> <20191114182445.GA4297@ACM> <87o8x8vq7r.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35642"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Alan Mackenzie , 10945-done@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 05:50:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1me839-000968-3W for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 05:50:27 +0200 Original-Received: from localhost ([::1]:60122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1me837-0003S0-6T for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 23:50:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me82l-0003Px-Az for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 23:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1me82l-0000m2-29 for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 23:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1me82k-0004xK-PZ for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 23:50:02 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 03:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 10945 X-GNU-PR-Package: emacs Mail-Followup-To: 10945@debbugs.gnu.org, stefan@marxist.se, acm@muc.de Original-Received: via spool by 10945-done@debbugs.gnu.org id=D10945.163496095718991 (code D ref 10945); Sat, 23 Oct 2021 03:50:02 +0000 Original-Received: (at 10945-done) by debbugs.gnu.org; 23 Oct 2021 03:49:17 +0000 Original-Received: from localhost ([127.0.0.1]:34119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me820-0004wF-LU for submit@debbugs.gnu.org; Fri, 22 Oct 2021 23:49:16 -0400 Original-Received: from mail-pj1-f45.google.com ([209.85.216.45]:39548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me81v-0004vy-7v for 10945-done@debbugs.gnu.org; Fri, 22 Oct 2021 23:49:14 -0400 Original-Received: by mail-pj1-f45.google.com with SMTP id u6-20020a17090a3fc600b001a00250584aso7129654pjm.4 for <10945-done@debbugs.gnu.org>; Fri, 22 Oct 2021 20:49:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=LIMqCTUDGdKo2N/J2EdReTHfoCr7S0Agz9y8AV4BMJU=; b=v0yK0yqRI/jH0LL4IU+91mcEOqKmeAZ+FBBI6w781S5X4/LjtFOrbNyW/WJPXHlEYY U/pleMP3pFSSNebRqfogZ1/Og+6ckFCkdXmLadAfWhLbXh+LKb8ybOBOGlNdbp24R3ef eEiZ6JePEK5vVKH3753vHcrcvPBiP6HwZsdYuiW0IVSFXt3HjJbIXLJsja1eJPPUJq6A R5J02+sMD5jvPe2SRG8SEIPLVJVcztA3F3fQtel3WVmS1E3rEYck20S6a3huvoDBx4aP CecaYjs6/f1v/zeYAMiFdwSWWPJCOln5Ok6q1cChDXHZ8dE7pUXazaZupCkhLVVg8uJH gWNw== X-Gm-Message-State: AOAM5304EiEHiHYA+kA6/91xYUi30o/paAlmm0rAXnME94zBgcu3xSxZ dw1vzknsJ4t87LpSHjBjpTMLr5PdpoAETuTWajw= X-Google-Smtp-Source: ABdhPJzTefUv8CqxByao8DuQWOdlEqIGoBvD03rmiDu5TSn4kLpLRvP6lROD39v99G1ee8dlade4Qgdl31sCP8Td5wI= X-Received: by 2002:a17:90b:3b86:: with SMTP id pc6mr1863613pjb.143.1634960945094; Fri, 22 Oct 2021 20:49:05 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Oct 2021 20:49:04 -0700 In-Reply-To: <87o8x8vq7r.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 18 Nov 2019 23:18:00 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217938 Archived-At: Juri Linkov writes: >>> >> emacs -Q >>> >> C-h ? ; brings up the help menu >> >>> >> I now want to search through this menu for "ChangeLog": >> >>> >> C-x ; intending C-x o >> >>> >> The menu disappears. This isn't friendly. >> >>> > We can now search that window using `C-h ? C-s', and it switches to >>> > the *Metahelp* window. This functionality was added in this comit: >> >>> > 956c39d11d 2018-04-02 Make help-for-help window searchable (Bug#19655) >> >>> > `C-h C-x o' still doesn't work, though. >> >>> > Is that good enough here? >> >>> Maybe help-for-help should use the minibuffer for reading commands >>> instead of using explicit read-key-sequence? This would allow >>> switching to the *Metahelp* window with 'C-x o'. >> >> This sounds like an excellent idea. > > I tried, but the major problem is how to create a wrapper around > commands in 'help-map' to exit the minibuffer before running them. > For example, evaluating: > > (read-from-minibuffer "C-h (Type ? for further options)- " nil help-map) > > then typing one of the help character, doesn't exit the minibuffer. > Some additional layer of indirection could exit the minibuffer > before running the command, but currently I have no idea how to do this. > > PS: Also isearch-help-for-help can't use the minibuffer to read help keys > while isearch-mode is enabled, but this is a minor obstacle. Thanks for looking into that. The issue seems orthogonal to this bug report though, so I will close this for now. Feel free to open a new bug report if you think we should continue looking into that part. One observation is that you can now land in the " *Metahelp*" buffer by saying "C-h C-h C-s emacs RET", which lands point in it.