all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Yuri Khan <yuri.v.khan@gmail.com>, Amos Bird <amosbird@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: goto-address-at-point doesn't get the right url when there is a trailing ')'
Date: Thu, 15 Jun 2017 09:01:25 +0000	[thread overview]
Message-ID: <CAArVCkTTQTU-kBvrRz8+rrDFbLH1VeU+vKD0p+7oF0CGjQjpRg@mail.gmail.com> (raw)
In-Reply-To: <CAP_d_8WThsKckRA5qZP6dam=+v2y3bf3qOCnwmU1uk_DpNzuFw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

Yuri Khan <yuri.v.khan@gmail.com> schrieb am Mi., 14. Juni 2017 um
17:03 Uhr:

> On Wed, Jun 14, 2017 at 5:11 PM, Amos Bird <amosbird@gmail.com> wrote:
>
> > When doing  (goto-address-at-point) at parenthesis surrounded urls like
> this
> > (https://github.com/nikomatsakis/rayon/issues/231) in any prog mode (c,
> java, python ...)
> >
> > it will grab the trailing ')' thus ends up with opening a wrong url.
>
> > Could you tell me a workaround for this?
>
> Don’t do that, then?
>
> A closing parenthesis is a valid URL character. Any heuristic that
> fixes your problem will break legal, standard-conforming URLs, such as
> this:
>
>     https://en.wikipedia.org/wiki/Dunnet_(video_game)
>

The URL heuristic could match only paired parentheses. At least that's what
my mail app appears to be doing, as it correctly matches both URLs.

[-- Attachment #2: Type: text/html, Size: 1447 bytes --]

  parent reply	other threads:[~2017-06-15  9:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <878tkv3rii.fsf@gmail.com>
2017-06-14 10:11 ` goto-address-at-point doesn't get the right url when there is a trailing ')' Amos Bird
2017-06-14 15:01   ` Yuri Khan
2017-06-14 15:05     ` Amos Bird
2017-06-15  9:01     ` Philipp Stephani [this message]
2017-06-15  9:04       ` Amos Bird
2017-06-15  9:51         ` Philipp Stephani
2017-06-15 13:49           ` Amos Bird
2017-06-16 16:27             ` Philipp Stephani

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=CAArVCkTTQTU-kBvrRz8+rrDFbLH1VeU+vKD0p+7oF0CGjQjpRg@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=amosbird@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=yuri.v.khan@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.