* Re: Inhibit converting "--" to "–" @ 2012-06-17 3:15 William Crandall 2012-06-17 23:47 ` Nicolas Goaziou 0 siblings, 1 reply; 12+ messages in thread From: William Crandall @ 2012-06-17 3:15 UTC (permalink / raw) To: kbkbkbkb1; +Cc: emacs-orgmode Kai, With the old exporter, you could make your own special-string and convert it. In init.el: -------------------------------------------------- ;; For old exporter: C-c C-e h (eval-after-load "org" '(setq org-export-html-special-string-regexps (append org-export-html-special-string-regexps '(("-nd-" . "--"))))) -------------------------------------------------- I've not been able to get special-strings working with the new exporter, but it should be something like: -------------------------------------------------- ;; For new exporter (but not yet) (eval-after-load "org" '(setq org-e-html-special-string-regexps (append org-e-html-special-string-regexps '(("-nd-" . "--"))))) -------------------------------------------------- HTH -BC ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-17 3:15 Inhibit converting "--" to "–" William Crandall @ 2012-06-17 23:47 ` Nicolas Goaziou 2012-06-18 23:39 ` William Crandall 0 siblings, 1 reply; 12+ messages in thread From: Nicolas Goaziou @ 2012-06-17 23:47 UTC (permalink / raw) To: William Crandall; +Cc: kbkbkbkb1, emacs-orgmode Hello, William Crandall <bc3141592@gmail.com> writes: > I've not been able to get special-strings working with > the new exporter, Could you elaborate? I have no problem with special strings in any back-end so far. > but it should be something like: > > -------------------------------------------------- > ;; For new exporter (but not yet) > (eval-after-load "org" > '(setq org-e-html-special-string-regexps > (append org-e-html-special-string-regexps > '(("-nd-" . "--"))))) > -------------------------------------------------- I have no problem with (add-to-list 'org-e-html-special-string-regexps '("-nd-" . "--")) Regards, -- Nicolas Goaziou ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-17 23:47 ` Nicolas Goaziou @ 2012-06-18 23:39 ` William Crandall 2012-06-19 0:04 ` Nicolas Goaziou 0 siblings, 1 reply; 12+ messages in thread From: William Crandall @ 2012-06-18 23:39 UTC (permalink / raw) To: Nicolas Goaziou; +Cc: emacs-orgmode 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 <n.goaziou@gmail.com> wrote: > William Crandall <bc3141592@gmail.com> 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-18 23:39 ` William Crandall @ 2012-06-19 0:04 ` Nicolas Goaziou 2012-06-19 0:39 ` William Crandall 0 siblings, 1 reply; 12+ messages in thread From: Nicolas Goaziou @ 2012-06-19 0:04 UTC (permalink / raw) To: William Crandall; +Cc: emacs-orgmode Hello, William Crandall <bc3141592@gmail.com> writes: > 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.] > -------------------------------------------------- You need to require `org-e-html' first. > 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. this is (eval-after-load 'org-e-html ...). Be sure contrib directory is in your load-path, though. Regards, -- Nicolas Goaziou ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-19 0:04 ` Nicolas Goaziou @ 2012-06-19 0:39 ` William Crandall 2012-06-19 0:42 ` Nicolas Goaziou 0 siblings, 1 reply; 12+ messages in thread From: William Crandall @ 2012-06-19 0:39 UTC (permalink / raw) To: Nicolas Goaziou; +Cc: emacs-orgmode Hello Nicolas, On Mon, Jun 18, 2012 at 5:04 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote: > You need to require `org-e-html' first. Well, that was easy. It works fine now. Thanks. >> Same "void-variable" error, and "Renaming: permission denied" >> error, with multiple init.elc3996DWC, etc. > > this is (eval-after-load 'org-e-html ...). Could you elaborate, or point me to some docs? Thanks again, -BC ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-19 0:39 ` William Crandall @ 2012-06-19 0:42 ` Nicolas Goaziou 2012-06-19 1:35 ` William Crandall 0 siblings, 1 reply; 12+ messages in thread From: Nicolas Goaziou @ 2012-06-19 0:42 UTC (permalink / raw) To: William Crandall; +Cc: emacs-orgmode Hello, William Crandall <bc3141592@gmail.com> writes: > On Mon, Jun 18, 2012 at 5:04 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote: > >> You need to require `org-e-html' first. > > Well, that was easy. It works fine now. Thanks. > >>> Same "void-variable" error, and "Renaming: permission denied" >>> error, with multiple init.elc3996DWC, etc. >> >> this is (eval-after-load 'org-e-html ...). > > Could you elaborate, or point me to some docs? That's on the same basis as above. Evaluating your code once org.el has been loaded is too early. You need to ensure `org-e-html' feature has been provided first. Thus, (eval-after-load "org-e-html" ...) is more appropriate than (eval-after-load "org" ...). Regards, -- Nicolas Goaziou ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-19 0:42 ` Nicolas Goaziou @ 2012-06-19 1:35 ` William Crandall 0 siblings, 0 replies; 12+ messages in thread From: William Crandall @ 2012-06-19 1:35 UTC (permalink / raw) To: Nicolas Goaziou; +Cc: emacs-orgmode Hello, On Mon, Jun 18, 2012 at 5:42 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote: > William Crandall <bc3141592@gmail.com> writes: >>> this is (eval-after-load 'org-e-html ...). >> >> Could you elaborate, or point me to some docs? > > That's on the same basis as above. Evaluating your code once org.el has > been loaded is too early. You need to ensure `org-e-html' feature has > been provided first. > > Thus, (eval-after-load "org-e-html" ...) is more appropriate than > (eval-after-load "org" ...). Ah, got it. All is clear now. Thanks, -BC ^ permalink raw reply [flat|nested] 12+ messages in thread
* Inhibit converting "--" to "–" @ 2012-06-16 23:14 Tsunenobu Kai 2012-06-17 1:03 ` Michael Hannon 0 siblings, 1 reply; 12+ messages in thread From: Tsunenobu Kai @ 2012-06-16 23:14 UTC (permalink / raw) To: emacs-orgmode ML Hello everyone, When I export a org file to html, string "--" in org file is converted to "–" in html. I want to display "--" verbatim, so could you tell me how to inhibit converting "--"? Thanks, sorry for stupid question -- Tsunenobu Kai ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-16 23:14 Tsunenobu Kai @ 2012-06-17 1:03 ` Michael Hannon 2012-06-17 2:11 ` Tsunenobu Kai 0 siblings, 1 reply; 12+ messages in thread From: Michael Hannon @ 2012-06-17 1:03 UTC (permalink / raw) To: kbkbkbkb1@gmail.com, emacs-orgmode ML > When I export a org file to html, string "--" in org file is converted to > "–" in html. > > I want to display "--" verbatim, so could you tell me how to inhibit > converting "--"? What happens if you enclose the two dashes in equal signs? As: =--= -- Mike ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-17 1:03 ` Michael Hannon @ 2012-06-17 2:11 ` Tsunenobu Kai 2012-06-17 2:18 ` Nick Dokos 0 siblings, 1 reply; 12+ messages in thread From: Tsunenobu Kai @ 2012-06-17 2:11 UTC (permalink / raw) To: Michael Hannon; +Cc: emacs-orgmode ML Thank you for your response, Mike. At Sat, 16 Jun 2012 18:03:03 -0700 (PDT), Michael Hannon wrote: > What happens if you enclose the two dashes in equal signs? As: > > =--= I tried exporting =--=, then =--= is unfortunately converted to =–= in html. Is there any other way? If possible, I want to control it with export options in a org file rather than markup rules. Best regards, Tsunenobu Kai ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-17 2:11 ` Tsunenobu Kai @ 2012-06-17 2:18 ` Nick Dokos 2012-06-17 3:04 ` Tsunenobu Kai 0 siblings, 1 reply; 12+ messages in thread From: Nick Dokos @ 2012-06-17 2:18 UTC (permalink / raw) To: kbkbkbkb1; +Cc: Michael Hannon, emacs-orgmode ML Tsunenobu Kai <kbkbkbkb1@gmail.com> wrote: > Thank you for your response, Mike. > > At Sat, 16 Jun 2012 18:03:03 -0700 (PDT), > Michael Hannon wrote: > > What happens if you enclose the two dashes in equal signs? As: > > > > =--= > I tried exporting =--=, then =--= is unfortunately converted to =–= > in html. Is there any other way? > Are you sure? In my case, both =--= and ~--~ get exported to HTML as <code>--</code> with both the old and the new exporter. > If possible, I want to control it with export options in a > org file rather than markup rules. > I don't think that's possible. Nick > Best regards, > Tsunenobu Kai > > > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–" 2012-06-17 2:18 ` Nick Dokos @ 2012-06-17 3:04 ` Tsunenobu Kai 0 siblings, 0 replies; 12+ messages in thread From: Tsunenobu Kai @ 2012-06-17 3:04 UTC (permalink / raw) To: nicholas.dokos; +Cc: Michael Hannon, emacs-orgmode ML (2012/06/17 11:18), Nick Dokos wrote: > Are you sure? In my case, both =--= and ~--~ get exported to HTML as > <code>--</code> with both the old and the new exporter. I'm sorry I made a mistake. I exported "=--=help" by mistake, and then it was converted "–help". "=--help=" gets exported to HTML as "--help" and that's what I want to do. Thank you for your help, Kai ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-06-19 1:35 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-06-17 3:15 Inhibit converting "--" to "–" William Crandall 2012-06-17 23:47 ` Nicolas Goaziou 2012-06-18 23:39 ` William Crandall 2012-06-19 0:04 ` Nicolas Goaziou 2012-06-19 0:39 ` William Crandall 2012-06-19 0:42 ` Nicolas Goaziou 2012-06-19 1:35 ` William Crandall -- strict thread matches above, loose matches on Subject: below -- 2012-06-16 23:14 Tsunenobu Kai 2012-06-17 1:03 ` Michael Hannon 2012-06-17 2:11 ` Tsunenobu Kai 2012-06-17 2:18 ` Nick Dokos 2012-06-17 3:04 ` Tsunenobu Kai
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).