bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59842: [PATCH] Make proced-update Preserve Refinements


From: Laurence Warne
Subject: bug#59842: [PATCH] Make proced-update Preserve Refinements
Date: Mon, 5 Dec 2022 20:26:26 +0000

Hi,

Currently proced-update will clear any active refinements in proced-buffers (see proced-refine for information on refinements), which can be annoying when proced-auto-update-flag is non-nil as this will result in you only being able to see the refinement for a few seconds before the buffer updates and you're back to all processes.  To reproduce this:

(require 'proced)
(setq-default proced-auto-update-flag t)
(setq-default proced-auto-update-interval 1)

M-x proced, then create a new refinement by <ENTER> on the PID of any process.  You should see your refinement vanish after the next update.

The patch fixes aims to fix this by introducing a new buffer local variable "proced-refinements" which stores information about the current refinements, and is used by proced-update to further refine proced-process-alist in the case it is non-nil.

proced-revert will get rid of any existing refinements (bound to "g"), so the existing behaviour of refinements with proced-auto-update-flag set to nil should stay the same.

Thanks, Laurence

Attachment: 0001-Make-proced-update-preserve-refinements.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]