From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: TOMAS FABRIZIO ORSI Newsgroups: gmane.emacs.bugs Subject: bug#71438: [PATCH] Allow ping to receive optional arguments Date: Sun, 9 Jun 2024 12:48:26 -0300 Message-ID: References: <86v82i9qiz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000cece71061a76f8a3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34421"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pbreton@cs.umb.edu, 71438@debbugs.gnu.org To: Stefan Kangas , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 09 17:56:03 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sGKtm-0008hZ-TE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Jun 2024 17:56:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGKtX-0002YW-Ho; Sun, 09 Jun 2024 11:55:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGKtW-0002YC-0X for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 11:55:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGKtV-0007gP-OZ for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 11:55:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sGKtm-0003id-6E for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 11:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: TOMAS FABRIZIO ORSI Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Jun 2024 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71438 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71438-submit@debbugs.gnu.org id=B71438.171794852714181 (code B ref 71438); Sun, 09 Jun 2024 15:56:02 +0000 Original-Received: (at 71438) by debbugs.gnu.org; 9 Jun 2024 15:55:27 +0000 Original-Received: from localhost ([127.0.0.1]:46006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGKtC-0003gZ-O2 for submit@debbugs.gnu.org; Sun, 09 Jun 2024 11:55:27 -0400 Original-Received: from mail-ej1-f46.google.com ([209.85.218.46]:54627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGKoL-0003SR-9f for 71438@debbugs.gnu.org; Sun, 09 Jun 2024 11:50:26 -0400 Original-Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a6f177b78dcso52875766b.1 for <71438@debbugs.gnu.org>; Sun, 09 Jun 2024 08:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fi-uba-ar.20230601.gappssmtp.com; s=20230601; t=1717948143; x=1718552943; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tMyTJIMZaHrJKk572wgm2H11sRTfE6UCskq6XVSTMoM=; b=MQ1WfhcENSnv/raYAa++jcWnlY8RBqIajMoHaIpVfweI7PyFhSRTDDADa5utnPfEaz CO0iAkqpW1fX0kqxxaW/MFsl9dO5E9x9Xp+YjkN5I+pu3xuJDBpcz7upAVDBvloirTK/ CFjMk7/ezdPasE/jxoe8NIxaHesLtgcgCjxUCRVlA4KGdEcIzgk69pogVijiJ11/rF3Z k7NoEO/nESZLJsRzksU0L5IZUJ7EQZOkmT/W9BD/5NSLWSDXWfvPntbdMXXRv7kW/Kzt N2BIhUblQ4wg+MRkBNdlwiLY6anLuIxIQu8zPdmiZxJoVmtM9TJctxeUCgBvBhcM+dtA RYKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717948143; x=1718552943; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tMyTJIMZaHrJKk572wgm2H11sRTfE6UCskq6XVSTMoM=; b=iAeCXDcGWqY2ysj44wEA7JEaLFPWQuyjI9CdPbiMu4C12zvDN9nyslHxVIpkxk6tsb JZa2mJBG6MahkxZMdhvkngJjAMTaQ7B3nQ1EelAXWYFvHlGdnI1mK1GpdcAraNYwT8vr /VKY4bjQv/D9eMKZkascC+1EKhrokKu3xkEfmJH/cQhk72eH5MpzlOsMprxretZ3lgcG AfncXXBCWiT2AsEBcomDCZPIpPXYHjhN9yFTDUHUeabVtqznkFQT6It9PQgvNXif08r4 FklWAWZ7U5a7axsY+HEWj5AD80gb9Wz63jjiKaHudgQJxNgA7K/jNQ/+vTfLpKcK/N86 JdXQ== X-Forwarded-Encrypted: i=1; AJvYcCWOzqXVTdRXPRke139Nd4SKHO8toyMpKHfgnxovDr2MLnFtZxDByVoQthNUYqBuE+fzjVHSjEL+U35W6DwS4CLZROj1HWI= X-Gm-Message-State: AOJu0YyV/r5den/RiVdvzycmRQe5ny8rVgX1bcZvsfTHvUmEJlV98ThN v3bQ5Ca+1siIzXmFIFnOG1IyrDiFM/6+3MVC9zx4tTk2riqj0g5i1CoT2krAEIehfj99a+bvM81 9REGrE69s1uj20LQj+0giPSsn0Ddz+jayhgpsog== X-Google-Smtp-Source: AGHT+IESl23FC2rmBo7sc5A5s3Tk4I0Pv8NUwI8rpjMEuZi34CajKH/IVBdzSl1rcWIBDZ9FDgPJeLcRGxgzbazDMNw= X-Received: by 2002:a17:907:5cd:b0:a6e:4e0:48fa with SMTP id a640c23a62f3a-a6e04e04a10mr472969466b.69.1717948143016; Sun, 09 Jun 2024 08:49:03 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286952 Archived-At: --000000000000cece71061a76f8a3 Content-Type: text/plain; charset="UTF-8" Hello Stefan and Eli, Here I added the use of a prefix argument. I tested and seems to be working fine ^_^. As a matter of fact, I think it's even better now! Pretty handy thing. I tried my best to break at the 80 character column, whilst maintaining readability. I also went back on the variable ping-program-options' name change. Eli raised a good point. Would appreciate some feedback. Best regards, - Fabrizio --000000000000cece71061a76f8a3 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-ping-Added-optional-arguments.patch" Content-Disposition: attachment; filename="0001-ping-Added-optional-arguments.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lx7pvbfy0 RnJvbSA0MDAzMDg0NWQzNjkxNDgwZjRiNzVmOGE2NWFiODRmMzQ1NTA4NDY1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUb21hcyBGYWJyaXppbyBPcnNpIDx0b3JzaUBmaS51YmEuYXI+ CkRhdGU6IFNhdCwgOCBKdW4gMjAyNCAxMjoxMToxOCAtM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QorICAgICBmdWxsLWNvbW1hbmQpKSkKIAogOzs7IyMjYXV0b2xvYWQKIChkZWZ1 biBuc2xvb2t1cC1ob3N0IChob3N0ICZvcHRpb25hbCBuYW1lLXNlcnZlcikKLS0gCjIuNDQuMgoK --000000000000cece71061a76f8a3--