From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: [BUG] org-return after an empty description list item gives error
Date: Thu, 11 Feb 2016 03:25:59 +0000 [thread overview]
Message-ID: <CAFyQvY2Xx+6iraD_LBdbJzYTfbaB+SgRE4swcB1J21Lzop1p+w@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2016-02-11 3:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 3:25 Kaushal Modi [this message]
2016-02-11 9:00 ` [BUG] org-return after an empty description list item gives error Nicolas Goaziou
2016-02-11 16:30 ` Kaushal Modi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFyQvY2Xx+6iraD_LBdbJzYTfbaB+SgRE4swcB1J21Lzop1p+w@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).