From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: Should `position' be implemented in Emacs core and preloaded? Date: Thu, 6 Oct 2016 00:37:12 +0900 (JST) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1475681911 13337 195.159.176.226 (5 Oct 2016 15:38:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2016 15:38:31 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 05 17:38:27 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1broGu-0001zy-R3 for ged-emacs-devel@m.gmane.org; Wed, 05 Oct 2016 17:38:16 +0200 Original-Received: from localhost ([::1]:49884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1broGt-0001iV-52 for ged-emacs-devel@m.gmane.org; Wed, 05 Oct 2016 11:38:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1broG1-0001gZ-JJ for emacs-devel@gnu.org; Wed, 05 Oct 2016 11:37:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1broFw-0006MS-J3 for emacs-devel@gnu.org; Wed, 05 Oct 2016 11:37:20 -0400 Original-Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]:33145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1broFw-0006MK-C1 for emacs-devel@gnu.org; Wed, 05 Oct 2016 11:37:16 -0400 Original-Received: by mail-pf0-x230.google.com with SMTP id 190so42880488pfv.0 for ; Wed, 05 Oct 2016 08:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=bbfrN9Ihrii5q7i84Hvqv53P5hstXTwl0NrjgvhcaH8=; b=QTnOVXJbmIduWGSfAqr6mBHzK7Dj5LM09jcEW4TznDHG8R1s4HtVyqtBYl19Uszxqe CBHlVs0zBBaM2gKENfzYHICUSCoW/nVm/CG2iOefBPc6aax/yiwag0r5iq7lrq0aaSU4 3SnowphEcy6/ttLiRDU+SGDgW7s3jpX6UJuVAJ9NN6Cnf18bjUZONU22poQBrK978iID /QVjforJAVOMKrXgqeeOfcgmo1CtMPb9KVe1b3P8l9XSF82rOvbi0Ger5w0Rq1Fr7Uhm XU+G1OVD4gfsmVPFWeaAHKi9JD3jFBkYjIm2kgxtC5Q70RTGS0JarkOV71SP8UoIMGZU Z/XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=bbfrN9Ihrii5q7i84Hvqv53P5hstXTwl0NrjgvhcaH8=; b=MAHjrZRncj3XMRux+7LgSxhUuiQRs1vZwPsEAlk4pzXhrl+pejrYRjxdc2q/YuW/Ed bcctPEV6OLe0mAPYqFQVY7wPP8ZxyqNxO9qkDTpdYMJZ8NNuE6FCTUWV6HY0C/la/NQz SbiS96mRv/FEDMPn8mFfT7z4BaLYFw/H8bQN+Um7tDpBOMvdBSaZNazm1Qt04iIRzac5 i/XfDzAt0RHCnkvrRs/DBrl+NwA5IMRnQxADU1L4kJYrPgDS/2QhaZUUXaEHbuqtNtOf UUQCG3WpuFZ02Ug9JiXxTLwvIF7ZkTgUL67i8yghYwpmzG52auL53JIoh/Nr4AOIMzf1 tSXA== X-Gm-Message-State: AA6/9RkUTLiwTaJCf7ONQ3ZdiMV+GCyzSPIR/shEgeKRgDK0YIAb8BMh2dlLQiqAsSjuZA== X-Received: by 10.98.33.23 with SMTP id h23mr16623940pfh.177.1475681835661; Wed, 05 Oct 2016 08:37:15 -0700 (PDT) Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id 137sm28393767pfv.26.2016.10.05.08.37.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Oct 2016 08:37:15 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:208010 Archived-At: On Wed, 5 Oct 2016, Stefan Monnier wrote: >> II) Alternatively, they could be implemented in a lighter >> lib; i guess the natural candidate is seq.el. >> Note that this lib already has `seq-position'. > > I consider seq.el as "core" already. Actually, I also consider > cl-lib as "core". The fact that you have to rite (require <..>) is > fairly secondary. Yes, you are right. Of course, they are core Emacs. What i meant is that it would be nice if people could use that kind of useful functions without face resistances. I saw before in this list people who wanted to use a function from cl-lib or seq.el, and they received objections because that would force that file to require such lib. > I think sooner or later, these libraries will be preloaded (not sure > which of the two will get there first, tho). That sounds interesting. > Also, FWIW, I don't see many uses of these cl/seq-position functions > in Emacs, so I'm not sure how important they are, really. I suspect that one important reason to not appear widely is exactly that in order to use them we need to require the lib to use it. Probably if `member' would be just an alias to `cl-member', we wouldn't see it as many times as we can see it now in Emacs tree. I bet that if we follow the I) above, we will start to see many uses of those functions in the new code.