From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: subtree export title w/ tags Date: Tue, 14 Jan 2014 17:22:04 +0100 Message-ID: <52D5642C.5070907@roklein.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36kq-0007x2-3W for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:22:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W36ki-0002pb-Q1 for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:22:16 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:60354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36ki-0002pL-Gl for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:22:08 -0500 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-orgmode@gnu.org Hi, when I subtree (html-)export a text where the headline has a tag, the title of the exported document includes the tag, e.g. #+begin_src org ** headline :mytag: bla bla bla #+end_src results in #+begin_src html ... headline :mytag: ... #+end_src Is there something I can do, so the tag doesn't end up in the title? Thanks and best regards Robert From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: subtree export title w/ tags Date: Tue, 14 Jan 2014 17:26:09 +0100 Message-ID: <87vbxmfs2m.fsf@bzg.ath.cx> References: <52D5642C.5070907@roklein.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36ok-0002EY-My for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:26:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W36oe-00042U-PG for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:26:18 -0500 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:43314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36oe-00040j-Hn for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:26:12 -0500 Received: by mail-wi0-f174.google.com with SMTP id g10so2848991wiw.13 for ; Tue, 14 Jan 2014 08:26:11 -0800 (PST) In-Reply-To: <52D5642C.5070907@roklein.de> (Robert Klein's message of "Tue, 14 Jan 2014 17:22:04 +0100") 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: Robert Klein Cc: emacs-orgmode@gnu.org Hi Robert, Robert Klein writes: > Is there something I can do, so the tag doesn't end up in the title? You can add the :EXPORT_TITLE: property in the subtree. Still, I think tags should be removed from the title by default, I will look into this. HTH, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: subtree export title w/ tags Date: Wed, 15 Jan 2014 09:49:49 +0100 Message-ID: <86r489bpea.fsf@somewhere.org> References: <52D5642C.5070907@roklein.de> <87vbxmfs2m.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Bastien, Bastien wrote: > Robert Klein writes: > >> Is there something I can do, so the tag doesn't end up in the title? > > You can add the :EXPORT_TITLE: property in the subtree. > > Still, I think tags should be removed from the title by default, > I will look into this. `org-export-with-tags' seems to be the option to do that, nope? =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 org-export-with-tags =E2=94=82 =E2=94=82 If nil, do not export tags, just remove them from headlines. =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Best regards, Seb --=20 Sebastien Vauban From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: subtree export title w/ tags Date: Wed, 15 Jan 2014 12:53:56 +0100 Message-ID: <87k3e14g17.fsf@bzg.ath.cx> References: <52D5642C.5070907@roklein.de> <87vbxmfs2m.fsf@bzg.ath.cx> <86r489bpea.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3P3A-0000FF-IY for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 06:54:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3P32-0002qF-CC for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 06:54:24 -0500 Received: from plane.gmane.org ([80.91.229.3]:39431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3P32-0002qA-4a for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 06:54:16 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W3P30-0003Bf-SQ for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 12:54:14 +0100 In-Reply-To: <86r489bpea.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 15 Jan 2014 09:49:49 +0100") 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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org "Sebastien Vauban" writes: > `org-export-with-tags' seems to be the option to do that, nope? > > ╭──── org-export-with-tags > │ > │ If nil, do not export tags, just remove them from headlines. > ╰──── I think the OP wants to remove tags just from the titles. -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: subtree export title w/ tags Date: Wed, 15 Jan 2014 13:31:42 +0100 Message-ID: <52D67FAE.7090906@roklein.de> References: <52D5642C.5070907@roklein.de> <87vbxmfs2m.fsf@bzg.ath.cx> <86r489bpea.fsf@somewhere.org> <87k3e14g17.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3PeJ-00040e-7w for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 07:32:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3PeA-0008H9-It for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 07:32:47 -0500 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:53518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3PeA-0008Gw-Cc for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 07:32:38 -0500 In-Reply-To: <87k3e14g17.fsf@bzg.ath.cx> 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 , Sebastien Vauban Cc: emacs-orgmode@gnu.org Bastien, Sebastien, thank you both for your help. I'll check out `org-export-with-tags'. I do need the tags, but only in the -export-as- function of a derived exporter. Probably I still can get them. Thanks a lot Best regards Robert On 01/15/2014 12:53 PM, Bastien wrote: > > > "Sebastien Vauban" > writes: > >> `org-export-with-tags' seems to be the option to do that, nope? >> >> ╭──── org-export-with-tags >> │ >> │ If nil, do not export tags, just remove them from headlines. >> ╰──── > > I think the OP wants to remove tags just from the titles. > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: subtree export title w/ tags Date: Sun, 19 Jan 2014 12:08:01 +0100 Message-ID: <52DBB211.7030605@roklein.de> References: <52D5642C.5070907@roklein.de> <87vbxmfs2m.fsf@bzg.ath.cx> <86r489bpea.fsf@somewhere.org> <87k3e14g17.fsf@bzg.ath.cx> <52D67FAE.7090906@roklein.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010805050404020805060701" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4qEo-0001dD-5r for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 06:08:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4qEg-0003uN-RG for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 06:08:22 -0500 In-Reply-To: <52D67FAE.7090906@roklein.de> 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 , Sebastien Vauban Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------010805050404020805060701 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Bastien, Sebastien, `org-export-with-tags' doesn't seem to work at all when a headline is made title of a subtree export. When using the appended configuration and org-file; point on the line "point is here"; I'm subtree exporting using C-c C-e C-s h H and I get #+begin_example ... second heading :mytag: ... #+end_example I suspect the `org-todo-line-regexp' in org-export--get-subtree-options doesn't like/understand tags. Note: I'm rolling my own blog-exporter as a html-derived one (didn't understand org2blog enough to be able to enhance it). For posting a subtree it would be `natural' to use the heading (without tags) as title and tags (if any) as blog tags. Best regards Robert On 01/15/2014 01:31 PM, Robert Klein wrote: > Bastien, Sebastien, > > thank you both for your help. > > I'll check out `org-export-with-tags'. > > I do need the tags, but only in the -export-as- function of a derived > exporter. Probably I still can get them. > > > Thanks a lot > > Best regards > Robert > > > On 01/15/2014 12:53 PM, Bastien wrote: >> >> >> "Sebastien Vauban" >> writes: >> >>> `org-export-with-tags' seems to be the option to do that, nope? >>> >>> ╭──── org-export-with-tags >>> │ >>> │ If nil, do not export tags, just remove them from headlines. >>> ╰──── >> >> I think the OP wants to remove tags just from the titles. >> > > --------------010805050404020805060701 Content-Type: text/plain; charset=UTF-8; name=".emacs" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=".emacs" OyBubyBzdGFydHVwIG1lc3NhZ2UKKHNldHEgaW5oaWJpdC1zdGFydHVwLW1lc3NhZ2UgdCkK Cjs7IEknbSBmZWVsaW5nIHJlbGlnaW91cyBhYm91dCB0aGlzOgooc2V0cS1kZWZhdWx0IGlu ZGVudC10YWJzLW1vZGUgbmlsKQoKOzsgIGFzayB5IG9yIG4gaW5zdGVhZCBvZiB5ZXMgb3Ig bm8KKGZzZXQgJ3llcy1vci1uby1wICd5LW9yLW4tcCkKCjs7IGluZGVudCBhZnRlciBlbnRl cjsgSSB3YW50IHRoaXMgbW9zdCBvZiB0aGUgdGltZS4KKGdsb2JhbC1zZXQta2V5IChrYmQg IlJFVCIpICduZXdsaW5lLWFuZC1pbmRlbnQpCgo7OyB1c2UgZW1hY3Mgd2l0aCBJTUUgKGF2 b2lkICdubyBkZWFkLWFjdXRlJyBlcnJvciBtZXNzYWdlcykKKGxvYWQtbGlicmFyeSAiaXNv LXRyYW5zbCIpCgo7OyBjaGFuZ2UgbnVtYmVyIG9mIG5ld2xpbmVzIGZvciBlbXBhc2l6ZWQg YmxvY2tzCihzZXRxIG9yZy1lbXBoYXNpcy1yZWdleHAtY29tcG9uZW50cwogICAgICAnKCIg XHQoJ1wieyIgIi0gXHQuLDohPzsnXCIpfVxcIiAiIFx0XHJcbixcIiciICIuIiAxMCkpCgoo c2V0cSBvcmctZXhwb3J0LXdpdGgtdGFncyBuaWwpCgooc2V0cSBsb2FkLXBhdGggKGNvbnMg In4vLmVtYWNzLmQvb3JnLW1vZGUvbGlzcCIgbG9hZC1wYXRoKSkKKGFkZC10by1saXN0ICds b2FkLXBhdGggIn4vLmVtYWNzLmQiKQooYWRkLXRvLWxpc3QgJ2F1dG8tbW9kZS1hbGlzdCAn KCJcXC5cXChvcmdcXHxvcmdfYXJjaGl2ZVxcfHR4dFxcKSQiIC4gb3JnLW1vZGUpKQoocmVx dWlyZSAnb3JnLWxvYWRkZWZzKQoKKHNldHEgb3JnLWV4cG9ydC13aXRoLXRhZ3MgbmlsKQoK --------------010805050404020805060701 Content-Type: application/vnd.lotus-organizer; name="tag-test.org" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tag-test.org" IytUSVRMRTogRG9jdW1lbnQgdGl0bGUKIytPUFRJT05TOiB0YWdzOm5pbAoKKiBmaXJzdCBo ZWFkaW5nCmJsYSBibGEgYmxhIGJsYQoKKiBzZWNvbmQgaGVhZGluZyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDpteXRhZzoKYmxhIGJs YSBibGEKCnBvaW50IGlzIGhlcmUKCmJsYSBibGEgYmxhIGJsYSBsb3JlbSBpcHN1bSBkb2xv ciBzaXQgYW1ldCBibGEgYmxhIGJsYQoKKiB0aGlyZCBoZWFkaW5nCkxvcmVtIGlwc3VtIGRv bG9yIHNpdCBhbWV0IGJsYSBibGEgYmxhIHh5enp5IGJsYSBibGEK --------------010805050404020805060701-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: subtree export title w/ tags Date: Sun, 19 Jan 2014 12:19:35 +0100 Message-ID: <87bnz81ans.fsf@gmail.com> References: <52D5642C.5070907@roklein.de> <87vbxmfs2m.fsf@bzg.ath.cx> <86r489bpea.fsf@somewhere.org> <87k3e14g17.fsf@bzg.ath.cx> <52D67FAE.7090906@roklein.de> <52DBB211.7030605@roklein.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4qPP-0003eU-AE for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 06:19:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4qPJ-0006aQ-FH for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 06:19:19 -0500 In-Reply-To: <52DBB211.7030605@roklein.de> (Robert Klein's message of "Sun, 19 Jan 2014 12:08:01 +0100") 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: Robert Klein Cc: Bastien , Sebastien Vauban , emacs-orgmode@gnu.org Hello, Robert Klein writes: > `org-export-with-tags' doesn't seem to work at all when a headline is > made title of a subtree export. > > > When using the appended configuration and org-file; point on the line > "point is here"; I'm subtree exporting using C-c C-e C-s h H and I get > > #+begin_example > ... > > second heading > :mytag: > > > ... > #+end_example > > > I suspect the `org-todo-line-regexp' in org-export--get-subtree-options > doesn't like/understand tags. The current behaviour is to keep tags of the root node when you export a subtree. If you want to get rid of them, you can set an :EXPORT_TITLE: property in the same node. Note that `org-export-with-tags' isn't expected to do anything in that situation. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: subtree export title w/ tags Date: Sun, 19 Jan 2014 16:39:07 +0100 Message-ID: <87sisk9e1w.fsf@bzg.ath.cx> References: <52D5642C.5070907@roklein.de> <87vbxmfs2m.fsf@bzg.ath.cx> <86r489bpea.fsf@somewhere.org> <87k3e14g17.fsf@bzg.ath.cx> <52D67FAE.7090906@roklein.de> <52DBB211.7030605@roklein.de> <87bnz81ans.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4uT2-00058R-A1 for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 10:39:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4uSt-0007ba-P2 for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 10:39:20 -0500 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:65034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4uSt-0007bV-Hz for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 10:39:11 -0500 Received: by mail-wi0-f170.google.com with SMTP id ex4so3629374wid.1 for ; Sun, 19 Jan 2014 07:39:10 -0800 (PST) In-Reply-To: <87bnz81ans.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 19 Jan 2014 12:19:35 +0100") 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: Nicolas Goaziou Cc: Sebastien Vauban , emacs-orgmode@gnu.org, Robert Klein Hi Nicolas and Robert, Nicolas Goaziou writes: > The current behaviour is to keep tags of the root node when you export > a subtree. If you want to get rid of them, you can set an :EXPORT_TITLE: > property in the same node. I think we should only consider the bare heading: we already get rid of the TODO keyword so I see no reason not to get rid of the tags too. I just pushed a fix for this. -- Bastien