fix(modeline): remove advice causing org-element cache errors in org
This advice was suppressing ws-butler's modification hooks, which had a nasty side-effect of modifying org buffers without letting its org-element cache know that it's stale, which resulted in errors like this, followed by a backtrace: Warning (org-element): org-element--cache: Unregistered buffer modifications detected (175 != 176). Resetting. If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report). The advice isn't needed anymore, anyhow.
This commit is contained in:
parent
54a084fed7
commit
dec2a387ad
1 changed files with 0 additions and 6 deletions
|
@ -42,12 +42,6 @@
|
||||||
(doom-modeline-set-modeline 'magit)
|
(doom-modeline-set-modeline 'magit)
|
||||||
(hide-mode-line-mode))))
|
(hide-mode-line-mode))))
|
||||||
|
|
||||||
;; Some functions modify the buffer, causing the modeline to show a false
|
|
||||||
;; modified state, so force them to behave.
|
|
||||||
(defadvice! +modeline--inhibit-modification-hooks-a (fn &rest args)
|
|
||||||
:around #'ws-butler-after-save
|
|
||||||
(with-silent-modifications (apply fn args)))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Extensions
|
;;; Extensions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue