From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Cully via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: PROPOSAL: New function ffap-ip-at-point Date: Fri, 22 Jul 2022 11:04:30 -0400 Message-ID: <87fsitxk3l.fsf@ditto.jhoto.spork.org> References: <87r12d5xhv.fsf@gmx.com> <83czdxl7gw.fsf@gnu.org> <87fsit5hh7.fsf@gmx.com> Reply-To: Brian Cully Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2242"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.11; emacs 28.1 Cc: Eli Zaretskii , Robert Pluim , emacs-devel@gnu.org To: =?utf-8?Q?I=C3=B1igo?= Serna Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 22 17:08:59 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEuGw-0000LG-Hn for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 17:08:59 +0200 Original-Received: from localhost ([::1]:43740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEuGv-0006PQ-B1 for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 11:08:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEuEs-0004XD-UV for emacs-devel@gnu.org; Fri, 22 Jul 2022 11:06:51 -0400 Original-Received: from coleridge.kublai.com ([166.84.7.167]:54304 helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEuEi-0001FJ-4P; Fri, 22 Jul 2022 11:06:50 -0400 Original-Received: from ditto (ool-18b8e9e7.dyn.optonline.net [24.184.233.231]) by mail.spork.org (Postfix) with ESMTPSA id 05707672D; Fri, 22 Jul 2022 11:06:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1658502399; bh=fYrEHNZSSyX5J4HrTS/6eqyenlEmmvMC4zUF9+AT+Sk=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=pk3pLJ9gtM9lVFzPP0mO1chP/VEIPwTUmxhnirdsIQk5+U264vvrj8sfgJmzp+Unn LibDYmhirFuQQXPe9o5ghXIod0EEDVyNBs/uowf/pUeHXcQ7dkuXK4mEYj94pMD62W eeW6Jvgllx0GNfdGuqX7t7it2EE60K6NrvJvAQ5k= In-reply-to: <87fsit5hh7.fsf@gmx.com> Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292447 Archived-At: I=C3=B1igo Serna writes: > Parsing IPv6 addresses is much more complex: can be shortened=20 > and even > one or more leading zeros from any group of hexadecimal digits=20 > could > be > removed. Too much work for this humble patch. This is also true for IPv4: any string of zeroes may be elided,=20 just like IPv6. --8<---------------cut here---------------start------------->8--- ditto:~% ping 127.1 PING 127.1 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=3D1 ttl=3D64 time=3D0.030 ms 64 bytes from 127.0.0.1: icmp_seq=3D2 ttl=3D64 time=3D0.033 ms --8<---------------cut here---------------end--------------->8--- -bjc