{"action":"closed","issue":{"url":"https://api.github.com/repos/justbur/emacs-which-key/issues/126","repository_url":"https://api.github.com/repos/justbur/emacs-which-key","labels_url":"https://api.github.com/repos/justbur/emacs-which-key/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/justbur/emacs-which-key/issues/126/comments","events_url":"https://api.github.com/repos/justbur/emacs-which-key/issues/126/events","html_url":"https://github.com/justbur/emacs-which-key/issues/126","id":156990139,"number":126,"title":"Non nil which-key-idle-secondary-delay causes performance issue","user":{"login":"hedning","id":71978,"avatar_url":"https://avatars.githubusercontent.com/u/71978?v=3","gravatar_id":"","url":"https://api.github.com/users/hedning","html_url":"https://github.com/hedning","followers_url":"https://api.github.com/users/hedning/followers","following_url":"https://api.github.com/users/hedning/following{/other_user}","gists_url":"https://api.github.com/users/hedning/gists{/gist_id}","starred_url":"https://api.github.com/users/hedning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedning/subscriptions","organizations_url":"https://api.github.com/users/hedning/orgs","repos_url":"https://api.github.com/users/hedning/repos","events_url":"https://api.github.com/users/hedning/events{/privacy}","received_events_url":"https://api.github.com/users/hedning/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-26T13:58:57Z","updated_at":"2016-05-27T13:33:08Z","closed_at":"2016-05-27T13:33:08Z","body":"### Description\r\n\r\nSetting `which-key-idle-secondary-delay` to eg. `0` causes emacs to use 100%\r\ncpu when the which-key popup is open and the frame has focus. In some cases, eg.\r\nin the spacemacs start buffer (`*spacmacs*`) the cursor will flicker between the\r\npopup and the buffer.\r\n\r\nAs a secondary issue it also causes the message from an executed command to\r\nbe overwritten when the popup is open. I'm guessing this might be related since\r\nit seems that `which-key--start-timer` is run too often from `which-key--update`.\r\n\r\nThis is a really nice feature which makes the popup a lot more responsive, so it\r\nwould be great to have it working.\r\n\r\nTested in spacmacs develop.\r\n\r\n### Reproduction\r\n- eval `(setq which-key-idle-secondary-delay 0)`\r\n- open the which-key popup\r\n\r\n#### Result\r\n\r\nEmacs uses 100% cpu when the frame is focused.\r\n\r\n### Reproduction of secondary issue\r\n- eval `(setq which-key-idle-secondary-delay 0)`\r\n- start a prefix binding which will output to the minibuffer\r\n- wait for the popup\r\n- finish the command\r\n\r\n#### Result\r\n\r\nThe minibuffer shows the prefix keys and the `C-h` help text.\r\n"}}
{"actor":{"display_login":"justbur"}}