emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-return after an empty description list item gives error
@ 2016-02-11  3:25 Kaushal Modi
  2016-02-11  9:00 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Kaushal Modi @ 2016-02-11  3:25 UTC (permalink / raw)
  To: emacs-org list

[-- Attachment #1: Type: text/plain, Size: 1872 bytes --]

Hi,

I get an error from org-element-context if I have set
org-return-follows-link to t and hit RET after an empty desc list item.
Here is what I mean by that:

===== org buffer =====
- desc123 ::<RET>
<RET>
=====

To better recreate this issue, save the below elisp code to a temp file,
say t.el, and run,

emacs -q -l t.el
(Verify that emacs -q loads the master branch (dev) org-mode version. It
does for me as I install the dev org-mode to "share/emacs/site-lisp/org".)

===== t.el =====
(setq inhibit-startup-screen t)
(setq org-return-follows-link t) ; Commenting this line with mask this bug
(toggle-debug-on-error)
(pop-to-buffer-same-window (get-buffer-create "*org-temp*"))
(org-mode)
(insert "- desc123 ::\n")
(org-return)
=====

On doing so, you should get an error backtrace like below:

=====
Debugger entered--Lisp error: (search-failed "desc123")
  search-forward("desc123" 14)
  org-element-context()
  org-return()
=====

*I do not get this error if I set org-return-follows-link back to its
default value of nil.*

I am using the following org-mode and emacs versions:

=====
Org-mode version 8.3.3 (release_8.3.3-573-ga1d9da @
/home/kmodi/usr_local/apps/6/emacs/emacs-25/share/emacs/site-lisp/org/)

Emacs version: GNU Emacs 25.0.90.1 (x86_64-unknown-linux-gnu, GTK+ Version
2.24.23)
 of 2016-02-10, built using commit 3ad05a0dc46093dd6b8958747a0475b8baba954f.

./configure options:
  --prefix=/home/kmodi/usr_local/apps/6/emacs/emacs-25
'CPPFLAGS=-fgnu89-inline -I/home/kmodi/usr_local/6/include
-I/usr/include/freetype2 -I/usr/include' 'CFLAGS=-ggdb3 -O0'
'CXXFLAGS=-ggdb3 -O0' 'LDFLAGS=-L/home/kmodi/usr_local/6/lib
-L/home/kmodi/usr_local/6/lib64 -ggdb3'

Features:
  XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11
=====

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2708 bytes --]

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

* Re: [BUG] org-return after an empty description list item gives error
  2016-02-11  3:25 [BUG] org-return after an empty description list item gives error Kaushal Modi
@ 2016-02-11  9:00 ` Nicolas Goaziou
  2016-02-11 16:30   ` Kaushal Modi
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2016-02-11  9:00 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: emacs-org list

Hello,

Kaushal Modi <kaushal.modi@gmail.com> writes:

> I get an error from org-element-context if I have set
> org-return-follows-link to t and hit RET after an empty desc list item.
> Here is what I mean by that:
>
> ===== org buffer =====
> - desc123 ::<RET>
> <RET>
> =====
>
> To better recreate this issue, save the below elisp code to a temp file,
> say t.el, and run,
>
> emacs -q -l t.el
> (Verify that emacs -q loads the master branch (dev) org-mode version. It
> does for me as I install the dev org-mode to "share/emacs/site-lisp/org".)
>
> ===== t.el =====
> (setq inhibit-startup-screen t)
> (setq org-return-follows-link t) ; Commenting this line with mask this bug
> (toggle-debug-on-error)
> (pop-to-buffer-same-window (get-buffer-create "*org-temp*"))
> (org-mode)
> (insert "- desc123 ::\n")
> (org-return)
> =====
>
> On doing so, you should get an error backtrace like below:
>
> =====
> Debugger entered--Lisp error: (search-failed "desc123")
>   search-forward("desc123" 14)
>   org-element-context()
>   org-return()
> =====

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

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

* Re: [BUG] org-return after an empty description list item gives error
  2016-02-11  9:00 ` Nicolas Goaziou
@ 2016-02-11 16:30   ` Kaushal Modi
  0 siblings, 0 replies; 3+ messages in thread
From: Kaushal Modi @ 2016-02-11 16:30 UTC (permalink / raw)
  To: emacs-org list

[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]

Thanks for fixing this quickly.

On Thu, Feb 11, 2016 at 3:58 AM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Kaushal Modi <kaushal.modi@gmail.com> writes:
>
> > I get an error from org-element-context if I have set
> > org-return-follows-link to t and hit RET after an empty desc list item.
> > Here is what I mean by that:
> >
> > ===== org buffer =====
> > - desc123 ::<RET>
> > <RET>
> > =====
> >
> > To better recreate this issue, save the below elisp code to a temp file,
> > say t.el, and run,
> >
> > emacs -q -l t.el
> > (Verify that emacs -q loads the master branch (dev) org-mode version. It
> > does for me as I install the dev org-mode to
> "share/emacs/site-lisp/org".)
> >
> > ===== t.el =====
> > (setq inhibit-startup-screen t)
> > (setq org-return-follows-link t) ; Commenting this line with mask this
> bug
> > (toggle-debug-on-error)
> > (pop-to-buffer-same-window (get-buffer-create "*org-temp*"))
> > (org-mode)
> > (insert "- desc123 ::\n")
> > (org-return)
> > =====
> >
> > On doing so, you should get an error backtrace like below:
> >
> > =====
> > Debugger entered--Lisp error: (search-failed "desc123")
> >   search-forward("desc123" 14)
> >   org-element-context()
> >   org-return()
> > =====
>
> Fixed. Thank you.
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 1922 bytes --]

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11  3:25 [BUG] org-return after an empty description list item gives error Kaushal Modi
2016-02-11  9:00 ` Nicolas Goaziou
2016-02-11 16:30   ` Kaushal Modi

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