dbordak / telephone-line

A new implementation of Powerline for Emacs
GNU General Public License v3.0
550 stars 51 forks source link

Telephone line is slow to update #140

Closed WorldsEndless closed 1 year ago

WorldsEndless commented 1 year ago

Several of my uses of Telephone Line suffer from the sporadic update time of the modeline. I have created several segments, including a window number segment and a narrowing segment to be used with zones.el (so they should show how many levels I've narrowed). However, both seem to be operating on their own time scale; the window number falls out of sync when I create or delete multiple windows, which I do often, and doesn't get updated correctly until I make a mini-buffer change, like M-x to show a mini-buffer. The narrowing I thought wasn't working at all, until I came back once to resume an emacs session and saw, behold, it was showing me narrowing info (which was not responsive to updates). Even stopping and restarting telephone-line has no effect.

Is there something I can do programmatically to force telephone-line updates?

WorldsEndless commented 1 year ago

I no longer believe it is a Telephone problem; the problem lies with when the tracked values actually get changed. My telephone code looks for a variable that isn't changed as often as I thought it was.