From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: ANN: org-sticky-header Date: Sat, 22 Apr 2017 17:06:14 -0700 Message-ID: References: <87k26itxex.fsf@alphapapa.net> <878tmxl3ix.fsf@alphapapa.net> <87tw5kmjob.fsf@alphapapa.net> <87pog8m6af.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d252l-00051d-Jv for emacs-orgmode@gnu.org; Sat, 22 Apr 2017 20:06:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d252g-00079O-LI for emacs-orgmode@gnu.org; Sat, 22 Apr 2017 20:06:23 -0400 Received: from iport-acv6-out.ucsd.edu ([132.239.0.13]:11297) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1d252g-00076u-4c for emacs-orgmode@gnu.org; Sat, 22 Apr 2017 20:06:18 -0400 In-Reply-To: <87pog8m6af.fsf@alphapapa.net> 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: Adam Porter Cc: emacs-orgmode@gnu.org On Wed, 19 Apr 2017, Adam Porter wrote: > This should now be fixed. Thanks! I have encountered a bug when trying to export a subtree containing an inlinetask just after the headline/metadata and a src block further down. Here is an ECM: --8<---------------cut here---------------start------------->8--- * a Headline *************** my task Do this well! *************** END #+NAME: my-model #+BEGIN_src latex :results latex \begin{displaymath} y = x + z \end{displaymath} #+END_src --8<---------------cut here---------------end--------------->8--- Put the cursor under the headline (at the end of buffer, say) then type C-c C-e C-s l L y and without org-sticky-header mode you get an exported buffer. With org-sticky-header mode, it just hangs after the 'y' is typed. Also, if you put point at the beginning of the second line (the start of the inlinetask) and type : M-: (narrow-to-region (point) (point-max)) it will narrow if o-s-h mode is off, but hang if it is on. Adding a newline after the headline `cures' the export problem. However, if point is at the start of an inlinetask, then emacs will hang when running the narrow-to-region snippet above regardless of newlines. p.s. I am using commit b82b4f210e... (newest at this time) Chuck