From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Crandall Subject: Using: org-e-html-special-string-regexps Date: Fri, 8 Jun 2012 15:30:40 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sd7hd-0005md-2B for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 18:30:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sd7ha-00033d-VN for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 18:30:44 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:47993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sd7ha-00033V-MB for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 18:30:42 -0400 Received: by obbwd18 with SMTP id wd18so3842850obb.0 for ; Fri, 08 Jun 2012 15:30:40 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K , emacs-orgmode@gnu.org 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 tags on <>! -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: --------------------------------------------------

Testing: w/ spaces mdash — yes, with spaces Testing: no-spaces mdash\mdashyes, without spaces Testing: my-string mdash—yes, without spaces

-------------------------------------------------- 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]---