From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amos Bird Newsgroups: gmane.emacs.devel Subject: Re: goto-address-at-point doesn't get the right url when there is a trailing ')' Date: Thu, 15 Jun 2017 17:04:12 +0800 Message-ID: <8737b14o6r.fsf@gmail.com> 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: 8bit X-Trace: blaine.gmane.org 1497517505 22559 195.159.176.226 (15 Jun 2017 09:05:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2017 09:05:05 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.2.2 Cc: Emacs developers , Yuri Khan To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 15 11:05:01 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 1dLQi5-0005ge-8h for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2017 11:05:01 +0200 Original-Received: from localhost ([::1]:52830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLQiA-0003pU-NA for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2017 05:05:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLQhT-0003pN-JR for emacs-devel@gnu.org; Thu, 15 Jun 2017 05:04:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLQhP-0006sR-HK for emacs-devel@gnu.org; Thu, 15 Jun 2017 05:04:23 -0400 Original-Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:32960) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLQhP-0006rf-BB for emacs-devel@gnu.org; Thu, 15 Jun 2017 05:04:19 -0400 Original-Received: by mail-pf0-x22c.google.com with SMTP id 83so4847335pfr.0 for ; Thu, 15 Jun 2017 02:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=o8UpQc0XEwVumbE9HUdamVcJcGgpN63QGWacmvV1pBc=; b=lQCfP4pE8rW7n1E5l8ZuKKCubgjWAaDEwa6ha53u5141JC9m4608LTI7vvgEWddgwt tfCayfKwvu5UNFj52J6rh43tHN+2+xykZIEGevYXdVcwHdZehGnELD0fd3V8ha9c9636 eyeHAiYUKzS/AsSaPZp9KPXWp+MZXLkz+tjJwvZLhNxbu0g86vhvsvYu/ytzRgLB5arn 2Yt0ILI3p0wgfrJ17RaGOj/Csv0xCctoC+2/wItdzoy0Ya2YDA5SZiXvUH/N9rEjAZI0 MTK3zI7glvMx3sg896+oHej4m8R9ntQuIWSSdpz5aCatakhAkbVDqeuwRDoLyUVxpnZg VOug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=o8UpQc0XEwVumbE9HUdamVcJcGgpN63QGWacmvV1pBc=; b=Fiaqu3FmM0XMZf6dQx9pnyTBwl+w5AeE7gAGvFWVCnLF1OG5uSeaebBqOgIBnlPykY XRWzUGw7gZjbIBCxEDtOdWxs5axirzimMxXXqKRfEfiSScfHLmEXUKe4Zi0M7Z3aqhPI +FoaxnbtEUUXHYwQFCkH4cVP4ryPs5x8jtv9K/AQOhgaYBGA/q1+Xwn88DDcHgVGa+5u sIXfjmbQDMRpzLqikUqiPe5YIhMbYalimGF+aLMA9dzLARXYqnZOFAUnhz/odYKzFgx1 AXr/G/TigWiNdeI5UdZED3AS65n183B/6GFikElVXufcdz1DBPyo3nDcy8eAaZy5xaRW CF2A== X-Gm-Message-State: AKS2vOz36hj6EU7zMe2CA9Y755A7QnE5zeUztP1bXWqVOzdZne1J5Xf0 De4vViv78nmzGg== X-Received: by 10.99.168.5 with SMTP id o5mr1918928pgf.33.1497517455929; Thu, 15 Jun 2017 02:04:15 -0700 (PDT) Original-Received: from localhost ([168.235.77.108]) by smtp.gmail.com with ESMTPSA id z70sm3865893pgz.3.2017.06.15.02.04.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Jun 2017 02:04:15 -0700 (PDT) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22c 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:215633 Archived-At: hmm, can you try doing it at a prog mode? say cc-mode or java-mode. Philipp Stephani writes: > Yuri Khan schrieb am Mi., 14. Juni 2017 um > 17:03 Uhr: > >> On Wed, Jun 14, 2017 at 5:11 PM, Amos Bird 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.