Skip to content

Don't use post-command-hook to notify the changes of elscreen for display's performance #36

@aki-s

Description

@aki-s

Just repeating forward-char makes texts invisible by too much of requests to redraw display.

Emacs 26.3 on Darwin.


elscreen.el L.573

(defun elscreen-set-screen-modified ()
  (elscreen-set-conf-list 'modified-inquirer nil)
  (add-hook 'post-command-hook 'elscreen-run-screen-update-hook)) ;; <-- Don't

Using idel-timer with mutex would be the best answer.


Because this issue can be observed in random buffer (After window layout is changed (e.g. split window)?),
there may exist the other problem which mistakenly
calls elscreen-set-screen-modified by judging from incorrect internal state.

My assumption is that post-command-hook is not cleared properly by concurrency issue after elscreen-run-screen-update-hook is added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions