From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#54961: 28.1; info-display-manual completions issues Date: Sat, 16 Apr 2022 11:21:31 -0400 Message-ID: <08B1B8C9-F276-4B4A-BC41-8719124A5C9A@gmail.com> References: <87wnfpccuu.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54961@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 16 17:22:20 2022 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 1nfkFg-0005KS-5B for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Apr 2022 17:22:20 +0200 Original-Received: from localhost ([::1]:39848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfkFf-00056I-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Apr 2022 11:22:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfkFO-000562-LF for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2022 11:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40212) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfkFO-0002Mf-Cd for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2022 11:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nfkFO-00072E-8d for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2022 11:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Apr 2022 15:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54961 X-GNU-PR-Package: emacs Original-Received: via spool by 54961-submit@debbugs.gnu.org id=B54961.165012250027012 (code B ref 54961); Sat, 16 Apr 2022 15:22:02 +0000 Original-Received: (at 54961) by debbugs.gnu.org; 16 Apr 2022 15:21:40 +0000 Original-Received: from localhost ([127.0.0.1]:34109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfkF2-00071b-7I for submit@debbugs.gnu.org; Sat, 16 Apr 2022 11:21:40 -0400 Original-Received: from mail-qk1-f181.google.com ([209.85.222.181]:41656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfkF0-00071E-6s for 54961@debbugs.gnu.org; Sat, 16 Apr 2022 11:21:38 -0400 Original-Received: by mail-qk1-f181.google.com with SMTP id s70so1735795qke.8 for <54961@debbugs.gnu.org>; Sat, 16 Apr 2022 08:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=4rmcKRpuh/c2drPi/XlbxKHBDHDkbmcV0x1abq/pghI=; b=n6jRLKhN6LVW4DhzK7swae4nqefvmMwhJjfHCB9rMGWV2tubW/U16TxBrBx7D2F2Sx VV9I1qnd/Jfrrf0hCf6hTmQspzzx7EiqJiSny2VcKNcWSqTS7s2405sZP7DLFCSPBys8 V2gb2E/ShFxedMf7WuZd8f3xPW0G0YLIsWHmJP28FckWVnQuvbbxil+S6ZtcrQaFjhZl 1mwXpEe0BIMim/MHZY9IMQ5eApfXa1t60p2s/59kbSh//IEU+65s74PYwuZ6BuyhplSU csJ5oox5fKe2HwWKFnOuHO0uoslbRR+FV6l/V0QAONPppGrGn20xqeCLFFT8DmbhFowR dTjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=4rmcKRpuh/c2drPi/XlbxKHBDHDkbmcV0x1abq/pghI=; b=rkvQ59ER8qpaTXR7LPuEOB3EZ1wuF1UkkBUAJ70N6GPD0Z7n5Kc3ZoHRqYz6mR4mRo ZHignz4UT7ec7BZ4SudF2ESFrTig2tl4uJfD4IFryZqtdl92irUmImLJDWM5bFGKNOS3 nCd9/AddEgxuI6ew2gu8D3v/LNc0o2fjDWOMk6OHEM3jRavL8eyjskc3LdEHwPxTNcdG rdktE6YNhO+HfKlYwLi0LDrxREVoljJ8XDTm8XBoZ0Mm86/9VLxifUSkfdjHLelcEO9j qjEl5T0gfNOZKx/cLQv3uVp+F/yZ70FDDz9xc+2+P7qyemvrvXs/MeOMbUrptYOC9bya r8Vw== X-Gm-Message-State: AOAM531hMrzlHD3VaMl8QNfhhtGMPBjsi6g1ESzGOGNto6YPHiwjie/e CTpye8/mirGjqyzj6NX59wIuDHl/BNg4GA== X-Google-Smtp-Source: ABdhPJwM3+5rFYGdTFavRt4DgNkW+XpykLXSbmQ6v+uhdy/NCq/UNBsuRFtV9z9DJkG3B7kEkFdIPg== X-Received: by 2002:a05:620a:4047:b0:67d:6729:b241 with SMTP id i7-20020a05620a404700b0067d6729b241mr2279914qko.151.1650122492654; Sat, 16 Apr 2022 08:21:32 -0700 (PDT) Original-Received: from smtpclient.apple (pool-108-26-204-101.bstnma.fios.verizon.net. [108.26.204.101]) by smtp.gmail.com with ESMTPSA id k66-20020a37ba45000000b0069c5adb2f2fsm4091474qkf.6.2022.04.16.08.21.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Apr 2022 08:21:32 -0700 (PDT) In-Reply-To: <87wnfpccuu.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) 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:229996 Archived-At: > On Apr 16, 2022, at 10:38 AM, Lars Ingebrigtsen wrote: > > Howard Melman writes: > >> First, they include manuals named "./" and "../" which >> shouldn't be there. >> >> Second I seem to see duplicates, if I complete with input >> "emacs" I see candidates "emacs" and "emacs.info.gz" and >> similar duplicates for emacs-mime and emacs-gnutls, so 3 >> candidates show as 6. This may be an artifact of the >> macport build I'm using. It happens from emacs -q and I >> can't easily test on vanilla gnu emacs. > > I've now fixed this in Emacs 29. Thank you. I hope it can make it into an Emacs 28.2. >> Third it would be really nice if there were an >> affixation-function that added the one line description of >> the manual for a completions framework to show when >> completions-detailed is t. Perhaps it could get the info >> from Info-dir-contents? > > But I'm not sure how to fix this in a scalable way. Info-dir-contents > may not exist, and may include fewer info files than what we want to > have in this prompt, I think? And as previously noted, I think it'd > just be too slow to look in every file (I've got 133 files now, down > from 300 before filtering duplicates). I agree it's problematic. I believe q in Info defaults to burying the buffer so I think after first use Info-dir-contents could stick around, which while not ideal, would be good enough for me I'm also frustrated that packages I install put their manuals at the top, above Emacs and Elisp which are my most referenced manuals. I thought there was a bug about this, but I couldn't find it. There are several others about duplicates in the dir dealing with the complexities of finding multiple versions of a manual in the info paths. I think ideally there would be a function that did the scanning to find the manuals that stored the information persistently in some data format (perhaps your new sqlite work). It could be updated at package install time or manually (say C-x x g in top level info). But otherwise this would be available (with the annotations) for a completion table. On first use Info would turn this data into the dir contents and perhaps at that time could run the update (which is basically what it does now). That's certainly a larger project. Howard