emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PROPOSAL: New function ffap-ip-at-point


From: Iñigo Serna
Subject: Re: PROPOSAL: New function ffap-ip-at-point
Date: Fri, 22 Jul 2022 17:34:06 +0200
User-agent: mu4e 1.8.6; emacs 29.0.50

Hi Lars,

On 22 July 2022 at 17:09 +02, Lars Ingebrigtsen <larsi@gnus.org> wrote:

Have a look at textsec--ipvx-address-p -- I think that should do the right thing? (And could be moved somewhere more central if it's doing
the right thing here for reuse.)

'textsec--ipvx-address-p' current implementation is not perfect.
It returns a wrong result when some octet is greater than 255.

(textsec--ipvx-address-p "343.1.2.3")
0

(ffap-ipv4-p "343.1.2.3")
nil

So IMO it's not as useful for my purposes, reports from network tools.


I think for this to be useful, it should cover both ipv4 and ipv6.

IPv6 could be added later.

--
Iñigo Serna



reply via email to

[Prev in Thread] Current Thread [Next in Thread]