Function: editorconfig--get-trailing-ws
editorconfig--get-trailing-ws is a byte-compiled function defined in
editorconfig.el.gz.
Signature
(editorconfig--get-trailing-ws PROPS)
Documentation
Get vars to trim of trailing whitespace according to PROPS.
Source Code
;; Defined in /usr/src/emacs/lisp/editorconfig.el.gz
(defun editorconfig--get-trailing-ws (props)
"Get vars to trim of trailing whitespace according to PROPS."
(let ((fun (or editorconfig-trim-whitespaces-mode
#'delete-trailing-whitespace-mode)))
(pcase (gethash 'trim_trailing_whitespace props)
("true" `((eval . (,fun 1))))
("false"
;; Just do it right away rather than return a (VAR . VAL), which
;; would be probably more trouble than it's worth.
(funcall fun 0)
nil))))