From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Feng Shu" Subject: [PATCH] Let radio target works well with Chinese Date: Sun, 24 Feb 2019 18:08:07 +0800 Message-ID: <87ftsdjy7s.fsf@163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxqiD-0007Ih-Ri for emacs-orgmode@gnu.org; Sun, 24 Feb 2019 05:08:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxqiD-0004LA-0H for emacs-orgmode@gnu.org; Sun, 24 Feb 2019 05:08:45 -0500 Received: from m12-14.163.com ([220.181.12.14]:46316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxqiB-0004C4-Cu for emacs-orgmode@gnu.org; Sun, 24 Feb 2019 05:08:44 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: orgmode-devel --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-Let-radio-target-works-well-with-Chinese.patch Content-Transfer-Encoding: quoted-printable >From bbf085c61f8b7e9b80077b401cd275b420b4ddca Mon Sep 17 00:00:00 2001 From: Feng Shu 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=3DUTF-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. <<<=E5=A4=A9=E7=A9=BA>>> =E6=88=91=E7=88=B1=E5=A4=A9=E7=A9=BA=E5=92=8C=E5=A4=A7=E5=9C=B0 ^^^^ --- 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)) --=20 2.20.1 --=-=-= Content-Type: text/plain -- --=-=-=--