From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG] org-return after an empty description list item gives error Date: Thu, 11 Feb 2016 10:00:32 +0100 Message-ID: <87mvr7y633.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTn57-0003ms-Tc for emacs-orgmode@gnu.org; Thu, 11 Feb 2016 03:58:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTn54-0002CL-NP for emacs-orgmode@gnu.org; Thu, 11 Feb 2016 03:58:33 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:32910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTn54-0002C7-Gt for emacs-orgmode@gnu.org; Thu, 11 Feb 2016 03:58:30 -0500 In-Reply-To: (Kaushal Modi's message of "Thu, 11 Feb 2016 03:25:59 +0000") 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: Kaushal Modi Cc: emacs-org list 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