* Using: org-e-html-special-string-regexps
@ 2012-06-08 22:30 William Crandall
2012-06-08 22:38 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: William Crandall @ 2012-06-08 22:30 UTC (permalink / raw)
To: Jambunathan K, emacs-orgmode; +Cc: Nicolas Goaziou
Hello Jambunathan,
I tried your suggestion of swapping
-org-e-html-special-string-regexps- for
-org-export-html-special-string-regexps-
to add my own strings.
I want this for an — between words /without/
any spaces; the \mdash entity requires spaces.
Results: The old exporter works as expected (below).
The new exporter leads to an error mode I've not seen.
With a new org-e-html-special-string-regexps code block
in init.el (below), emacs reports:
--------------------------------------------------
Wrote g:/dev/bin/emacs/.emacs.d/init.el
Compiling g:/dev/bin/emacs/.emacs.d/init.el...done
byte-compile-file: Renaming: permission denied,
g:/dev/bin/emacs/.emacs.d/init.elc4856ijc,
g:/dev/bin/emacs/.emacs.d/init.elc
--------------------------------------------------
Each attempted compile generates a new init.elcXXXXX.
I've never seen this before. Is it a "known error"?
Attempts to use org-e-html-special-string-regexps
naturally fail (see bottom).
Any suggestions?
Thanks again, for this, and for the </a> tags on <<targets>>!
-BC
Org-mode: 7.8.11 (release_7.8.11-55-g3f0f87)
Emacs: 24.1.50.1
Windows 7
--------------------------------------------------
--------------------------------------------------
org input:
--------------------------------------------------
Testing: w/ spaces mdash \mdash yes, with spaces
Testing: no-spaces mdash\mdashyes, without spaces
Testing: my-string mdash-MDASH-yes, without spaces
--------------------------------------------------
Old output:
--------------------------------------------------
<p>
Testing: w/ spaces mdash — yes, with spaces
Testing: no-spaces mdash\mdashyes, without spaces
Testing: my-string mdash—yes, without spaces
</p>
--------------------------------------------------
Code in init.el:
--------------------------------------------------
;; For old exporter // WORKS
(eval-after-load "org"
'(setq org-export-html-special-string-regexps
(append org-export-html-special-string-regexps
'(("-MDASH-" . "—")))))
;; For new exporter // ERROR
(eval-after-load "org"
'(setq org-e-html-special-string-regexps
(append org-e-html-special-string-regexps
'(("-MDASH-" . "—")))))
--------------------------------------------------
Debugger:
--------------------------------------------------
Debugger entered--Lisp error: (void-variable org-e-html-special-string-regexps)
(append org-e-html-special-string-regexps (quote (("-MDASH-" . "—"))))
(setq org-e-html-special-string-regexps
(append org-e-html-special-string-regexps (quote
(("-MDASH-" . "—")))))
[...]
------------------------------------------[end]---
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using: org-e-html-special-string-regexps
2012-06-08 22:30 Using: org-e-html-special-string-regexps William Crandall
@ 2012-06-08 22:38 ` Nicolas Goaziou
2012-06-08 23:46 ` William Crandall
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2012-06-08 22:38 UTC (permalink / raw)
To: William Crandall; +Cc: emacs-orgmode, Jambunathan K
Hello,
William Crandall <bc3141592@gmail.com> writes:
> I want this for an — between words /without/
> any spaces; the \mdash entity requires spaces.
You may use \mdash{} like in:
a\mdash{}b
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using: org-e-html-special-string-regexps
2012-06-08 22:38 ` Nicolas Goaziou
@ 2012-06-08 23:46 ` William Crandall
0 siblings, 0 replies; 3+ messages in thread
From: William Crandall @ 2012-06-08 23:46 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode, Jambunathan K
So you can!
Splendid.
Thanks,
-BC
On Fri, Jun 8, 2012 at 3:38 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> Hello,
>
> William Crandall <bc3141592@gmail.com> writes:
>
>> I want this for an — between words /without/
>> any spaces; the \mdash entity requires spaces.
>
> You may use \mdash{} like in:
>
> a\mdash{}b
>
>
> Regards,
>
> --
> Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-08 23:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-08 22:30 Using: org-e-html-special-string-regexps William Crandall
2012-06-08 22:38 ` Nicolas Goaziou
2012-06-08 23:46 ` William Crandall
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).