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
|
;; automagically
|
||||||
(let ((new-beg beg)
|
(let ((new-beg beg)
|
||||||
(new-end end))
|
(new-end end))
|
||||||
|
(setq inhibit-modification-hooks t)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(save-restriction
|
(save-restriction
|
||||||
(goto-char beg)
|
(goto-char beg)
|
||||||
|
|
@ -93,7 +94,8 @@
|
||||||
nil
|
nil
|
||||||
'ledger-next-record-function
|
'ledger-next-record-function
|
||||||
'ledger-end-record-function
|
'ledger-end-record-function
|
||||||
'ledger-sort-startkey))))))
|
'ledger-sort-startkey))))
|
||||||
|
(setq inhibit-modification-hooks nil)))
|
||||||
|
|
||||||
(defun ledger-sort-buffer ()
|
(defun ledger-sort-buffer ()
|
||||||
"Sort the entire buffer."
|
"Sort the entire buffer."
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue