Skip to content

Commit dec2a38

Browse files
committed
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.
1 parent 54a084f commit dec2a38

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/ui/modeline/config.el

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@
4242
(doom-modeline-set-modeline 'magit)
4343
(hide-mode-line-mode))))
4444

45-
;; Some functions modify the buffer, causing the modeline to show a false
46-
;; modified state, so force them to behave.
47-
(defadvice! +modeline--inhibit-modification-hooks-a (fn &rest args)
48-
:around #'ws-butler-after-save
49-
(with-silent-modifications (apply fn args)))
50-
5145

5246
;;
5347
;;; Extensions

0 commit comments

Comments
 (0)