From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Bug: `org-get-outline-path' fails on empty heading [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /home/uki/.emacs.d/elpa/org-plus-contrib-20160229/)] Date: Tue, 01 Mar 2016 21:06:03 -0500 Message-ID: <87egbtpras.fsf@kyleam.com> References: <1456881332.3349742.536864642.320EB13D@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aawBC-0002Xs-CU for emacs-orgmode@gnu.org; Tue, 01 Mar 2016 21:06:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aawB9-0002ht-6t for emacs-orgmode@gnu.org; Tue, 01 Mar 2016 21:06:22 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:59450 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aawB8-0002hZ-Qs for emacs-orgmode@gnu.org; Tue, 01 Mar 2016 21:06:19 -0500 In-Reply-To: <1456881332.3349742.536864642.320EB13D@webmail.messagingengine.com> (=?utf-8?Q?=22=C5=81ukasz?= Gruner"'s message of "Wed, 02 Mar 2016 02:15:32 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?=C5=81ukasz?= Gruner Cc: emacs-orgmode@gnu.org =C5=81ukasz Gruner writes: > --text follows this line-- > > 1) create a new headline and don't write anything else. > 2) M-x eval-expression and type (org-get-outline-path) > 3) this fails with the following stacktrace: > Debugger entered--Lisp error: (wrong-type-argument arrayp nil) > replace-regexp-in-string("\\[[0-9]+%\\]\\|\\[[0-9]+/[0-9]+\\]" "" nil) > org--get-outline-path-1(nil) > org-get-outline-path() > eval((org-get-outline-path) nil) > eval-expression((org-get-outline-path) nil) > call-interactively(eval-expression nil nil) > command-execute(eval-expression) > > in org--get-outline-path-1 the line (org-match-string-no-properties 4) > returns nil. Thanks for the report. Nicolas fixed this in 105a446 (Fix return value for =E2=80=98org-get-outline-path=E2=80=99, 2016-03-01). --=20 Kyle