[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Using: org-e-html-special-string-regexps
From: |
William Crandall |
Subject: |
[O] Using: org-e-html-special-string-regexps |
Date: |
Fri, 8 Jun 2012 15:30:40 -0700 |
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]---
- [O] Using: org-e-html-special-string-regexps,
William Crandall <=