3 votes

Function add-variable-watcher does not watch "last-command" variable

[Please pose a separate question for what you're really trying to do (your first paragraph, which I've removed): how to highlight all the words in the buffer that match the word under cursor, when the ...
Drew's user avatar
  • 77.1k
3 votes

Tracking when variables get updated

Since 26.1, you can use add-variable-watcher to track the variable where and how be changed. Function: add-variable-watcher symbol watch-function Because the watch-function will be called with 4 ...
angeldsWang's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible