You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes you may want a monitor to only be enabled in a particular buffer, but not others. For this we could use a concept of 'buffer-local' monitors, allowing them to be enabled/disabled on a per-buffer basis.
Things to think about
What would 'buffer-local' monitors mean for certain types of monitor such as timers? Should we even allow this?
We may want to restrict the types of monitors that can be buffer local.
We could potentially track every buffer a monitor (instance) is enabled in by adding information to the variable.
We would have a special monitor (or hook) that would run when switching buffers, look at the enabled monitor instances then disable any that aren't supposed to be enabled in the current buffer.
We would also need to look through any disabled instances to see if any monitors should be enabled.
We would have a mechanism for specifying a monitor may be enabled globally.
Disadvantages: we would effectively need to look through every (non-global?) monitor instance every time we switch buffer.
The text was updated successfully, but these errors were encountered:
Sometimes you may want a monitor to only be enabled in a particular buffer, but not others. For this we could use a concept of 'buffer-local' monitors, allowing them to be enabled/disabled on a per-buffer basis.
Things to think about
Syntax
For instances:
For monitors (defaults instances to buffer-local):
Possible approaches
We could potentially track every buffer a monitor (instance) is enabled in by adding information to the variable.
We would have a special monitor (or hook) that would run when switching buffers, look at the enabled monitor instances then disable any that aren't supposed to be enabled in the current buffer.
We would also need to look through any disabled instances to see if any monitors should be enabled.
We would have a mechanism for specifying a monitor may be enabled globally.
Disadvantages: we would effectively need to look through every (non-global?) monitor instance every time we switch buffer.
The text was updated successfully, but these errors were encountered: