From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#38476: 27.0.50; substring completion feature request Date: Fri, 20 May 2022 14:34:16 +0200 Message-ID: <878rqw2xiv.fsf@gnus.org> References: <87fti1w6fs.fsf@gmx.net> <87ilq0301d.fsf@gnus.org> <87h75k1j88.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19047"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Monnier , 38476@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 20 14:36:26 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 1ns1rl-0004kJ-Hm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 May 2022 14:36:25 +0200 Original-Received: from localhost ([::1]:50710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ns1rk-0006eh-AM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 May 2022 08:36:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ns1qR-0005pW-Ee for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 08:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ns1qR-0002hp-5k for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 08:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ns1qR-0007UR-3y for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 08:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 May 2022 12:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38476 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 38476-submit@debbugs.gnu.org id=B38476.165305007228720 (code B ref 38476); Fri, 20 May 2022 12:35:03 +0000 Original-Received: (at 38476) by debbugs.gnu.org; 20 May 2022 12:34:32 +0000 Original-Received: from localhost ([127.0.0.1]:37915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ns1pv-0007T9-So for submit@debbugs.gnu.org; Fri, 20 May 2022 08:34:32 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:34560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ns1pt-0007Sq-8y for 38476@debbugs.gnu.org; Fri, 20 May 2022 08:34:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=82xBdqjkAApNYEebXKerjeBPnj3vhU0wGJLRVab8maA=; b=oKsFLkFeZCFHBy46lkK3+vkiYE xV2urTvlUp1qXFRgHVHqIYtf+fjfxEp6g6oZRGlmCQrCOcRpFYTBw+SdlA/P9dcYBz0v6hURLqax7 sefWZAeF//a7o6cwihH1FmCn8prdmmH/34QPyJCTmkODkGq2hbA+OR+7nG/Lg78XQJT8=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ns1pj-0007dK-1I; Fri, 20 May 2022 14:34:21 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUtLjE0NDZBQUI+ PkBDPThURjeMZzx+XztuVTqacEAeJzNnZmRUVFM/P0H////30LR9AAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YFFAweJ2MDblcAAAFdSURBVDjLtVS9bsIwED6rQmI8h4alS6FjJ+AJkFA7I1GLbiBxh9UN CSLWStTKI/Q5umZj7tQnqm0wPyEpMPSGKL7P3/18dzIAgLTmPwcWQTARXNt/QOeVKE8Y2xsAeQB9 EjzNIYUssjagLAGK/S7UlcBBKBS+DOF66sY2uZouUlomKfcN1YdjQ1UekOoAPpPWZsJqqilRTGTM C7FpgayMSb/OuL7ityfDelRnoZktUB2zTojt5U9OlnrKKiFyQGWmFpSaVHfNJO3N1byy7L0PQ7k3 VjJpxYzkfeR12/WR3WXfX9ljts7WYVAbERtRU7aa0Vo+NILsGGaItjlxJImfYU79mmdYGSAHhO3A k3H5IosBLANKQxVbrWDXAnButOJCRu3c+mAZAyG37gfAMaNTlqN5wYr+AYirGf8E7Bp0O3TbLxDR aRV/+CtHofwzE6/2T0cbWpuDo8SDfaifX1UMdZ/EfAsAAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIy LTA1LTIwVDEyOjMwOjM5KzAwOjAwt9zCAwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNS0yMFQx MjozMDozOSswMDowMMaBer8AAAAASUVORK5CYII= X-Now-Playing: Tuxedomoon's _Ten Years In One Night (Live)_: "Burning Trumpet" In-Reply-To: <87h75k1j88.fsf@gmx.net> (Stephen Berman's message of "Fri, 20 May 2022 14:28:23 +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:232754 Archived-At: Stephen Berman writes: > 0. $ mkdir /tmp/test; touch /tmp/test/{file1test,file2test} > 1. $ emacs-master -Q --eval "(setq completion-category-overrides > '((buffer (styles substring)) (file (styles substring))))" > 2. Type `C-x C-f /tmp/test/te TAB' > => The minibuffer displays the following, with point at the end of the line: > > Find file: /tmp/test/test Thanks. With that recipe, I can reproduce the behaviour. > Typing TAB a second time pops up a the *Completions* buffer showing > file1test and file2test as the two possible completions. But to > complete either of these in the minibuffer you have to move point. > That's the bug (or feature request). Yeah, that doesn't seem like the best place to put point. >> With "*te TAB" it completes to file*test with point after *, which seems >> correct, too. > > Yes, that input didn't occur to me when I filed the report. I just now > scrolled through the Completion node of the Emacs manual and didn't see > a reference to it; is it documented? If not, perhaps it should be. I think I've learned about * through osmosis -- perhaps it isn't documented? But it definitely should be. > Anyway, using * comes close to satisfying the feature request, so if > it's too hard to make it work without the *, I can live with having to > use *. It'd be nice if `substring' placed point where the * thing does, but perhaps there are reasons for the current behaviour... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no