From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Crandall Subject: Re: Inhibit converting "--" to "–" Date: Mon, 18 Jun 2012 16:39:34 -0700 Message-ID: References: <87y5nl4i1o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SglXn-0005XC-T7 for emacs-orgmode@gnu.org; Mon, 18 Jun 2012 19:39:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SglXm-0003hK-1Y for emacs-orgmode@gnu.org; Mon, 18 Jun 2012 19:39:39 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:34347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SglXl-0003gj-PZ for emacs-orgmode@gnu.org; Mon, 18 Jun 2012 19:39:37 -0400 Received: by obbtb8 with SMTP id tb8so3421547obb.0 for ; Mon, 18 Jun 2012 16:39:35 -0700 (PDT) In-Reply-To: <87y5nl4i1o.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hello Nicolas, For me, org-e-html-special-string-regexps does not (yet) play well. On Sun, Jun 17, 2012 at 4:47 PM, Nicolas Goaziou wrote: > William Crandall writes: > >> I've not been able to get special-strings working with >> the new exporter, > > I have no problem with > > (add-to-list 'org-e-html-special-string-regexps '("-nd-" . "--")) > > Could you elaborate? I have no problem with special strings > in any back-end so far. -------------------------------------------------- Certainly. If I add that one line to the end of init.el: -------------------------------------------------- Debugger entered--Lisp error: (void-variable org-e-html-special-string-regexps) add-to-list(org-e-html-special-string-regexps ("-nd-" . "--")) [etc.] -------------------------------------------------- And the attempted compile kicks off a renaming error, that I do not understand. That is, if I delete the new line, and try to compile: -------------------------------------------------- byte-compile-file: Renaming: permission denied, g:/dev/bin/emacs/.emacs.d/init.elc16464y, g:/dev/bin/emacs/.emacs.d/init.elc -------------------------------------------------- If I kill emacs, delete all init.elc* files, and restart, byte-compile proceeds without complaint. I've tried to wrap the line in two ways, but neither work: -------------------------------------------------- (eval-after-load 'org (add-to-list 'org-e-html-special-string-regexps '("-nd-" . "--"))) -------------------------------------------------- Same "void-variable" error, and "Renaming: permission denied" error, with multiple init.elc3996DWC, etc. And same if I wrap it like this (void and renaming errors), which is the syntax that works for the old exporter: -------------------------------------------------- (eval-after-load "org" '(setq org-e-html-special-string-regexps (append org-e-html-special-string-regexps '(("-nd-" . "--"))))) -------------------------------------------------- -------------------------------------------------- If I remove all code snippet from init.el, kill emacs, delete all init.elcXXX files, and restart, emacs is fine. But, if I repeatedly test different permutations, emacs hangs trying to open a plain text file, showing no text and a broken scroll bar, and corrupts the desktop file. That is to say, it doesn't (yet) work for me ;). Hope this helps! -BC Org-mode version 7.8.11 (release_7.8.11-80-gfca016) GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) of 2012-06-18 on MARVIN Windows 7