emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Crandall <bc3141592@gmail.com>
To: Jambunathan K <kjambunathan@gmail.com>, emacs-orgmode@gnu.org
Cc: Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Using: org-e-html-special-string-regexps
Date: Fri, 8 Jun 2012 15:30:40 -0700	[thread overview]
Message-ID: <CAENLK5WVnTML9RGnj2i-6T1ushPH_ufZzjm2OhwBQ9D2iWKgtQ@mail.gmail.com> (raw)

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 &mdash; 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 &mdash; yes, with spaces
Testing: no-spaces mdash\mdashyes, without spaces
Testing: my-string mdash&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-" . "&mdash;")))))

;; For new exporter // ERROR
(eval-after-load "org"
  '(setq org-e-html-special-string-regexps
	 (append org-e-html-special-string-regexps
		 '(("-MDASH-" . "&mdash;")))))
--------------------------------------------------

Debugger:
--------------------------------------------------
Debugger entered--Lisp error: (void-variable org-e-html-special-string-regexps)
  (append org-e-html-special-string-regexps (quote (("-MDASH-" . "&mdash;"))))
  (setq org-e-html-special-string-regexps
  	(append org-e-html-special-string-regexps (quote
	(("-MDASH-" . "&mdash;")))))

[...]
------------------------------------------[end]---

             reply	other threads:[~2012-06-08 22:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08 22:30 William Crandall [this message]
2012-06-08 22:38 ` Using: org-e-html-special-string-regexps Nicolas Goaziou
2012-06-08 23:46   ` William Crandall

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAENLK5WVnTML9RGnj2i-6T1ushPH_ufZzjm2OhwBQ9D2iWKgtQ@mail.gmail.com \
    --to=bc3141592@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    --cc=n.goaziou@gmail.com \
    /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 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).