From unknown Wed Jun 18 23:15:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#77713 <77713@debbugs.gnu.org> To: bug#77713 <77713@debbugs.gnu.org> Subject: Status: 30.1; bug in proced-filter function in ./lisp/proced.el Reply-To: bug#77713 <77713@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:15:20 +0000 retitle 77713 30.1; bug in proced-filter function in ./lisp/proced.el reassign 77713 emacs submitter 77713 Armin Darvish severity 77713 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 10 13:50:31 2025 Received: (at submit) by debbugs.gnu.org; 10 Apr 2025 17:50:31 +0000 Received: from localhost ([127.0.0.1]:46775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u2w2o-0002z7-N1 for submit@debbugs.gnu.org; Thu, 10 Apr 2025 13:50:31 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33546) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u2w2m-0002yM-2A for submit@debbugs.gnu.org; Thu, 10 Apr 2025 13:50:28 -0400 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 1u2w2f-0007ff-9Y for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2025 13:50:21 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u2w2d-0007up-4y for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2025 13:50:20 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-7399838db7fso1238315b3a.0 for ; Thu, 10 Apr 2025 10:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744307417; x=1744912217; darn=gnu.org; h=mime-version:message-id:date:user-agent:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=+QHvZ4pD/zE4q/5HmZaEpIKp8SVNBiU9f54SHa7l7lw=; b=G/4NFkCAg6w7e89Pvb3wRG6r/vEkDomzmwM5L+aRuufoHYgWd1M3F9ppAh+Aj16D8+ XZWzXEpSMorTpzN3EHDZ6kEvAnbETajpnqAm/abh3E9dh9zDDWK1Pcicl17sie3zfOvf 8NMj5W4uKrShrQO4xUsVEmXIQ77xkbsGjRe8dFBH6VbUFgqGar+yvkZlBVpgvD07Iy2X oTVmphD9HLT/5FJuSsehfzGXGaJVOTsCsbMm54rOCTwnQ0JNzM2XwvyugLzmh0+QZA+L zddMoh+InoIN2TCK3XjgJ8KyQi+qnuTGk8+PybStrANEJ2Jhfj/0DBwH8ptyxgxMp5fC wwAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744307417; x=1744912217; h=mime-version:message-id:date:user-agent:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+QHvZ4pD/zE4q/5HmZaEpIKp8SVNBiU9f54SHa7l7lw=; b=mvXMZc1nNSMjnRnvdC6JzqT7h23yCvlXIke+Srlg9gDqJy+7dKEhdoLGr8H9IBoN5W cgRHxN3OxeGyySkzzgzrPVKr2S7pmJbB9srxrHdoNoSbVPsOjjOHT14N9Jmdl14RVeiK VAge1RodbOrDart4evDauJJO3ymFVBzcmMf+Fn4Yr+vnTPmsBaKCxulHRCqwCIuF6d+j ZfnJbTD4fTWyxpnn7Shj4esBGdz1xdMEDGuYX+MJRgzwAN/Ij26zxHHpRW7YqOw6lG4N 6FObx2O0rBuniOS2zoDFbY6S6LIyf86fwCKaEhgf1y7uHcGSVjllq6YuicH523Z9Ei5n IeRw== X-Gm-Message-State: AOJu0YyF6yd+1L2iUE0/PB3Ni0oEFDIfA4U6IW9z27UQxI0owMnLwQE5 adQ+3jkGGy+7ciAvhLLkiUvSniMJovX342l0QaMGmMrwTorAoU90J7eVPg== X-Gm-Gg: ASbGncuxXsxZ5CiGnkWiRNZlwY8fmheYeNK1YjSu8RorDWyXXxsbwR8Bk+DwLlAxe4f ZNA8L1Mu8AyBz87EmP/5RnKjxQp1U2/N4ICyxNPm8+3e1KvF/EvB5vivToNr2kHjauj3M6Y4xq0 cgvvfK9l7avsUDwqAX/QhwaaSXc457qjOxhfYyjF7cyjzmsk+I9HhwMXB4jr7V/GiZ2hau0c721 wLuCSHPNhXQWoELAXK+P7rEzitUZZjNL9Ak1rkvh1iy27ocY+8nTnXvv38P1BazrVEuCBjOXELR 3hA8AfISUKsCJYROZ5YlAbEtfH1MCRYn8HcQbGWrlf28hfamcVU0kqoYK1eBQn0maA== X-Google-Smtp-Source: AGHT+IEnYiuLZYkzwksnUmbF5j+2Re28po0pvWBTIPz4rV1Z+3i2IUwC6uXa0kJRSaYL7dkpqQEFtA== X-Received: by 2002:a05:6a00:39a2:b0:736:491b:5370 with SMTP id d2e1a72fcca58-73bbf97f68fmr5396825b3a.10.1744307416750; Thu, 10 Apr 2025 10:50:16 -0700 (PDT) Received: from localhost ([2601:640:8800:309:70a5:11a1:83da:95d9]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-73bb1d2afefsm3704948b3a.16.2025.04.10.10.50.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 10:50:16 -0700 (PDT) From: Armin Darvish To: bug-gnu-emacs@gnu.org Subject: 30.1; bug in proced-filter function in ./lisp/proced.el User-Agent: mu4e 1.12.9; emacs 30.1 Date: Thu, 10 Apr 2025 10:50:15 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=armindarvish@gmail.com; helo=mail-pf1-x429.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain Content-Disposition: inline Hi, I was trying to use the function `proced-filter' and pass a filter-list to it and I noticed that there is a bug in the function. According to the documentation the filter-list can be a list of cons in the format `(function . FUN)' and in this case `FUN' should be applied to the attribute list of each process. However, if you look at the lines 1185-1188 in ./lisp/proced.el, instaed of applying the `(cdr filter)', `(car filter)' is passed to funcall which creates an error. The `(if (funcall (car filter) (cdr process))' on line 1187 should be `(if (funcall (cdr filter) (cdr process))'. -- Best Regards, *Armin Darvish* ------------------------------------------------------------------------ [www.armindarvish.com] [www.armindarvish.com] --==-=-= Content-Type: text/html; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable

Hi,

I was trying to use the function proced-filter and pass a filter-list = to it and I noticed that there is a bug in the function.

According to the documentation the filter-list can be a list of cons in the= format (function . FUN) and in this case FUN should be applied t= o the attribute list of each process. However, if you look at the lines 118= 5-1188 in ./lisp/proced.el, instaed of applying the (cdr filter), (car f= ilter) is passed to funcall which creates an error.

The (if (funcall (car filter) (cdr process)) on line 1187 should be (if = (funcall (cdr filter) (cdr process)).

=E2=80=93

Best Regards,


Armin Darvish


www.armi= ndarvish.com

--==-=-=-- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 13 05:41:14 2025 Received: (at 77713-done) by debbugs.gnu.org; 13 Apr 2025 09:41:14 +0000 Received: from localhost ([127.0.0.1]:39156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u3tpx-0001gr-5w for submit@debbugs.gnu.org; Sun, 13 Apr 2025 05:41:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36230) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u3tpt-0001fm-Hc for 77713-done@debbugs.gnu.org; Sun, 13 Apr 2025 05:41:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u3tpm-0005a7-CJ; Sun, 13 Apr 2025 05:41:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2iPeeuY12fX65k6sT3d+1CTp1FwRWmECWWEwqfSTdDk=; b=WouWvnpt6Yvv 0HvbiS7zGaTpKV9W8A01qB2/FNQCPZ5YZtPokxtKvuXam0m2rYBGBMs9O81prMSGvwvqZe5PeYRJp +6A2Ds48wHMCnhS6Hqb3/CtplzH2p5PexVv1qyjHUQuyHNWNyeMm3JvWiUB6tUH1XGBVAbCvYdX7C hggyVwMoMixDkVtNF/RikxUUi2nOyqERjeY7yczEwkQKlOl3Xquwi2BN6iKc+5SHzb2UDvfLGJsAx qj3GgXiQNeXO88MfBAEDFrJOH3eDje/8igrrKRHK3FftnK1Zv+UTce1EtOaF9TwO52xn2zJTPIqTM UJ8DkOK43dvONlqbTUM0Ug==; Date: Sun, 13 Apr 2025 12:40:58 +0300 Message-Id: <86zfgkjt5h.fsf@gnu.org> From: Eli Zaretskii To: Armin Darvish In-Reply-To: (message from Armin Darvish on Thu, 10 Apr 2025 10:50:15 -0700) Subject: Re: bug#77713: 30.1; bug in proced-filter function in ./lisp/proced.el References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77713-done Cc: 77713-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Armin Darvish > Date: Thu, 10 Apr 2025 10:50:15 -0700 > > I was trying to use the function proced-filter and pass a filter-list to it and I noticed that there is a bug in > the function. > > According to the documentation the filter-list can be a list of cons in the format (function . FUN) and in this > case FUN should be applied to the attribute list of each process. However, if you look at the lines 1185-1188 in > ./lisp/proced.el, instaed of applying the (cdr filter), (car filter) is passed to funcall which creates an > error. > > The (if (funcall (car filter) (cdr process)) on line 1187 should be (if (funcall (cdr > filter) (cdr process)). Thanks, now fixed on the emacs-30 branch, and closing the bug. From unknown Wed Jun 18 23:15:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 11 May 2025 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator