From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs. Date: Fri, 13 Aug 2021 19:09:14 +0200 Message-ID: References: <831r6xctwu.fsf@gnu.org> <83wnopbajr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 13 19:09:46 2021 Return-path: Envelope-to: geh-help-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 1mEagj-0001ag-4W for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 13 Aug 2021 19:09:46 +0200 Original-Received: from localhost ([::1]:42470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEagi-0006J9-0k for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 13 Aug 2021 13:09:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEagL-0006Hf-Bc for help-gnu-emacs@gnu.org; Fri, 13 Aug 2021 13:09:21 -0400 Original-Received: from mail-db8eur05olkn2012.outbound.protection.outlook.com ([40.92.89.12]:61536 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEagJ-0004WT-D3; Fri, 13 Aug 2021 13:09:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aTIlq5ywun808rPRbv+MBkHqvS99ln+P8OwCCwgZaAbQrpKCZKlOodoci7cNo6gHKunDp1HcG3DTps/6X8sanUfkQW3ubziqJIgmNLIcLbpBQZrL8qackCVcO0fJzaCjHAuXzBSreU/vAquF5MWzOhxSoyx5cw+nDM4P0wHf/kYxEZtCFRVClwa8+cnaN/tWynci991038QbgHdpauTLvUj3ZKZrnXaGzs9DdfILgll3Sby48uDlr9d8MDytbJ9SpiXCFS/pMPpKhryTN6h4d5P6cRSyrUDs0Kov07XfJwpbMm3LC7pqwG8uDWIIS4MR639g7RXCAkae3DySRsJdzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0Y9tzJUJQMzOnq23Jhz4zBzf3t3qEdZoXHVVe214mLc=; b=SZ9ZBDQ0QGefITAjCR1S+Bhet+k7e+VWuU8UkrC0ExAcs4RrUVgmjbvsib7gIIOk2q5CvRXpQdQPOofSK/Orz/U6E63dUiEfqtx7GRefcP8BLibrOoO64xJaZpkXkpyp4UZbR0pp29O5o8pTcFINtransxgVfIsTOXdC7KE36UscZgQo0/LyZFPlQt400w8NCNnNBNGMQbn+nIJv86PpclI2OQgFcWhuaorxj+EZq5CCpD3wJ82A1sVTtN+Z6zyCMZC3/w0mc8a0sIQ/MljWvMD7KGt1tzM7UH/DOVV1BLePwp/NR9RrhoKDME0cRX4Uv6H/td/arfqGDLLfo7vqsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0Y9tzJUJQMzOnq23Jhz4zBzf3t3qEdZoXHVVe214mLc=; b=nDZ0xYfw61JRGETGnr2lDK0m0vV1U/ulOzH0Dm26+W8ZhPdSontNYgsCUM09kAQ9UTBZQdvOZBkwZv8QhCCHygW3nLXjMARe8hZ91J9KvzkS+iHbJUTENw/8vUN+ZomWaMaW/aF3zkfeG0gSi5aihmDKiRajt9V/ja3lTeG6c1QUGC0hUiC4KG8kKwSaPrVQGfxvRKZxYHKUKPZ19VJ1QRHc4DbT49w1WrF+MKW05aLegZ5H1USL6YihAXAnz54qSIZLaIc/FvYLe0h9lG5neDkVKjzKL+vDbWhmXnpH5amfWHqxV27QqHAE4FfjttNnyZqLAB/s7RrZW91WR20hTQ== Original-Received: from VI1EUR05FT063.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::46) by VI1EUR05HT223.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16; Fri, 13 Aug 2021 17:09:15 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc12::48) by VI1EUR05FT063.mail.protection.outlook.com (2a01:111:e400:fc12::390) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Fri, 13 Aug 2021 17:09:15 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:EAA8E13B7CF3ADF2DB75B1FD6379720B3E957EE795EC4FD3162C97D1D0420EF0; UpperCasedChecksum:8EBFB4128465DC395346A55E653F1625A1BC6A92BBBDCFC0FED6187244996A7B; SizeAsReceived:7681; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39%2]) with mapi id 15.20.4415.019; Fri, 13 Aug 2021 17:09:15 +0000 In-Reply-To: <83wnopbajr.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Aug 2021 18:59:20 +0300") X-TMN: [S5IhsyE4sfI4hPArbLK6JeLHR7p0p5gx] X-ClientProxiedBy: AM6PR0502CA0039.eurprd05.prod.outlook.com (2603:10a6:20b:56::16) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87fsvdw9tx.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6PR0502CA0039.eurprd05.prod.outlook.com (2603:10a6:20b:56::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Fri, 13 Aug 2021 17:09:15 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: f690a213-98e1-4c57-8878-08d95e7d1428 X-MS-TrafficTypeDiagnostic: VI1EUR05HT223: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 09Vc0GPNSMPvQPt3Ob34q7ZDOTKs+krzQpU9ulzPQp4yX0NBfr8x0m77mIgq2NCK8E93Ew3tN5tzA+ej11J1A1b/IOB7icMTZ52yuG7Xn7ZRlVbRiktafx3mlUsnmwtSYoEhymXZ+qfq7HHwRbDqlNAnYfwAwM50ph6bNB/Q8UbzwTQCuHxvGluYTxoHy6KmtXXZUKMU8WU69ONK3Wf+rPDHOQn7Jc56gSZLWOSvneppd2aQ4mNzt6bYgPBH6OjUw5OrGFzLXocPTyIuRb+hEPfYpT6EHfV8jmLab4J0CTQiHNIXhDkP7Y035O0Ra/cVrUjp2QFrzI5COpV92s8ntA14SrxqXVVCOrIgwwS5h4sfHlST5M+d/UYhdSKOOGmtc0Q9cKXnp+wxrzRT0hGKJSkS+Hy5bZDUxanlAUv2oUH6oD0wyv536JDWKcRGF4TI X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HjYGbrnpsd6/J6cBJHlZdYsVBH1Yoq699ouDeZDEOUmCm0SAi/UvSPcBRPtKM10d4rh2XP+2hsjeRgbwfHTU4IWmM2WfN90BxEPAYvc5ykO3QzswR6RQ3tXER8m2CfdJcyNeeo+eOU5Hnie+7pSH8g== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: f690a213-98e1-4c57-8878-08d95e7d1428 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2021 17:09:15.5204 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT063.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR05HT223 Received-SPF: pass client-ip=40.92.89.12; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-obe.outbound.protection.outlook.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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132507 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Cc: help-gnu-emacs@gnu.org >> Date: Fri, 13 Aug 2021 16:42:20 +0200 >> >> Eli Zaretskii writes: >> >> >> From: Arthur Miller >> >> Date: Fri, 13 Aug 2021 11:26:39 +0200 >> >> Cc: help-gnu-emacs >> >> >> >> Hongyi Zhao writes: >> >> >> >> > It's well known that Emacs has already implemented numerous >> >> > macro/function/command in its current version. But it seems that this >> >> > is caused by, to a certain degree, the too fine granularity, i.e., >> >> > there are many functionally similar macro/function/command are >> >> > designed separately, for example, `directory-files' and >> >> > `directory-files-recursively'. The traditional Unix tool, `find', can >> >> I wouldn't say that these are "very" similar. Sure they both list files, >> >> but a recursive lister vs. plain lister is a big difference. >> > >> > The comparison of 'find' with the two Emacs APIs is basically invalid: >> > 'find' is an _application_, whereas the 2 APIs are just that: APIs >> > that could be used to build such an application. See find-lisp.el for >> > what the application would look like. >> >> In a *shell world* one could logically think of cli utlities >> as "apis" and options as function arguments, and I guess pipe would be >> functional composition. > > But there were no pipes in the original comparison. It just compared > these Lisp APIs with 'find' the command. True, they were introduced later on, I was regressing there.