Ver código fonte

Emphasis: Allow braces in pre and post match, important for LaTeX footnotes.

Carsten Dominik 16 anos atrás
pai
commit
49878b0387
2 arquivos alterados com 4 adições e 1 exclusões
  1. 3 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-03-30  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org.el (org-emphasis-regexp-components): Allow braces in
+	emphasis pre and post match.
+
 	* org-footnote.el (org-footnote-normalize): When only dorting, do
 	not insert inline notes at the end.
 

+ 1 - 1
lisp/org.el

@@ -2628,7 +2628,7 @@ Changing this variable requires a restart of Emacs to take effect."
 		    "\\([" post  "]\\|$\\)")))))
 
 (defcustom org-emphasis-regexp-components
-  '(" \t('\"" "- \t.,:!?;'\")" " \t\r\n,\"'" "." 1)
+  '(" \t('\"{" "- \t.,:!?;'\")}" " \t\r\n,\"'" "." 1)
   "Components used to build the regular expression for emphasis.
 This is a list with 6 entries.  Terminology:  In an emphasis string
 like \" *strong word* \", we call the initial space PREMATCH, the final