Prevent sort-buffer from calling all the after-change hooks

This commit is contained in:
Craig Earls 2013-04-01 12:37:02 -07:00
parent 62996f9366
commit 4adcad6b2c

View file

@ -74,6 +74,7 @@
;; automagically
(let ((new-beg beg)
(new-end end))
(setq inhibit-modification-hooks t)
(save-excursion
(save-restriction
(goto-char beg)
@ -93,7 +94,8 @@
nil
'ledger-next-record-function
'ledger-end-record-function
'ledger-sort-startkey))))))
'ledger-sort-startkey))))
(setq inhibit-modification-hooks nil)))
(defun ledger-sort-buffer ()
"Sort the entire buffer."