From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: goto-address-at-point doesn't get the right url when there is a trailing ')' Date: Wed, 14 Jun 2017 22:01:44 +0700 Message-ID: References: <878tkv3rii.fsf@gmail.com> <877f0e5169.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497452583 31018 195.159.176.226 (14 Jun 2017 15:03:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2017 15:03:03 +0000 (UTC) Cc: Emacs developers To: Amos Bird Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 14 17:02:59 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dL9ox-0007nK-43 for ged-emacs-devel@m.gmane.org; Wed, 14 Jun 2017 17:02:59 +0200 Original-Received: from localhost ([::1]:49498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL9p2-0006c0-9I for ged-emacs-devel@m.gmane.org; Wed, 14 Jun 2017 11:03:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL9oC-0005Z8-1L for emacs-devel@gnu.org; Wed, 14 Jun 2017 11:02:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL9o6-0006N6-7g for emacs-devel@gnu.org; Wed, 14 Jun 2017 11:02:12 -0400 Original-Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:33126) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dL9o6-0006ML-24 for emacs-devel@gnu.org; Wed, 14 Jun 2017 11:02:06 -0400 Original-Received: by mail-wr0-x230.google.com with SMTP id r103so2154159wrb.0 for ; Wed, 14 Jun 2017 08:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=7F5SzIv6pEOlREblWGEe6BV+a46+HNzGUhvJwf1y3xk=; b=N92Yryp2/FoU8nu53U0BqGUITleF8pEKA2esY3V6oM2qbYIDFLxkt5WajT/6xj3Zjc VmjhlTorOfyrLMXK2JWsgCTjXeQTTUqupSU5hSYFyd+MnVtxYxqTZNw9N7Snah2U5HO3 BPMn36XbzagyAjfgyeQz7X7DEeKgrv6IKOaXws8Ap6MDI/IPE7IbdT8cKBkqJw35N7Ha 1llOAdcPrVImlFuZTTm2vjUMc6kY1za6kcJ86RW7SrDY2Jk5LLWvfaZThPqFDwghBdyI 4Km6aI6XsGr2igAXDP/cvbYyL93QfdyC0ScL+1byFmSImY2wfneDtjh6eFzR0SHsaNxI xQsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=7F5SzIv6pEOlREblWGEe6BV+a46+HNzGUhvJwf1y3xk=; b=tINZ63alA2jizUDFrcrrIfE6rg1wHxh+IyXGRuoVWcsPmoGZmhd+B6bECIyC6n6QX6 p+teRWd5VhKqAlJPAY/6HnYsDRXw2foelRbYmUG76rEl+l6Ob+/m0uqQhXM4kgUrLgQ7 SVreqgRVjIPDG6w8hOYBp6/s4Nn5DpVRpom8coRVLioz2UBbMJGKhJT9X5W6ytDiYdAA 32+hcHygjNrQR5X386i2ujMd2k7pbU+BdemNtDmp6REO9Bzwb32iGKy/t6W2WmBWmOjM XEEko5WIDVE7+VRVmBrYDIVR8JikAMIRT9k9OpuIFoFd5VeazEXMTqDcpCxFofrC++eJ elNA== X-Gm-Message-State: AKS2vOzZx/romT5OmcTuh2kuLAva74RSInmG6TOkYXITMHG98DWHlRrg NT45lYyILpyKfvN3XpJuHimRha6Wpg== X-Received: by 10.223.170.7 with SMTP id p7mr389141wrd.72.1497452524820; Wed, 14 Jun 2017 08:02:04 -0700 (PDT) Original-Received: by 10.223.164.93 with HTTP; Wed, 14 Jun 2017 08:01:44 -0700 (PDT) In-Reply-To: <877f0e5169.fsf@gmail.com> X-Google-Sender-Auth: _WonR7SluIe_L8a7fbvHOQEL_So X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215625 Archived-At: On Wed, Jun 14, 2017 at 5:11 PM, Amos Bird wrote: > When doing (goto-address-at-point) at parenthesis surrounded urls like t= his > (https://github.com/nikomatsakis/rayon/issues/231) in any prog mode (c, j= ava, python ...) > > it will grab the trailing ')' thus ends up with opening a wrong url. > Could you tell me a workaround for this? Don=E2=80=99t 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) If you want to enclose a URL in parentheses, put a pair of angle brackets <> around it first: () Angle brackets are not valid URL characters and are expicitly recommended as delimiters around URLs by RFC 2396 =C2=A7 2.4.3 and RFC 3986 Appendix C. Also, it is a Markdown construct for URLs displayed as-is.