emacs-import-js icon indicating copy to clipboard operation
emacs-import-js copied to clipboard

Save on window switch writes fixed import result to other window

Open leoc opened this issue 6 years ago • 2 comments

Hi, thanks for this awesome time saving tool!

I configured import-js-fix to be run via after-save-hook. I also have configured a hook that saves the buffer when I am switching to another buffer/window. Sometimes, when I switch to another window, the "fixed code" (of the buffer I was switching away from) is written to the newly selected window buffer.

I will see whether I find time to investigate this week. I suppose a save-excursion and a buffer switch before updating fixed imports would suffice. Maybe you have a quick idea.

Peace & Love

leoc avatar Jul 09 '18 07:07 leoc