`org-emph-re' now matches emphasized strings at the end of lines.

We do this by making the last element of org-emph-re optional.
This commit is contained in:
Bastien Guerry 2009-07-26 05:23:56 +08:00
parent 8b840fe73c
commit c39f5d632f
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,8 @@
* org.el (org-mode-map): Define new key `C-c C-*': convert a plain
list to a subtree, preserving the structure of the list.
(org-set-emph-re): Make the last element optional in the regexp.
This regexp now matches an emphasized string at the end of a line.
* org-list.el (org-list-goto-true-beginning)
(org-list-make-subtree, org-list-make-subtrees): New functions.

View file

@ -2724,7 +2724,7 @@ org-leve-* faces."
"[^" border "]"
"\\)"
"\\3\\)"
"\\([" post "]\\|$\\)"))
"\\([" post "]\\|$\\)?"))
(setq org-verbatim-re
(concat "\\([" pre "]\\|^\\)"
"\\("
@ -2736,7 +2736,7 @@ org-leve-* faces."
"[^" border "]"
"\\)"
"\\3\\)"
"\\([" post "]\\|$\\)")))))
"\\([" post "]\\|$\\)?")))))
(defcustom org-emphasis-regexp-components
'(" \t('\"{" "- \t.,:!?;'\")}" " \t\r\n,\"'" "." 1)