emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] Let radio target works well with Chinese


From: Feng Shu
Subject: [O] [PATCH] Let radio target works well with Chinese
Date: Sun, 24 Feb 2019 18:08:07 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

>From bbf085c61f8b7e9b80077b401cd275b420b4ddca Mon Sep 17 00:00:00 2001
From: Feng Shu <address@hidden>
Date: Sun, 24 Feb 2019 17:52:51 +0800
Subject: [PATCH] Let radio target works well with Chinese
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* lisp/org.el (org-update-radio-target-regexp): Let radio target works well 
with Chinese.

There is no need to force split words with the help
of space for Chinese, this change let the below
example works well.

<<<天空>>>

我爱天空和大地
    ^^^^
---
 lisp/org.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 9f33c9e60..ea68aacfc 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6052,8 +6052,8 @@ by a #."
 Also refresh fontification if needed."
   (interactive)
   (let ((old-regexp org-target-link-regexp)
-       (before-re "\\(?:^\\|[^[:alnum:]]\\)\\(")
-       (after-re "\\)\\(?:$\\|[^[:alnum:]]\\)")
+       (before-re "\\(?:^\\|[^[:alnum:]]\\|\\cc\\)\\(")
+       (after-re "\\)\\(?:$\\|[^[:alnum:]]\\|\\cc\\)")
        (targets
         (org-with-wide-buffer
          (goto-char (point-min))
-- 
2.20.1


-- 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]