From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: Q: Is there a built-in way to read multiple file names? Date: Sat, 13 Jul 2024 18:56:08 +0000 Message-ID: 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> <87wmlppf7e.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39249"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , "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 20:57:33 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 1sShw4-0009yc-WD for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Jul 2024 20:57:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sShvP-00045a-76; Sat, 13 Jul 2024 14:56:51 -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 1sShvM-00045I-H2 for emacs-devel@gnu.org; Sat, 13 Jul 2024 14:56:48 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sShvJ-0001WE-Tk; Sat, 13 Jul 2024 14:56:48 -0400 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46DIoqSD008971; Sat, 13 Jul 2024 18:56:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:references:in-reply-to :content-type:content-transfer-encoding:mime-version; s= corp-2023-11-20; bh=+xo1lTWBPPVjkBi6k9zqhWs20SW55i6Ro7UYU/X0K4U=; b= B1uh+E1EJKZ4RasZh1RUddFtWd4LMelxn9NyyBdfYnoBgv9SQR/ouli3bReaUQjB umENaDMWnHaQA2UwbeEx688SjViRXV7RcQe9ln7Hk4iN3nkyIs+/glssjUEUzGn4 EiBWdO5VeMVjG9QYMoSdPnYYrc6mh+hQIKGeHnK4f8SEyCgbN/0hF3M0i5zeDaLk 10hmzj1c4ciehYmbf3dghwfbDwmnW2xv2ihoXQ6nT8+FNiM88ag3/uoc9cOkXlzl o5w+1JXKA7yJa4iMBI5uCFh21s6w6ev845lwC9MojoIe5x9b9jaeqT5yLijdHJn7 ck+wfFPC+80JGrQeDgA4EA== Original-Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40bhf98sp7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 Jul 2024 18:56:13 +0000 (GMT) Original-Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 46DFWR77020298; Sat, 13 Jul 2024 18:56:11 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2041.outbound.protection.outlook.com [104.47.55.41]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 40bg1bf45g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 Jul 2024 18:56:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pIZKLlr5R7RxRhJejsMO91nUCZdwq3O6YR4af3c59jAxV7ae1Jd53LnEJ1vU+BKtQLevMOG6yMV6x7yNAn96JBPgcDzH+04GfNFuReASSxi74k4fS+uV3J/pSLWDNokWj1Sh8x8mBaI2mAndjDUoCKe1ZcEL9Su50ESxUWRyTN6cWF1cmQrpHtFZUvEcGp5KCXpKjHZ92ICLUcv4hVSrbsDg15pAL05r2f3UVv9fIqnPS13+tf9vf4JiNMr9KFGOJImeHUtXtknQsF+6TZNr3hxjHOO1ZYNvH+nPBAraIBcg0NAOyFX+KCCL7utdT99c2snz7/r0xg8zkpaNug8S3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+xo1lTWBPPVjkBi6k9zqhWs20SW55i6Ro7UYU/X0K4U=; b=rJdHOlcS/YwhuqEIGVkki6H46xkz171aVtSSHQ86klR9KhcJRSwX+KDqiG+xVDJhIWrCtJaEDF85Lz9ADritqLwgRJatSzNAOmWrIQMMF1HjAqM6l1pk0ZRzp4Sy87UNySTshfy2OApC6v4eeLMGtdu1GTWZXQnV4psybmAZK+83EcJA189bRpCPDXpnvlJAhMSqsyG25wH8dPEQe3wvDhDddbAjuOWTmdPyxCS2NuXgC6ry+6OU1PkeIkBE5v2WyvTcK/6YEK6cnLjSUtRNp5sfDIrdveknwpsiipSqtZinwYFrDiElIXsL3b3bPVZriRFekC7zecK0hHN7cgecvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+xo1lTWBPPVjkBi6k9zqhWs20SW55i6Ro7UYU/X0K4U=; b=oX1XbWUu1T9ErLAUknBKh+qyBTRnG6AEzU55l2LAicYM8HGvOm01LwTxAsr8eFBgFa4Ys/Du6N3+woVNgGxnhqWaQGtko4PS7mBLEKBib2hAcRa6XSBuMOwdAKWmoBQZo84mF8DSVsgdX/cp0U25Kbs4rYm7lEidVY9hSd91wkE= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH0PR10MB4566.namprd10.prod.outlook.com (2603:10b6:510:36::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.25; Sat, 13 Jul 2024 18:56:09 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b75a:ef76:884a:dd27]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b75a:ef76:884a:dd27%3]) with mapi id 15.20.7762.024; Sat, 13 Jul 2024 18:56:08 +0000 Thread-Topic: [External] : Re: Q: Is there a built-in way to read multiple file names? Thread-Index: AQHa1SxplIw3TX3DKE6tJjS2gTcO97H09Ulg In-Reply-To: <87wmlppf7e.fsf@localhost> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH0PR10MB4566:EE_ x-ms-office365-filtering-correlation-id: 1c946fef-3db4-4ebf-d983-08dca36d747e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?rNaSpOCvW9DBne0VygkduTrmYTot6SFGPd7ftO8i+nFI07VoJC1z65zT4LSv?= =?us-ascii?Q?0S6R1zndNJRi2Qb8mzairQNN15XPqxge1JJRUIS65Ih8TWDaD+KxCCGlALDx?= =?us-ascii?Q?4MKvH5MJF7tiRUUbT7UMN2aktBTCo282BdEcvr9yzolP/vcB0GWYzHGpyIpc?= =?us-ascii?Q?jzL/5sc21tUiPe/GQBogJi9Msu9PLfPF8lecWGJ+1O95YLkbbYGncAW6f0Uj?= =?us-ascii?Q?lFQuoYXWkHnL4C7g/EslnzM5uFtE9kOwiGL6OrbYIxERMhPb9NJGNqpC2cWJ?= =?us-ascii?Q?ESos2IVOxC9pICmoCrCyldA+0TrnGCFgsvrUIYeniPICXBg9XJW3aSEP8BI9?= =?us-ascii?Q?jxRn4wrZnw3Ii+LgoYFaq0RZKAIeme0HTUbINRD9yXZ1wQbDD7f8QE33k2ln?= =?us-ascii?Q?DQos6dxo0US+SjnAOPlFYzsN1h004Fr1FDJ1mJyuAxnwpWzpvgdfbbJT4OgV?= =?us-ascii?Q?tgYbLZ9q10aAdw7sj2F7N9KodJ3TZhjbuhqMxLGLyFwnxFSVgwfpn9DS6SSi?= =?us-ascii?Q?Mfq7qY6VWYaBVmzc79NR2qio6+RgxNXcwPU/KqSnGUXLlTNuKWullWyLlhlc?= =?us-ascii?Q?9t5YoKhYNxudPlNty2Dty6c96230mQ4Ks4CzjvJxlZu14YkftEJCE6BdukA5?= =?us-ascii?Q?Gs3mW x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jC8+PqDrMn2g7Or1rKJUCfkWDmcgjclLHQ0gi9I55t5XoOW789RAmAgyV+Xp?= =?us-ascii?Q?3Qhv72Rbm61YNc+drlJEpi55DGB31NrGktbbS+HlhBVEZP8UFl3hCt5HKUVY?= =?us-ascii?Q?GCk3qVKwNNrFlAV+noF5Qt28drM5CujEERWLVpS6WU22NrsHAJgJhc4xcXzS?= =?us-ascii?Q?S5Cb3dG0Wk3MvcPxVOniuSEUwc6DldiR5FEDvApPX251gXzIV8KmotfhcWzd?= =?us-ascii?Q?RIgM+p/yKIZDaDTINIkhb0jqlRe1Rj70WbfrYuV3gfIDOUR04oU/EVIcKjd1?= =?us-ascii?Q?vzH1BWjM/R/jsCzk5dt48EKrKCuXmbG1rZoKUlRrTw/D5ojVMKehYs7jXX7f?= =?us-ascii?Q?JjwJD/36/rR/iUGlY6UXKeC5xUHeqyvJMXfUlXd6zlaIhZqUfoikxqfwrjx3?= =?us-ascii?Q?bixlYs87VoG3RXPfz5LK8sTdF5b6ZdpojJ3ccBcvY8/CgfBFYwk1VTa5yV42?= =?us-ascii?Q?qJt9u5hBDm7vGB6LQOOg5c6ZRKyHqYXstN3o4aZbxHIZPEt+4C1+6uDwHU7e?= =?us-ascii?Q?BG0UQbaD2s3HCaUrrQaziy14UggKPYz4UGS/RZ4gk8VdJX0ADeRgAlKgKjhH?= =?us-ascii?Q?7Gy4NAFllE7ymLlY/RZUD2tu3beWregQWNYoCp9Hsx0M/np23MrseUhxuuJj?= =?us-ascii?Q?Fp X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: uMQK9/bH4t6MD/NhJtV+unUeBm8jRWaaj2eEyiIXCuiZ9YFVKv4yP0KLcsnWEK2TjjINl8svK0+Bn8CIj+0zThsGFXNIqrEGk2tjB4ha/+WDTt5e8+VLzm7WDD5dXPRme6SINiV2nf5oY/yarbiGH16j/fPMa4Tc+cOas2Poe0kJh9owV3BEBox7MtIzWB4xMY1rmrhddWvJC6fEJXtNX3yIynnUk+dzeC6ntBGgcsu9PKH5CJvT2FKbqwb7UhmVtGZGj1tyRr5q1JJmMh9sVxs5+JIzw9OkDphUDWvXjjmP22bt7+xLE7jE5UZlvi5yxi0cC+WCzfKasqsVhUdPoPrkE6TSCptxcYIK7AyQY+2md/uwWYpq9IR8Ki4bI1olWTwPPSy05yg5/c5EFYviqHjKT4ZXilzm1JoNgnoBVKR/sHeNlEV1PYVmNUIaCxPRPDuF0aYxLra/OMW2jeXUQqa5co1np0BaK5qEBXYIh8oC3sBwhJ0Xa4dz8MrfwkrlNiu/noMO/pKBilpuiXi5268oUXcbAxoL2003EJd1zTg/hrQmETult4gA3itsylGDDVKsMmX057hvWYRoGXh2w4Q1jQD/F09wOQ68tnTbh+0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c946fef-3db4-4ebf-d983-08dca36d747e X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2024 18:56:08.0397 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: U3mOZdR+5+p3m1ZqUt2BHQvjBO6Qy7rnwEyM9Oeeo6nxvPIBdgefwXOq1aWZE5LkvnPbhXk5auuHkT8yg3z75w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4566 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-13_15,2024-07-11_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=996 adultscore=0 malwarescore=0 mlxscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2406180000 definitions=main-2407130143 X-Proofpoint-ORIG-GUID: 75bhfHtQqurxF7X3kciJFXUEoU1lasuw X-Proofpoint-GUID: 75bhfHtQqurxF7X3kciJFXUEoU1lasuw Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:321617 Archived-At: > > 1. Wrt "marking" files for some action: > > > > Icicles calls this "saving" instead of > > "marking" a completion candidate. > > ... >=20 > This is similar to what I had in mind, yes. > Even better - you can maintain multiple "marked sets". Yes. And "maintaining" and creating can involve using different set operations (interactively, during completion). https://www.emacswiki.org/emacs/Icicles_-_Candidate_Sets#SetOperations By default, candidates are saved to, and retrieved from, variable `icicle-saved-completion-candidates'. You can use other variables (a prefix arg to a saving or retrieving command prompts you for the var). Why is it important to be able to have multiple saved sets of candidates? You can go to the trouble of creating a saved set of candidates just once (however you want, whether with Icicles interactively - matching, filtering, selecting - or by editing a list, or by program), then reuse that set any time later. You can also save a candidate set to a file, persisting it so you can retrieve it in other Emacs sessions. > Visual highlighting of the "marked"/"saved" > candidates is also a very good idea. It's essential, especially if you want to interactively UNmark (for saving) some of currently marked candidates at some point. > > 5. You can mark file names in Dired and > > create, or add to, "saved" sets of names > > for subsequent use in file-completion > > commands (retrieve sets as candidates). >=20 > This is also an interesting idea, thanks! Works also for other Dired-like buffers, such as those from commands such as `find-name-dired' or `find-grep-dired'. You can use such a command as a starting point, mark some of the found files, then save those marked as a candidate set. > I think that `dired-dwim-target-directory' > is doing something similar That just gives you a different directory for use with commands in Dired. It has nothing to do with marking/selecting files for use later as completion candidates.