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