From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.devel Subject: Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs] Date: Sun, 10 May 2020 12:48:08 +0100 Message-ID: <87sgg8c8p3.fsf@russet.org.uk> References: <0c88192c-3c33-46ed-95cb-b4c6928016e3@default> <87wo5mc04t.fsf@fastmail.fm> <87blmye2jf.fsf@russet.org.uk> <871rnudq2h.fsf@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="25679"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) Cc: joostkremers@fastmail.fm, emacs-devel@gnu.org To: ams@gnu.org (Alfred M. Szmidt) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 10 13:49:48 2020 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 1jXkSq-0006bP-Ih for ged-emacs-devel@m.gmane-mx.org; Sun, 10 May 2020 13:49:48 +0200 Original-Received: from localhost ([::1]:45352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXkSp-0008EB-KE for ged-emacs-devel@m.gmane-mx.org; Sun, 10 May 2020 07:49:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXkS1-0007YT-V0 for emacs-devel@gnu.org; Sun, 10 May 2020 07:48:57 -0400 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:52620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXkS0-0002Jj-EW; Sun, 10 May 2020 07:48:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; 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=V2F60Erpb5+oJsUqqAPjJ9JEm5sADE2v2Vm6dYLo+Ug=; b=YeGdhnYJJtRSt91IorwVO3TTR bLBnJMnAb8YVl0kaVEdygHymb1+Rr7pcU92Ph7zV2p26mcQ/fqzaV4gakguuoccQnfQmMXeVrnjGF ukynq3A2L3rDrhc9+NiN9bqxIsGM4w5s6NercgahMx9bJqHGvdz6Wq1b+IqgpTsn8ZLQED/eKZOPy 7seDVEmFH4Cm3Xci1CHxGblORXSo+6GOZ5V60jjqiz/bg81v2zt3OzGN7tnFts1RkOiHFHOucSyJ+ 4fMr0rlFmWBN2hxrOFh5fm119nT3X28LeZrN5zCaZ9HOnhaCp8qRZxNApwfp0VesENCaB0eb4nTuf e1EcSTFzw==; Original-Received: from cpc142652-benw12-2-0-cust953.16-2.cable.virginm.net ([82.21.43.186]:43886 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jXkRI-000664-5j; Sun, 10 May 2020 12:48:12 +0100 In-Reply-To: (Alfred M. Szmidt's message of "Sat, 09 May 2020 03:11:24 -0400") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk Received-SPF: none client-ip=78.129.138.110; envelope-from=phillip.lord@russet.org.uk; helo=cloud103.planethippo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/10 07:48:12 X-ACL-Warn: Detected OS = Linux 3.11 and newer 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, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:249647 Archived-At: ams@gnu.org (Alfred M. Szmidt) writes: > (defun switch-a-3 () > (interactive) > (--> (m-buffer-match (current-buffer) "a") > (-take 2 it) > (m-buffer-replace-match it "x"))) > > How does that even the same thing as: > > (save-excursion > (while (re-search-forward "foo[ \t]+bar" nil t) > (replace-match "foobar"))) > > is beyond me. And I think that applies to the majority of Emacs Lisp > users, -->, m-buffer-match, m-buffer-replace-match say nothing, they > do not even suggest what they do. m-buffer-match returns the matches in the buffer as a list. m-buffer-replace-match replaces those matches with the placement. -take takes the first two elements from a list. I agree --> doesn't tell you much -- it's a threading macro. > It's not a bad metric either! Yes, there are many people > downloading > > It is a terrible metric, Emacs isn't a popularity contest. So I have heard. > > And even so, it doesn't automatically mean that it would be a good > > addition to Emacs -- such things shouldn't be decided only based on > > popularity. > > Happy to hear the criteria that you would apply. > > The same critera that is used when anything is added to Emacs. I > think that has and is working well, people give their input, you try > to convince the maintainer(s) that it makes sense and follows their > idea of what is "Emacs', and it gets added to Emacs if so. Quite clearly, dash has and is working well because as 10% of MELPA uses it. Dash have taken lots of input (indeed, the size of the contributor list is what has caused problems with ELPA and FSF copyright policy). Your last criteria doesn't help at all, just begs the question of what criteria the maintainer(s) use. Phil