emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2016-03-02  1:15 Łukasz Gruner
  2016-03-02  2:06 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Łukasz Gruner @ 2016-03-02  1:15 UTC (permalink / raw)
  To: emacs-orgmode

--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.

Emacs  : GNU Emacs 24.5.1 (x86_64-unknown-cygwin)
 of 2015-06-23 on desktop-new
Package: Org-mode version 8.3.4 (8.3.4-5-gdc68d2-elpaplus @
/home/uki/.emacs.d/elpa/org-plus-contrib-20160229/)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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/)]
  2016-03-02  1:15 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/)] Łukasz Gruner
@ 2016-03-02  2:06 ` Kyle Meyer
  2016-03-02  4:30   ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2016-03-02  2:06 UTC (permalink / raw)
  To: Łukasz Gruner; +Cc: emacs-orgmode

Łukasz Gruner <lukasz@gruner.lu> 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 ‘org-get-outline-path’, 2016-03-01).

-- 
Kyle

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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/)]
  2016-03-02  2:06 ` Kyle Meyer
@ 2016-03-02  4:30   ` Kyle Meyer
  0 siblings, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2016-03-02  4:30 UTC (permalink / raw)
  To: Łukasz Gruner; +Cc: emacs-orgmode

Kyle Meyer <kyle@kyleam.com> writes:

[...]

> Thanks for the report.  Nicolas fixed this in 105a446 (Fix return value
> for ‘org-get-outline-path’, 2016-03-01).

Or rather 2971ab6 (Fix ‘org-get-outline-path’, 2016-02-29)

-- 
Kyle

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-02  4:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-02  1:15 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/)] Łukasz Gruner
2016-03-02  2:06 ` Kyle Meyer
2016-03-02  4:30   ` Kyle Meyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).