From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Q: Is there a built-in way to read multiple file names? Date: Sat, 13 Jul 2024 16:53:02 +0300 Message-ID: <86jzhpjt4x.fsf@gnu.org> References: <875xthfyz3.fsf@localhost> <87a5it6vr6.fsf@localhost> <86r0c5196r.fsf@gnu.org> <877cdx6ryu.fsf@localhost> <86o77914sh.fsf@gnu.org> <874j916qlv.fsf@localhost> <86ikxh13yc.fsf@gnu.org> <87zfqlpfty.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15922"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mardani29@yahoo.es, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 13 15:54:21 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sSdCf-0003uI-7i for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Jul 2024 15:54:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSdBn-0007Jv-4G; Sat, 13 Jul 2024 09:53:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSdBe-0007Jc-Ad for emacs-devel@gnu.org; Sat, 13 Jul 2024 09:53:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSdBd-00064A-Al; Sat, 13 Jul 2024 09:53:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=huJMeu2DFS8z0sHlFwvcU0NZ6ZWuA7dyx3AD/XiWtC8=; b=sD8BCJTVCPBB rxwQb5hJ0SLZ8BOPNDBC1rqA805z7hT0xl1+LjT6E/eGxhrOcrNSl5jPGtFQTdM1+H1VNXdowAmR3 JkWgxVEVsZNZrIBMFijQnrCg53BU2mMmzI9wizmaDvpb2Kr/zk2AFV3OWJ04Pf+tpiWqMExdRmRS1 TxHd3qC01ze1BiQUSRL2yzpaAOu1ZoC3RDjZ/PifPPFk9djK61EPNnEgx1DBlQ3lUTbJ+qgJeHavQ N/R4wSkV1PTE8qRPn6UA9MoY5XrlRhquhv4fhOmH5TkfqX0fk7eVlEXHBLZz3soLxeAI9Um3ZyK0h vTm8S5clqWEsjTMxTBQKuQ==; In-Reply-To: <87zfqlpfty.fsf@localhost> (message from Ihor Radchenko on Sat, 13 Jul 2024 13:43:53 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321605 Archived-At: > From: Ihor Radchenko > Cc: mardani29@yahoo.es, emacs-devel@gnu.org > Date: Sat, 13 Jul 2024 13:43:53 +0000 > > Eli Zaretskii writes: > > > I didn't mean Dired as use it for browsing a directory. I meant a UI > > for selecting multiple files that reuses Dired, and lets users exit it > > with "C-c C-c" or somesuch. > > > > IOW, my intent was to point out the features to generalize and extend > > in order to have what you want. (For buffers, I think Ibuffer already > > offers an almost complete solution.) > > May you please explain in more details how you envision such multi-file > selection interface? Basically, present a Dired-like list of files and let the users mark the files they want to select. Many GUI programs show file-selection dialogs, which allow selection of more than one file, and that is what I had in mind. > >> I also do not see why the same cannot be done based on the basis of > >> completion-list-mode. > > > > The display parts might be suitable for selection, but the entire > > completion machinery behind this makes absolutely no sense for the > > purpose of selection based on attributes that are not names or > > collection of strings. > > Is it? AFAIK, packages like consult allow searching by metadata. Isn't > custom COLLECTION function not suitable? Of course, one can make the COLLECTION function do whatever one wants, including coffee, love, and whatnot. But how in the world could the result be called "completion" if it doesn't complete anything??