From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chunyang Xu Subject: Re: Bug: link formating problem [9.0.5 (9.0.5-elpaplus @ /Users/mistkafka/.emacs.d/elpa/org-plus-contrib-20170210/)] Date: Wed, 24 May 2017 21:48:45 +0800 Message-ID: References: <87wp98dqoq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDWev-00016Z-2y for emacs-orgmode@gnu.org; Wed, 24 May 2017 09:49:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDWeq-0000Fg-7a for emacs-orgmode@gnu.org; Wed, 24 May 2017 09:49:05 -0400 Received: from smtpbgau1.qq.com ([54.206.16.166]:60193) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDWep-00007n-Ie for emacs-orgmode@gnu.org; Wed, 24 May 2017 09:49:00 -0400 In-reply-to: <87wp98dqoq.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, =?utf-8?B?5p6X6ZWH5Zu9?= Nicolas Goaziou writes: > Hello, > > 林镇国 writes: > >> When I insert a link to my note, such as“这是一个[[link][链接]]啦~”, >> the text after the link, "啦~", will be formatting as link style. > > FWIW, I cannot reproduce it, i.e., only "链接" appears with a link face. I can reproduce if "link" is a real link and "description" doesn't contain white space, for example, [[http://example.com/][Example]]blah ^^^^ Also under the org-link face It looks like `org-plain-link-re' doesn't think a link is end unless a punctuation character is found: org-plain-link-re (concat "\\<" types-re ":" "\\([^ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\)") ^^^^^^^^^^^^^^^^^ It is a reasonable assumption for English, but not for Chinese. > Regards,