Prevent sort-buffer from calling all the after-change hooks
This commit is contained in:
parent
62996f9366
commit
4adcad6b2c
1 changed files with 3 additions and 1 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue