From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: [BUG] org-return after an empty description list item gives error Date: Thu, 11 Feb 2016 16:30:09 +0000 Message-ID: References: <87mvr7y633.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b417921f222f8052b81108a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTu8L-0007kF-9W for emacs-orgmode@gnu.org; Thu, 11 Feb 2016 11:30:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTu8K-00084R-0B for emacs-orgmode@gnu.org; Thu, 11 Feb 2016 11:30:21 -0500 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:36615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTu8J-00084C-Ow for emacs-orgmode@gnu.org; Thu, 11 Feb 2016 11:30:19 -0500 Received: by mail-ob0-x235.google.com with SMTP id ba1so80569960obb.3 for ; Thu, 11 Feb 2016 08:30:19 -0800 (PST) In-Reply-To: <87mvr7y633.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-org list --047d7b417921f222f8052b81108a Content-Type: text/plain; charset=UTF-8 Thanks for fixing this quickly. On Thu, Feb 11, 2016 at 3:58 AM Nicolas Goaziou wrote: > Hello, > > Kaushal Modi 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 :: > > > > ===== > > > > 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 > --047d7b417921f222f8052b81108a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for fixing this quickly.

On Thu, Feb 11, 2016 at 3:58 AM Nicolas Goaziou &l= t;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:
>
> =3D=3D=3D=3D=3D org buffer =3D=3D=3D=3D=3D
> - desc123 ::<RET>
> <RET>
> =3D=3D=3D=3D=3D
>
> To better recreate this issue, save the below elisp code to a temp fil= e,
> 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-li= sp/org".)
>
> =3D=3D=3D=3D=3D t.el =3D=3D=3D=3D=3D
> (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)
> =3D=3D=3D=3D=3D
>
> On doing so, you should get an error backtrace like below:
>
> =3D=3D=3D=3D=3D
> Debugger entered--Lisp error: (search-failed "desc123")
>=C2=A0 =C2=A0search-forward("desc123" 14)
>=C2=A0 =C2=A0org-element-context()
>=C2=A0 =C2=A0org-return()
> =3D=3D=3D=3D=3D

Fixed. Thank you.

Regards,

--
Nicolas Goaziou
--047d7b417921f222f8052b81108a--