diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7d68c0e01..aa04adcf2 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,9 @@ * org.el (org-read-date): Make sure the calendar is in the current frame. + (org-set-emph-re): Remove the ? from the post-match. + (org-emphasis-regexp-components): Add backslash to the + postmatch class. * org-table.el (org-table-error-on-row-ref-crossing-hline): Variable made obsolete. diff --git a/lisp/org.el b/lisp/org.el index bac081264..29b0c4c63 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -2744,7 +2744,7 @@ org-leve-* faces." "[^" border "]" "\\)" "\\3\\)" - "\\([" post "]\\|$\\)?")) + "\\([" post "]\\|$\\)")) (setq org-verbatim-re (concat "\\([" pre "]\\|^\\)" "\\(" @@ -2756,10 +2756,10 @@ org-leve-* faces." "[^" border "]" "\\)" "\\3\\)" - "\\([" post "]\\|$\\)?"))))) + "\\([" 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