The attached patch appears to do the right thing for me (b=
ut I haven't tested it extensively).
=
Amos Bird <
amosbi=
rd@gmail.com> schrieb am Do., 15. Juni 2017 um 11:04=C2=A0Uhr:
=
div>
hmm, can you try doing it at a prog mode? say cc-mode or java-mode.
Philipp Stephani <p.stephani2@gmail.com> writes:
> 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=C2=A0 (goto-address-at-point) at parenthesis surro=
unded 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 openi=
ng 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, suc=
h as
>> this:
>>
>>=C2=A0 =C2=A0 =C2=A0https://en.wikipedia.or=
g/wiki/Dunnet_(video_game)
>>
>
> The URL heuristic could match only paired parentheses. At least that=
39;s what
> my mail app appears to be doing, as it correctly matches both URLs.
--001a11407a7ab416cb0551fc9dfd--
--001a11407a7ab416d00551fc9dff
Content-Type: text/plain; charset="US-ASCII";
name="0001-Correctly-detect-URLs-surrounded-by-parentheses-in-com.txt"
Content-Disposition: attachment;
filename="0001-Correctly-detect-URLs-surrounded-by-parentheses-in-com.txt"
Content-Transfer-Encoding: base64
Content-ID: <15cab2a33f388723bf51>
X-Attachment-Id: 15cab2a33f388723bf51
RnJvbSA5Yzc4MGI2ZWYwNmNhY2FkOTg5ZWE2MTc1OTQ0YWY5NWMzOTczZjE0IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXBwIFN0ZXBoYW5pIDxwaHN0QGdvb2dsZS5jb20+CkRh
dGU6IFRodSwgMTUgSnVuIDIwMTcgMTE6NDk6NTYgKzA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