فهرست منبع

`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.
Bastien Guerry 15 سال پیش
والد
کامیت
c39f5d632f
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 2 0
      lisp/ChangeLog
  2. 2 2
      lisp/org.el

+ 2 - 0
lisp/ChangeLog

@@ -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.

+ 2 - 2
lisp/org.el

@@ -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)