From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: PROPOSAL: New function ffap-ip-at-point Date: Fri, 22 Jul 2022 11:36:53 +0200 Message-ID: <87wnc5xzd6.fsf@gmail.com> References: <87r12d5xhv.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27007"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 11:38:03 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 1oEp6h-0006nC-D4 for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 11:38:03 +0200 Original-Received: from localhost ([::1]:52726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEp6f-00018c-6X for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 05:38:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEp5f-00008d-Rw for emacs-devel@gnu.org; Fri, 22 Jul 2022 05:37:00 -0400 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:40755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEp5d-0007FX-Ju for emacs-devel@gnu.org; Fri, 22 Jul 2022 05:36:58 -0400 Original-Received: by mail-wr1-x42e.google.com with SMTP id m17so5439786wrw.7 for ; Fri, 22 Jul 2022 02:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:gmane-reply-to-list:date :message-id:mime-version:content-transfer-encoding; bh=yhGusw0B95B3z7/8O+pmDblXP1oR4+ZvXtP4avRz/mU=; b=NMybalXJwDKyiiIKnbSszv14KzlKbwLQiPH6corN6RIZvYKuEXwPyfd2Z3+Rujy1J2 ukuIA0j5u9/IQIUqTKL8zR5aNgzDTygyTl43WQpjysFwIW/oIZqgZtHRe6Gcmiqotno7 gUROn/gF1JJWj34D5yOgWSU32PGmzLfyruEJHnfloX+PsGNAOz/V9AL8JiHAfJ2mjIsj kkTi9XjOsVN5OrVbnJHMilBViksFk8zCUS330pUypxNs971+pWoC8RhnFSNWiBX+SrdZ Tgbo5p1s8K+jKdPPSI2DXixjmf7V/HzoPIVQYwvlMyE4YMUhI2KzKkP4Z+CHXOLNbqKz cFgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=yhGusw0B95B3z7/8O+pmDblXP1oR4+ZvXtP4avRz/mU=; b=NolQluIvXoxzXe42O9iZGpOQsqH7kW1gGjo8PLMOR5GYJcmBQ5MagvxV0iOsydWQWJ zD2yqpsCFA2Yv1opj48tzv0OXQuINroHvu5gm3fvIlZoqZXlmMDP+AduP+WdzCHr+dbu /M5AxQCGtGIR//cR1lSCmoPP6no/9Gg7FqkiCac0jG8EB3Zi0x+H+cJ30QybpFdRXx1q K7OZu1D8aiej2tKpZTrhiM48f9nyiwyYPScBVxPyEDZ9Sn6JdGDmm21S9n+tZoNc8zuf CEgDzGmfruy7BR6zvhpNgMzqT5O/NMS/R0FHa1uAE7bROcoPrOVA3T5SdUxy5qJ2oOhY v6bg== X-Gm-Message-State: AJIora+UzCueW6VvZkjHTSu/P/Vi7XDqDCyz//tE9LT+A5vSXyK2EUuy jInvz5wBt5JjeRRHj+xOy7iTPuTr3Ek= X-Google-Smtp-Source: AGRyM1vwcceiJ3yuZbLgqb+TWRG5Fg4/CZDBt5tgAHLj/FFsY4A+n6UB2BLWUTQXSzw2Kh/e0E9GQA== X-Received: by 2002:adf:ffc1:0:b0:21d:efac:100b with SMTP id x1-20020adfffc1000000b0021defac100bmr1773608wrs.444.1658482615222; Fri, 22 Jul 2022 02:36:55 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:895:5408:cb5b:6546]) by smtp.gmail.com with ESMTPSA id p21-20020a05600c205500b003a2eacc8179sm4400959wmg.27.2022.07.22.02.36.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 02:36:54 -0700 (PDT) In-Reply-To: <87r12d5xhv.fsf@gmx.com> (=?utf-8?Q?=22I=C3=B1igo?= Serna"'s message of "Fri, 22 Jul 2022 10:49:30 +0200") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:292411 Archived-At: >>>>> On Fri, 22 Jul 2022 10:49:30 +0200, I=C3=B1igo Serna said: I=C3=B1igo> Hi, I=C3=B1igo> I propose the addition of this `ffap-ip-at-point' function. I=C3=B1igo> Equivalent to (and based on) `ffap-machine-at-point', it wi= ll return I=C3=B1igo> the IP address at point if it exists, or nil. IPv6? I=C3=B1igo> The attached patch also includes a very minor change to I=C3=B1igo> `dns-lookup-host' command in order to use it if ffap-machin= e-at-point I=C3=B1igo> first fails. I=C3=B1igo> Patch is against master from a couple of hours ago. I=C3=B1igo> This is my first serious contribution to emacs, so I'm not = sure it's I=C3=B1igo> everything ok. I=C3=B1igo> What do you think? Btw, I signed FSF papers in 2021, so no = problem I=C3=B1igo> here I guess. You=CA=BCll need a ChangeLog style commit message. See CONTRIBUTE for details (specifically "Generating ChangeLog entries"), but an easy way to start is "C-x 4 a" in the buffer resulting from "C-x v =3D" Robert --=20