emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [BUG] org-return after an empty description list item gives error


From: Kaushal Modi
Subject: [O] [BUG] org-return after an empty description list item gives error
Date: Thu, 11 Feb 2016 03:25:59 +0000

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]