all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chunyang Xu <mail@xuchunyang.me>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org, 林镇国 <mistkafka@gmail.com>
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	[thread overview]
Message-ID: <m2h90a9xjm.fsf@xuchunyang.me> (raw)
In-Reply-To: <87wp98dqoq.fsf@nicolasgoaziou.fr>


Nicolas Goaziou writes:

> Hello,
>
> 林镇国 <mistkafka@gmail.com> 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,

  reply	other threads:[~2017-05-24 13:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-13  6:03 Bug: link formating problem [9.0.5 (9.0.5-elpaplus @ /Users/mistkafka/.emacs.d/elpa/org-plus-contrib-20170210/)] 林镇国
2017-05-23  6:37 ` Nicolas Goaziou
2017-05-24 13:48   ` Chunyang Xu [this message]
2017-05-24 13:56     ` Kaushal Modi
2017-05-26  8:05       ` Chunyang Xu
2017-05-26  8:09 ` Chunyang Xu
2017-05-26 10:03   ` Nicolas Goaziou
2017-05-27 16:13     ` Kaushal Modi
2017-05-27 19:12     ` Chunyang Xu
2017-05-27 19:53       ` Achim Gratz
2017-05-28  4:21     ` Chunyang Xu
2017-05-28  7:41       ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2h90a9xjm.fsf@xuchunyang.me \
    --to=mail@xuchunyang.me \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --cc=mistkafka@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.