Is there a way so that the Emacs are able to tell if the current user is undoing/redoing in the current buffer?
Here is the task I want to accomplish, I have add a hook to after-change-function
, it all works out great exclusive of when I hit undo/redo this hook get called too. And this is what I want to avoid... Is there other way to get around this issue?