emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: 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 16:30:09 +0000	[thread overview]
Message-ID: <CAFyQvY0=0xUCWUxJBWT1Y6FKB=U5LkORyM0rsb39VVCXcFXkRQ@mail.gmail.com> (raw)
In-Reply-To: <87mvr7y633.fsf@nicolasgoaziou.fr>

[-- 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 --]

      reply	other threads:[~2016-02-11 16:30 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
2016-02-11 16:30   ` Kaushal Modi [this message]

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='CAFyQvY0=0xUCWUxJBWT1Y6FKB=U5LkORyM0rsb39VVCXcFXkRQ@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).