emacs-php / php-mode

A powerful and flexible Emacs major mode for editing PHP scripts
GNU General Public License v3.0
580 stars 118 forks source link

Add php-format-disable-async-format-buffer-has-modified #733

Closed zonuexe closed 1 year ago

zonuexe commented 1 year ago

If the buffer was modified between the time the file was saved and the timer fired, it makes sense to cancel the formatter invocation to avoid conflicting editor and formatter states.

To make sure your code is formatted by php-format-auto-mode, save and take a break from your keyboard.

fixes https://github.com/emacs-php/php-mode/pull/731