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: Sun, 14 Jul 2024 17:23:09 +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> <875xt8jgho.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="35294"; 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 Sun Jul 14 19:24:10 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 1sT2xE-0008y6-Ch for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Jul 2024 19:24:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sT2wd-0007Nb-Mu; Sun, 14 Jul 2024 13:23:31 -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 1sT2wb-0007NN-Rg for emacs-devel@gnu.org; Sun, 14 Jul 2024 13:23:30 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sT2wX-0004mq-Dt; Sun, 14 Jul 2024 13:23:29 -0400 Original-Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46EFtvre026167; Sun, 14 Jul 2024 17:23:21 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=tf7zLR032EZvd8Gq3baIz7gyJa/bo59B3kDDFWVzA88=; b= G7Eq6doyuuHs9obh6bL3F7SgudmoVOS0Nf9rHkKLp1LoJuOcURtNl4N57RTCNoZz jWBlW9kOdRt63bED6wbs8I+Z/Er9RfPdW8ESDqzvJYfhnO5x10AC/WQLBkYnptnn FtdG4T4xw6GDKqnWWKjN+DQkziy0MDnkiMBrxXhEC3WbCQuWu8gaFc3+VwGKm3k2 mA2QUaVa7tBUCnREcmz7diMqgCOZOJllVBM0gFGt1nLhdgcOzHqZYbXuGyC/89aN VyYAPn/eD7cU15HZqLuCnV+D3NLvyKvIUxt9jDoB2nPt5BHmGdGc/jlSQ0TDyter qMecRbHdWf974HbVFarGAQ== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40bg0cj0mu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Jul 2024 17:23:21 +0000 (GMT) Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 46EHJE3k001532; Sun, 14 Jul 2024 17:23:20 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2168.outbound.protection.outlook.com [104.47.59.168]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 40bg15rky8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Jul 2024 17:23:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OyKndNBS8+pgoyWWgP89/KxpOSLIqrCvHpi9FJTcfY/RYeSdxeShDZOQJ4M8cEVBFpHiSU/DUF49MhD/1ReBOmEPJq2b+SaJ85g5GZfC84A0xI4mjjBi+dP9XOmj7twpPADizCL4b8CWgnqXXnpA+oLqmUNcVbTTOuTNL2wtqW2dlE2C5VtDE0b72aysxcq1rMHLpIjMZ9KvvWJlZEc+3ASt1hAqjJPwNHSNbiTKsxz9zGBuuYX7W65Q3tEY5i5/dw5Zo8GGOI90VjgQqW1XRAVVpa5vKlqWCVIrng3nU9+ek6gsmJARSb4lUPh/yMYxLu69qeYuo/nccNkLtRB3Ag== 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=tf7zLR032EZvd8Gq3baIz7gyJa/bo59B3kDDFWVzA88=; b=CRsAPjD4iaWftWzF5m3yq3oFiUVSbf/VqUc7VOZxAiDEwcYj7TRuGj5enN3JLfnFW+BWQnOPW665cFDl5MfYoHRIEXhlUnl+X9lmR4MYGVt5lIdI96kUka1iKFkSkURctTyTSCZxR06XF+OyOypFo9B0eDuJRPpoM0W5FWBLKneQWBb4fZtmquoiyQvV/97vLH5cMAXrmezhjtnBWqEAyaQwJQir5uXpbhRdfcctxxQje1N4iS0ahcy+VZ/hW5UXLZf27ptbTkNRlOok5FLt1RKCIpLaGBOfS0NWzWoZMHtrHMx/Tl2QRY5TXZItCePEmTNZ8LOpjvAZWiKohglx3A== 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=tf7zLR032EZvd8Gq3baIz7gyJa/bo59B3kDDFWVzA88=; b=VC5UMNI/N9qfotQ1Qymt2aLfw6Sm76fzVhoTYL/emV6WV0A7NjFTXmxiOdDnMUxVp7y90Lih9kNStat3BNVHm85ANdqJ8ku9gnI1NqaFHjvzouAupUhDj/ssyYCKupfJD2dYgo6wjGcFsPxXyMRJYktp94W63xebdJv1cnaxHA4= Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com (2603:10b6:5:355::21) by DS7PR10MB5976.namprd10.prod.outlook.com (2603:10b6:8:9c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.27; Sun, 14 Jul 2024 17:23:09 +0000 Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::34fd:138:150d:30c4]) by CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::34fd:138:150d:30c4%6]) with mapi id 15.20.7762.027; Sun, 14 Jul 2024 17:23:09 +0000 Thread-Topic: [External] : Re: Q: Is there a built-in way to read multiple file names? Thread-Index: AQHa1eqLIBlpO8aAX065hRzwcSl+w7H2cGKw In-Reply-To: <875xt8jgho.fsf@localhost> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR10MB5473:EE_|DS7PR10MB5976:EE_ x-ms-office365-filtering-correlation-id: f2710607-04b1-415b-467d-08dca429a1c5 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?l9ac2Z0NzVKctmUzQIcztU6+/VVd2tBcXQ+C/kk4y3Cb2iSYK+Evf/necSNl?= =?us-ascii?Q?gngVFJACdGN9/b/jasEcnrnqTXzNmOAUKj++iY2O9nyRGziL0ibrerwUgz/D?= =?us-ascii?Q?7lnh5J5HCYn0JI6G8dr3Qj5vqREHaiRxeq+nH67fSkZDHmnWKH6xbmL5UESF?= =?us-ascii?Q?S87WZyY/Vbrl0WII8uhe8pj7s+mTzzP9CYvN5n4AhWpBTomttlHrdbwXRoLd?= =?us-ascii?Q?MGi+ivaq2jvCnL3GUm10Hp+JX3dxAa2b7qa7T7i3j2kKXp6oxJIlXGTOy32Z?= =?us-ascii?Q?bPMzu8XQ0LHN/lW+MriCryTqxO/2WG2ds7LWgI06ogSPwQKZC945Mk0LWu4R?= =?us-ascii?Q?ILaZIZss9fS63aDWIls1YUw5qViFsCCuV8It9chhrwZKxN9kP1I0vs9tUOJA?= =?us-ascii?Q?jxQVG6db6lkFweHsNLdOdSFBfegT8WWw75shny0NKz12QIjD8ruZyhpnCR1R?= =?us-ascii?Q?Ed4JfNn2ZLp3d5ssdpJwmmtIOR12TWDPtMKw/yodYGt+vv4+stbGGbuy4V0Q?= =?us-ascii?Q?HCqBraXlYSfSjmOJpgK13RJS+mJ9WsDKjeRzCr+HVMcxwob/OkjhryZUKMZY?= =?us-ascii?Q?c0gWO0V0blA2Qi5jMCIZAJ3baJ0c61Mzlxx1hRGeipUKvFfZh/l48jw8gT7x?= =?us-ascii?Q?wceQi x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR10MB5473.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?poXqDeAJdsuIt3GUvpXnGVWIMc0bTxyU7xcP3zCGkhQZJ1ok6cLBCEZ73PiX?= =?us-ascii?Q?IMYSTVoTCTXqQ7KYGHlP6JAMqMAsq9liN1tT43tH1WG4yFlnKWn6ycStSjye?= =?us-ascii?Q?mYWN58sxYSh1ZhFYnzls9eJQIVXmnUyuqGc/aIWkNhKMAmZTWwS7wnpqlhYE?= =?us-ascii?Q?2ifpljSGMFrSCTtMSFXldBpuMtc2Jxy4wwDUXXV4a1lLdJbIetCKCK6ANvT2?= =?us-ascii?Q?BAhqETUjlyo6Do+SnZn7XHbh8RTNDwqlUVJNpmWRutWhaj52a1/QGfnxho4m?= =?us-ascii?Q?0sLbbVeup9UoT6P0jABMQ32yigSnDzxqT3J7WbFdEoRvlgelpaznq95FE0+O?= =?us-ascii?Q?cJokYt9MbV0AIUCZi0tExA0cmn2TE/mHg9lGpVJmqu94Zh9GaS+NrncY+DDg?= =?us-ascii?Q?j2GAs8QyapWuHNDvS4ekorVHFAuKKcz3j0J0TQSZzLglZcs0Tbq8UZAie3TO?= =?us-ascii?Q?EttZJ5n5ozyn7VUrzKStGIx0ZnaNvHvgp+NYC6QOJEFvSaRs3heDpms0tV7t?= =?us-ascii?Q?Jts5sv2/2VChETUv5gCIptXbrl1bDiBSVmMl1JLHxr7XHtUCXKIxeLyCasyA?= =?us-ascii?Q?GuvFp4GYXkXAG5BjQCEAKbb3xuePUEgoY9EULmKACxmA2Lv1YAeSEyoyaXNV?= =?us-ascii?Q?rR X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: j5C30LvlNACSz1XeZw6cgW47SfWnFMwWjFIKXalTmk95RHHEqTZAoRgeKdaoKO7BWLK4WADNq+Ab1mmm81W1bLPb31F7vKpegNrpe/RFN7yMTv1W8Uvq/u/Mh4e0y1xErhebebeyqiR5zeMWPNuen0xtkL23FkADa/1T1bb0FmSc24jARg4tPmcm2P8P4TGAg8zkMyZ4wGK3CwUTVonir+vYOL105nJEZUYswHWs0KRKaZWRiFNKIsPb9sc4SnfiDdDtlvqNAnCk0kveMQNX3D9oWce1e44206YDUCy2aEGeVVL0RmelUYFN4ts634eD81jQ6+iBXF1O6gL+MAopV0QmPM9OZiRwSo15QWml6ShJgw96ZngNCDS+KwykoC04LFMTJt8q4IXQOyRKbIKYzTk7vFX8/DsU1an76d3CFO2sBmCJXUAfX6+xuaWQtCWVkl6gzMUXU65m1EHLltQG7Vsv+OOPC/sa+trxH2/OrkU7T8V9jegWPJ0E13gf8nH9n3xf80+MnmkEqI19RDPprBczauBKNQv1DjZ0l0dfycPOuSdHMX2yRmFn3INm095or9jSWpWMG54rhcSCjw/a+a7ZGvX0m59YQ4exYOKEOC0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5473.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2710607-04b1-415b-467d-08dca429a1c5 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jul 2024 17:23:09.4022 (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: qB/k7bwWPPBPMqPukNIbJAfgDbglxBPk5Ti+q16qcfw5uCiGirV1n4ZQV8TM3HsR+AoTtu+FOQbBSU9/LvgXQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB5976 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-14_11,2024-07-11_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 malwarescore=0 mlxscore=0 phishscore=0 spamscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2406180000 definitions=main-2407140138 X-Proofpoint-GUID: YcaAa1Eg5WwAIIfk8GqLU8GVY9gKgOpe X-Proofpoint-ORIG-GUID: YcaAa1Eg5WwAIIfk8GqLU8GVY9gKgOpe Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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:321647 Archived-At: > This sounds overengineered. What you describe is an equivalent of > `completing-read' HISTORY argument. No, there's really no relation to any HISTORY argument. Minibuffer history args record only minibuffer input that you've _entered_ (`RET'). (And yes, you can persist minibuffer history variables. They're still unrelated.) 1. `C-x C-f' followed by a pattern to match one or more files. Then `TAB' to complete the pattern.=20 2. Mark any of those candidates, or all at once, to `icicle-saved-completion-candidates' (or to any other var - that's the default). 3. Reminder: you're still reading file names with completion. You haven't yet hit `RET' or `C-g'. You're just typing a pattern, seeing what matches, and maybe selecting some candidates. Change your minibuffer pattern - maybe one for a completely different location (directory or file system). Hit `TAB' again, to see the matches for that new pattern. 4. Repeat step #2, but this time saving by _adding_ the matching file names to the same saved candidate set. 5. Repeat steps #3 and #2 as much as you like. Each time you're matching different sets of files - anywhere - using different patterns. 6. Hit `C-g' to cancel reading file names. You just interactively explored files all over the place, picking some to act on, adding their names to a list stored in a variable. You never visiting any of the files. You can now (or later) use `C-x C-f' again and retrieve the saved set of candidates to visit them all. Or use any other command that reads file names and acts on those files. Or you can visit them all instead of hitting `C-g' (step 6): just retrieve all the saved names and hit `RET'. ___ Even if you match just one file name each time, the point's the same: quickly pick up file names from anywhere, matching different patterns. Adding files to an existing saved set is as quick as adding them to an empty set. The former is `C->', the latter's `C-M->'. Or for a persistent set, the former is `C-u C->' and the latter's `C-u C-M->'. https://www.emacswiki.org/emacs/Icicles_-_Persistent_Completions#SavingInCa= cheFiles