From c39f5d632f9e8ea25b8558c009780f5934fd4267 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 26 Jul 2009 05:23:56 +0800 Subject: [PATCH] `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. --- lisp/ChangeLog | 2 ++ lisp/org.el | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2f8c9c034..e2a698e5e 100755 --- a/lisp/ChangeLog +++ b/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. diff --git a/lisp/org.el b/lisp/org.el index 02c2b5c17..762208938 100644 --- a/lisp/org.el +++ b/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)