melpa / package-build

Tools for assembling a package archive
https://github.com/melpa/melpa
25 stars 34 forks source link

package-recipe-mode--enable: put `whitespace-cleanup' on local `before-save-hook' #78

Closed wolfmanx closed 1 year ago

wolfmanx commented 1 year ago

After editing a recipe in a melpa repository, this one caught me by surprise, when all of a sudden various precariously formatted files came up mangled. It did take me a while to notice and then another while to find the cause of the problem. Therefore, I think it is a better idea to put this on the local `before-save-hook'.

Disclaimer: This pull request is meant to illustrate a problem without uttering a plethora of words. It is not meant to be the ultimate solution to a problem and the pull request can certainly be ignored, if there is a better way.

tarsius commented 1 year ago

Yikes! Thanks for the fix.