GNU bug report logs -
#77713
30.1; bug in proced-filter function in ./lisp/proced.el
Previous Next
Reported by: Armin Darvish <armindarvish <at> gmail.com>
Date: Thu, 10 Apr 2025 17:51:02 UTC
Severity: normal
Found in version 30.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 77713 in the body.
You can then email your comments to 77713 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77713
; Package
emacs
.
(Thu, 10 Apr 2025 17:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Armin Darvish <armindarvish <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 10 Apr 2025 17:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, 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] <https://www.armindarvish.com/>
[Message part 2 (text/html, inline)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sun, 13 Apr 2025 09:42:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Armin Darvish <armindarvish <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 13 Apr 2025 09:42:05 GMT)
Full text and
rfc822 format available.
Message #10 received at 77713-done <at> debbugs.gnu.org (full text, mbox):
> From: Armin Darvish <armindarvish <at> gmail.com>
> 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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 11 May 2025 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 37 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.