Remove read-only monkey patch for magit/git-rebase

It was fixed upstream.
This commit is contained in:
Henrik Lissner 2018-07-10 14:22:53 +02:00
parent 933e52b886
commit 616c48bd62
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -55,12 +55,5 @@ extension, try to guess one."
(delq (assq mode editorconfig-indentation-alist) (delq (assq mode editorconfig-indentation-alist)
editorconfig-indentation-alist)) editorconfig-indentation-alist))
(defun +editorconfig|disable-trim-whitespace-in-read-only-buffers (props)
"`delete-trailing-whitespace' can cause disruptive read-only errors. Prevent
it from being added to read-only buffers."
(when (and buffer-read-only (gethash 'trim_trailing_whitespace props))
(remove-hook 'write-file-functions #'delete-trailing-whitespace :local)))
(add-hook 'editorconfig-custom-hooks #'+editorconfig|disable-trim-whitespace-in-read-only-buffers)
;; ;;
(editorconfig-mode +1)) (editorconfig-mode +1))