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: Sat, 8 Jun 2024 12:28:00 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000e302b1061a629163" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28590"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71438@debbugs.gnu.org To: pbreton@cs.umb.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 08 17:58:15 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 1sFySM-0007BN-Pc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Jun 2024 17:58:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFyS2-0001d0-4D; Sat, 08 Jun 2024 11:57:54 -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 1sFyRw-0001Yh-PP for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 11:57:48 -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 1sFyRw-0004ud-Dn for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 11:57:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFySC-0001g3-7M for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 11:58:04 -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: Sat, 08 Jun 2024 15:58:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71438 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17178622346337 (code B ref -1); Sat, 08 Jun 2024 15:58:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jun 2024 15:57:14 +0000 Original-Received: from localhost ([127.0.0.1]:39268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFyRM-0001e1-4V for submit@debbugs.gnu.org; Sat, 08 Jun 2024 11:57:13 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFy29-0000xO-Am for submit@debbugs.gnu.org; Sat, 08 Jun 2024 11:31:11 -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 1sFxzn-000084-6d for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 11:28:43 -0400 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFxzk-0008GL-HA for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 11:28:42 -0400 Original-Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5751bcb3139so3579655a12.1 for ; Sat, 08 Jun 2024 08:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fi-uba-ar.20230601.gappssmtp.com; s=20230601; t=1717860517; x=1718465317; darn=gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=2tu8xhspll6gJltlRD3FNMYXtjt5bRO46qi7WB+doWI=; b=WxHdLjGBHSWqEMVSUPcbUZccTojqRB7Y1pzlvH8/yDhcTLyCAWcX2YkB8fpgh7doYk dtShFDtRokxMXyF+lc0CoIlc3PU+tLLB3sP6C3un7eVHgtCy2/rr/EzGlRI/Rqje+4X3 EIJOJPz9OJxzUlgAwuFc2PYbrJCzrTCHU7+OzJvQc8aOnbYmnpgCHsp3zaUq5ksbCfut 9RYePTrw7SCA5/h2dSHMmmZ2DPyWpBIFHSUgGqw5mT0V7mgHaOi5QrlhzcC26BTdlysg nuPi1pql8BsWYc5vnjLE1NprqoakpYt/At07N55wTGuaiA4bhXdJbUGDWWn75DrJEKGw lUcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717860517; x=1718465317; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2tu8xhspll6gJltlRD3FNMYXtjt5bRO46qi7WB+doWI=; b=d4ktaFB+yWgvE+izKfrDIVwOQd3qcQDoglwogo0xk26cAXyD8+JiR+PxHBL9oYS2dc /ZFio610fy9T3g1gkccQxOKvTsV1Z2xdLt6IfxZOn9S1/po/PcUFLkQkWVwx9a6v2HQI zj+ZI3VbNes2fZJqvJqeKPmzp0chfKDNkPJjkoDZ9va78DAprD7PKfH+SZLr0SLHN4Wv ZQYyffX66nL9/3paXdaIRrCjSXDYqQOiSb7z7TnVHSkyzjANKpBViRFjpdtVXxgJDEwL Mq3/8tySMjG/vZmPtcT+LwobmEVcrfJTm+IX8AuGPzj47Ty5iB/Dwhx/i/5/4ys9QiBH bRHQ== X-Gm-Message-State: AOJu0Ywi/9SH6EoI/e/W/fLuunDJe5tT4CIrXjtU9SSYzJK4kwA6QU0P jQofkIDKqo+87PTG2CvOhKvVd6TLIbjYmhQwxJhdGBtoTaFNyRbeOTtOFaxrsm1+/rapsSv+1Ae +6D+GvLsnNwjTJcXKzW6YspO/2o0GuupXWOfnvfIE0cjR74vLDkZTLg== X-Google-Smtp-Source: AGHT+IGjUGYx2pfQrZTaM3qwy8Mqv6xnw+jRYRNZmjZ8mO1akiM5mhK4wfn/g1dzd/pBB1yzYjzEXsX/X8ILSDCMDM0= X-Received: by 2002:a50:d61a:0:b0:57c:7303:a9ff with SMTP id 4fb4d7f45d1cf-57c7303aa6dmr512244a12.6.1717860516941; Sat, 08 Jun 2024 08:28:36 -0700 (PDT) Received-SPF: permerror client-ip=2a00:1450:4864:20::532; envelope-from=torsi@fi.uba.ar; helo=mail-ed1-x532.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 08 Jun 2024 11:57:05 -0400 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:286867 Archived-At: --000000000000e302b1061a629163 Content-Type: multipart/alternative; boundary="000000000000e302af061a629161" --000000000000e302af061a629161 Content-Type: text/plain; charset="UTF-8" Hi! This small patch makes it so that the "ping" interactive function can receive optional arguments. This allows the caller to change its argument every time. If no arguments are passed, the default variable will be used. Prior to this (if I am not mistaken), one had to change the variable each time. I would love to get some feedback! Thanks in advance. Version: GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-05-18 PS: This is my first time sending an email to the emacs mailing list. I CC'd bug-gnu-emacs@gnu.org because it was the address that the CONTRIBUTE file stated one should send patches to. I apologize in advance if I made a mistake. --000000000000e302af061a629161 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi! This small patch makes it so that the "ping&= quot; interactive=C2=A0
function can receive optional arguments.<= /div>
This allows the caller to change its argument every time. If no <= br>
arguments are passed, the default variable will be used.
<= /div>

Prior to this (if I am not mistaken), one had to c= hange the=C2=A0
variable each time.

I wo= uld love to get some feedback! Thanks in advance.

<= div>Version: GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu,
GTK+ Version= 3.24.41, cairo version 1.18.0) of 2024-05-18

= PS: This is my first time sending an email to the emacs
mailing l= ist. I CC'd=C2=A0 bug-gnu-emac= s@gnu.org because it
was the address that the CONTRIBUTE= file stated one
should send patches to. I apologize in adva= nce if I made
a mistake.

--000000000000e302af061a629161-- --000000000000e302b1061a629163 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_lx69od520 RnJvbSBkZTUyNzc4NGJiMWY2ZTYwYTY1MjkxZTVhYjc5ODMyOGZkMThjOGUwIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUb21hcyBGYWJyaXppbyBPcnNpIDx0b3JzaUBmaS51YmEuYXI+ CkRhdGU6IFNhdCwgOCBKdW4gMjAyNCA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lvbnMg KGxpc3QgIiIpKSAobm90IG9wdGlvbnMpKQorCSAgICAgKGFwcGVuZCBwaW5nLXByb2dyYW0tZGVm YXVsdC1vcHRpb25zIChsaXN0IGhvc3QpKQorCSAgICAgKGFwcGVuZCBvcHRpb25zIChsaXN0IGhv c3QpKSkpKQogICAgIChuZXQtdXRpbHMtcnVuLXByb2dyYW0KICAgICAgKGNvbmNhdCAiUGluZyIg IiAiIGhvc3QpCiAgICAgIChjb25jYXQgIioqIFBpbmcgKiogIiBwaW5nLXByb2dyYW0gIiAqKiAi IGhvc3QpCiAgICAgIHBpbmctcHJvZ3JhbQotICAgICBvcHRpb25zKSkpCisgICAgIGZ1bGwtY29t bWFuZCkpKQogCiA7OzsjIyNhdXRvbG9hZAogKGRlZnVuIG5zbG9va3VwLWhvc3QgKGhvc3QgJm9w dGlvbmFsIG5hbWUtc2VydmVyKQotLSAKMi40NC4yCgo= --000000000000e302b1061a629163--