emacs - How to escape double quote? -
in org mode, if want format text monospace verbatim, i.e. ~...~
, if inside quotes: ~"..."~
, not formatted (left is).
also, quotes reserved symbol, if so, mean? (they don't seem affect generated html / inside emacs display).
the culprit in case regular expression in org-emph-re
org-verbatim-re
, responsible determining if sequence of characters in document set verbatim or not.
org-verbatim-re variable defined in `org.el'. value "\([ ('\"{]\|^\)\(\([=~]\)\([^
\n,\"']\|[^
\n,\"'].?\(?:\n.?\)\{0,1\}[^
\n,\"']\)\3\)\([- .,:!?;'\")}\]\|$\)"
quotes , double quotes explicitly forbidden inside verbatim characters =~
[^ \n,\"']\|[^ \n,\"']
i found discussions dating 3 years comming conclusion have tinker regular expression , set variable org-emph-re
/org-verbatim-re
matches wishes in emacs setup (maybe file local variable works well). can experiment excluding double quotes excluding character classes , outside matches in
"\([ ('{]\|^\)\(\([*/_=~+]\)\([^
\n,']\|[^
\n,'].?\(?:\n.?\)\{0,1\}[^
\n,']\)\3\)\([- .,:!?;')}\]\|$\)"
but looking @ regex, heaven knows happens complex documents -- have try...
edit: happens, if evalute following region, quotes inside =
exported correctly, nothing else :-), investigate further when have more time.
(setq org-emph-re "\([ ('{]\|^\)\(\([*/_=~+]\)\([^ \n,']\|[^ \n,'].?\(?:\n.?\)\{0,1\}[^ \n,']\)\3\)\([- .,:!?;')}]\|$\)")
edit 2:: got work changing org.el
directly:
change line following (defvar org-emphasis-regexp-components
'(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 1)
'(" \t('{" "- \t.,:!?;')}\\" " \t\r\n,'" "." 1)
, recompile org restart emacs.
this defcustom
prior 8.0 release, isn't anymore, have live manual modification.
regards, tom
Comments
Post a Comment