branch: scratch/editorconfig-cc commit 4185bcfac26bbbf239f1741902e1a1ed5d25afbc Author: 10sr <8.slas...@gmail.com> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
Call -hack-properties-functions in editorconfig-apply --- editorconfig.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/editorconfig.el b/editorconfig.el index 6dd4ae0068..c1238ffbc5 100644 --- a/editorconfig.el +++ b/editorconfig.el @@ -471,6 +471,13 @@ applies available properties." (error "Invalid editorconfig-get-properties-function value")) (let ((props (funcall editorconfig-get-properties-function))) (progn + (condition-case err + (run-hook-with-args 'editorconfig-hack-properties-functions props) + (error + (display-warning 'editorconfig-hack-properties-functions + (concat (error-message-string err) + ". Abort running hook.") + :warning))) (setq editorconfig-properties-hash props) (editorconfig-set-coding-system (gethash 'end_of_line props)