From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Allow more export options to be controlled per-subtree
Date: Thu, 28 Sep 2017 18:40:37 +0000 [thread overview]
Message-ID: <CAFyQvY0d80z_4TXtgfwknm3-PvZFgv2+-RXRA7ho8Yos5rVhNQ@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY0D1UqRsAv_Zr31GtwLJxJw=AQ-F3i5yX=FK1eJc_FWGg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]
On Thu, Sep 28, 2017 at 1:28 PM Kaushal Modi <kaushal.modi@gmail.com> wrote:
> .. and so on, and then one can have
>
> :EXPORT_WITH_EMPHASIZE: t
>
> or
>
> :EXPORT_WITH_EMPHASIZE:
>
> in the subtree property.
>
> Is there a reason why this support wasn't added in the first place?
> (Or does a method already exist to allow me to do the above?)
>
> I can work on a patch if it's OK to enable this functionality.
>
From a quick testing, this works:
diff --git a/lisp/ox.el b/lisp/ox.el
index 4d3d7afb9d6..473608e82b2 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -119,7 +119,7 @@
(:with-date nil "date" org-export-with-date)
(:with-drawers nil "d" org-export-with-drawers)
(:with-email nil "email" org-export-with-email)
- (:with-emphasize nil "*" org-export-with-emphasize)
+ (:with-emphasize "EXPORT_WITH_EMPHASIZE" "*" org-export-with-emphasize)
(:with-entities nil "e" org-export-with-entities)
(:with-fixed-width nil ":" org-export-with-fixed-width)
(:with-footnotes nil "f" org-export-with-footnotes)
@@ -2924,7 +2924,7 @@ returned by the function."
?\s)))))
;; ... emphasis...
((bold italic strike-through underline)
- (and (not (plist-get info :with-emphasize))
+ (and (not (org-string-nw-p (plist-get info :with-emphasize)))
(let ((marker (cl-case (org-element-type datum)
(bold "*")
(italic "/")
I can have the same done for all options in a final patch.
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 2744 bytes --]
next prev parent reply other threads:[~2017-09-28 18:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-28 17:28 Allow more export options to be controlled per-subtree Kaushal Modi
2017-09-28 18:40 ` Kaushal Modi [this message]
2017-09-28 18:47 ` Nicolas Goaziou
2017-09-28 18:59 ` Kaushal Modi
2017-09-28 19:19 ` Nicolas Goaziou
2017-09-28 19:25 ` Kaushal Modi
2017-09-30 4:59 ` Kaushal Modi
2017-09-30 5:44 ` Amos Bird
2017-09-30 12:13 ` Kaushal Modi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFyQvY0d80z_4TXtgfwknm3-PvZFgv2+-RXRA7ho8Yos5rVhNQ@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.