unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Rahguzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 69784@debbugs.gnu.org
Subject: bug#69784: 29.2; Proced auto update should only update visible buffers
Date: Thu, 14 Mar 2024 09:54:46 +0100	[thread overview]
Message-ID: <875xxpw5i0.fsf@zohomail.eu> (raw)
In-Reply-To: <86wmq5beab.fsf@gnu.org>

Hi Eli,

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Wed, 13 Mar 2024 22:00:17 +0100
>> From:  Rahguzar via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>
>> I use proced with 'proced-auto-update-flag' set to 't'. Often I quit the
>> window showing proced buffer and later some profile shows that the timer
>> used to update proced is taking a big chunk of time.
>>
>> Since updating the proced buffer is a somewhat expensive operation, I
>> think the update should happen only if a proced buffer is visible.
>>
>> I can send a patch to that changes 'proced-auto-update-timer' to this
>> effect.
>
> As a user option, this sounds useful.  So please do send a patch, but
> please add such an option, because I can imagine users who'd like
> Proced buffers to be always up-to-date, regardless of whether they are
> displayed.
>
> Thanks.

What about a special value 'visible' for proced-auto-update-flag instead
of a separate option?

The only wrinkle might be how to set this value using
proced-toggle-auto-update. There is also the slight inconsistency that
it makes proced-auto-update-flag not a flag.

Rahguzar





  reply	other threads:[~2024-03-14  8:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-13 21:00 bug#69784: 29.2; Proced auto update should only update visible buffers Rahguzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-14  4:58 ` Eli Zaretskii
2024-03-14  8:54   ` Rahguzar via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-03-14 11:16     ` Eli Zaretskii
2024-03-15 17:52       ` Rahguzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-28  9:51         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875xxpw5i0.fsf@zohomail.eu \
    --to=bug-gnu-emacs@gnu.org \
    --cc=69784@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=rahguzar@zohomail.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).