From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-back-to-heading with inline tasks above point [9.1.14 (9.1.14-3-geb9955a-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20180924/)] Date: Mon, 05 Nov 2018 21:55:47 +0100 Message-ID: <87a7mn8crw.fsf@nicolasgoaziou.fr> References: <871s809c85.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJluf-0003Ta-Cv for emacs-orgmode@gnu.org; Mon, 05 Nov 2018 15:55:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJluc-0004sn-6K for emacs-orgmode@gnu.org; Mon, 05 Nov 2018 15:55:57 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:42561) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJlua-0004kP-Aa for emacs-orgmode@gnu.org; Mon, 05 Nov 2018 15:55:52 -0500 In-Reply-To: <871s809c85.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> (yantar's message of "Mon, 05 Nov 2018 16:10:02 +0800") 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" To: yantar92@gmail.com Cc: emacs-orgmode@gnu.org Hllo, yantar92@gmail.com writes: > Consider calling =org-back-to-heading= for the following org entry: > > #+begin_src org > * Sample entry > > Some text. > > *************** TODO Inline task > *************** END > > Some more text. > > ->(point)<- > > Yet another piece of text. > #+end_src > > The expected behaviour is that the point moves to the first line of the > entry. > However, the point moves to the end of the inline task. > > Indeed, the wrong behaviour is because =outline-regexp= variable is set > to ="\\*+ "=, which includes inline tasks. This is the desired effect. Use the macro `org-with-limited-levels' to ignore headlines. Regards, -- Nicolas Goaziou