From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Tags included in subtree export title despite tags:nil in header Date: Sat, 29 Oct 2011 16:48:32 +0200 Message-ID: <20111029164832.1c83474b@kuru.homelinux.net> References: <83vcra2493.fsf@yahoo.it> <20111027134220.510ec38b@kuru.homelinux.net> <20111027140516.2f6d5508@kuru.homelinux.net> <87fwic6j37.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/q8u=kQk+HXOMVk/oIxlmjf2" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKAD9-0002ta-6J for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 10:48:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKAD7-0001lL-Q9 for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 10:48:39 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:48839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKAD7-0001lB-EM for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 10:48:37 -0400 Received: by bkbzv15 with SMTP id zv15so149887bkb.0 for ; Sat, 29 Oct 2011 07:48:36 -0700 (PDT) In-Reply-To: <87fwic6j37.fsf@gnu.org> 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: Bastien Cc: org-mode mailing list --MP_/q8u=kQk+HXOMVk/oIxlmjf2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Bastien, On Sat, 29 Oct 2011 15:08:44 +0200 Bastien wrote: > Hi Suvayu, > > Suvayu Ali writes: > > > org-exp.el:2155:(defun org-export-get-title-from-subtree () > > Can you instrument this function with edbug-defun and see what might > be wrong with it? > Lines: 2170: (looking-at org-todo-line-regexp) 2171: (setq title (match-string 3)) I tried using edebug-defun on the above function. I see that it reads the title _with the tags_ no matter what are in the export options. With the attached minimal test file, and starting Emacs as: $ emacs -Q -l ~/.emacs.d/minimal-org.el subtree-test.org I could export the entire file to html correctly (meaning the subtree with the noexport tag is exported correctly). But When exporting the subtree to pdf the noexport tag is included in the presentation title. > I tried this file: > ... > > and exporting the subtree named "beamer :noexport" uses the correct > title here, i.e. "beamertitle". > Sorry I should have provided an example file in the first place. I am not setting the EXPORT_TITLE property. The bug is the tags:nil option is not respected whether it is present in the file header or it is set by the EXPORT_OPTIONS property for the exported subtree. This is puzzling since other export options (e.g. ^:{}) is respected irrespective of whether it is present in the file header or the EXPORT_OPTIONS property. > So I can't reproduce this... > I hope this clearly describes the bug. -- Suvayu Open source is the future. It sets us free. --MP_/q8u=kQk+HXOMVk/oIxlmjf2 Content-Type: text/plain Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=subtree-test.org IytUSVRMRTogICAgIFN1YnRyZWUgZXhwb3J0IGJ1Zw0KIytBVVRIT1I6ICAgIFN1dmF5dSBBbGkN CiMrRU1BSUw6ICAgICANCiMrREFURTogICAgICAyMDExLTEwLTI5IEZyaQ0KIytERVNDUklQVElP TjoNCiMrS0VZV09SRFM6DQojK0xBTkdVQUdFOiAgZW4NCiMrT1BUSU9OUzogICBIOjMgbnVtOm5p bCB0b2M6dCBcbjpuaWwgQDp0IDo6dCB8OnQgXjp7fSAtOnQgZjp0ICo6dCA8OnQNCiMrT1BUSU9O UzogICBUZVg6dCBMYVRlWDp0IHNraXA6bmlsIGQ6bmlsIHRvZG86dCBwcmk6bmlsIHRhZ3M6bmls DQojK0VYUE9SVF9TRUxFQ1RfVEFHUzogZXhwb3J0DQojK0VYUE9SVF9FWENMVURFX1RBR1M6IG5v ZXhwb3J0DQoNCg0KKiBUb3AgbGV2ZWwgaGVhZGVyDQoNCklycmVzcGVjd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u=kQk+HXOMVk/oIxlmjf2 Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=subtree-test.tex % Created 2011-10-29 Sat 16:38 \documentclass[smaller]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \providecommand{\alert}[1]{\textbf{#1}} \title{Subtree export tags in title bug \textbf{:noexport:}} \author{Suvayu Ali} \date{29 Oct 2011} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs Org-mode version 7.7}} \begin{document} \maketitle \begin{frame} \frametitle{Subscript/Superscript} \label{sec-1} \begin{itemize} \item Subscript/Superscript within braces: B$^{0}$$_{s}$ \item Subscript/Superscript without braces: B\^{}0\_{}s \end{itemize} \end{frame} \begin{frame} \frametitle{Acknowledgements} \label{sec-2} \begin{itemize} \item Thanks to XYZ, Foo and Bar \end{itemize} \end{frame} \end{document} --MP_/q8u=kQk+HXOMVk/oIxlmjf2--