emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: [BUG] org-return after an empty description list item gives error
Date: Thu, 11 Feb 2016 10:00:32 +0100	[thread overview]
Message-ID: <87mvr7y633.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAFyQvY2Xx+6iraD_LBdbJzYTfbaB+SgRE4swcB1J21Lzop1p+w@mail.gmail.com> (Kaushal Modi's message of "Thu, 11 Feb 2016 03:25:59 +0000")

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

  reply	other threads:[~2016-02-11  8:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=87mvr7y633.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /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).