[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] No title in org-export-as-odt
From: |
Bastien |
Subject: |
Re: [O] [PATCH] No title in org-export-as-odt |
Date: |
Wed, 16 Apr 2014 16:38:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Hi Brady,
Brady Trainor <address@hidden> writes:
> I wanted to return to this and attempt it, here is my first patch ever:
Thanks,
> diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
> index da2ca3f..8c7f0fe 100644
> --- a/lisp/ox-odt.el
> +++ b/lisp/ox-odt.el
> @@ -1491,7 +1491,7 @@ original parsed data. INFO is a plist holding export
> options."
> (goto-char (match-beginning 0))
>
> ;; Preamble - Title, Author, Date etc.
> - (insert
> + (ignore
> (let* ((title (org-export-data (plist-get info :title) info))
> (author (and (plist-get info :with-author)
> (let ((auth (plist-get info :author)))
The way not to insert a title is simply to add an empty title like this:
#+TITLE:
Otherwise, Org falls back on the file name.
> I installed a fresh version of org-mode from Elpa or Melpa before doing
> this. (I am just now looking a little into the maint branch.)
>
> In the long-long run, when I go to insert the code, I wonder why we don't
> make removing the title an option in ox.el.
This could be done with a new `org-export-with-title' option but I
would rather stick to the current way of doing it (an empty value
for #+TITLE:).
Thanks anyway for the patches,
--
Bastien
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] [PATCH] No title in org-export-as-odt,
Bastien <=