From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Goaziou Newsgroups: gmane.emacs.devel Subject: Re: org-macs ignoring stock functionality Date: Mon, 19 Nov 2018 19:30:23 +0100 Message-ID: <87ftvwex8g.fsf@nicolasgoaziou.fr> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1542652113 11087 195.159.176.226 (19 Nov 2018 18:28:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2018 18:28:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: emacs-devel@gnu.org To: Sam Steingold Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 19 19:28:29 2018 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 1gOoHc-0002mU-Nd for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2018 19:28:28 +0100 Original-Received: from localhost ([::1]:58552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOoJi-0005l9-SL for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2018 13:30:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOoJd-0005l4-J4 for emacs-devel@gnu.org; Mon, 19 Nov 2018 13:30:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOoJZ-00029k-OB for emacs-devel@gnu.org; Mon, 19 Nov 2018 13:30:33 -0500 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:35563) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gOoJY-00025V-Q1; Mon, 19 Nov 2018 13:30:29 -0500 X-Originating-IP: 185.131.40.67 Original-Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id DE57B240007; Mon, 19 Nov 2018 18:30:26 +0000 (UTC) In-Reply-To: (Sam Steingold's message of "Mon, 19 Nov 2018 09:13:23 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.193 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:231235 Archived-At: Hello, Sam Steingold writes: > I do not use org, but it > accidentally(https://emacs.stackexchange.com/a/46083/795) came to my > attention that org-macs.el duplicates some emacs stock functionality: > > 1. org-split-string - ignores split-string-default-separators; can > probably be simplified to (split-string string separators nil t) `org-split-string' and `split-string' are slightly different. The former ignores separators at the beginning and at the end of the string, not the latter. At some point, it used `split-string', but it happened to be too slow for a core Org function. > 2. org-current-line - can be replaced with line-number-at-pos Indeed, it could be replaced by (line-number-at-pos nil t). I will obsolete it in Org 9.2. > 3. org-goto-line - can be replaced with goto-line Function `goto-line' messes with the mark. From its docstring, This function is for interactive use only; in Lisp code use =E2=80=98forward-line=E2=80=99 instead. and This function is usually the wrong thing to use in a Lisp program. So, no, `goto-line' cannot replace `org-goto-line'. Regards, --=20 Nicolas Goaziou