[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/ws-butler b9bcf50496 60/64: Inhibit modification hooks in
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/ws-butler b9bcf50496 60/64: Inhibit modification hooks in ws-butler-after-save |
Date: |
Fri, 31 Dec 2021 11:09:35 -0500 (EST) |
branch: elpa/ws-butler
commit b9bcf50496cb36007d1ed196fbeb9045be6b8430
Author: Henrik Lissner <accounts@v0.io>
Commit: GitHub <noreply@github.com>
Inhibit modification hooks in ws-butler-after-save
---
ws-butler.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/ws-butler.el b/ws-butler.el
index 262ef572e0..0cb5f62d84 100644
--- a/ws-butler.el
+++ b/ws-butler.el
@@ -279,15 +279,15 @@ ensure point doesn't jump due to white space trimming."
(ws-butler-clear-properties)
;; go to saved line+col
(when ws-butler-presave-coord
- (let (remaining-lines)
- (ws-butler-with-save
- (widen)
- (goto-char (point-min))
- (setq remaining-lines (forward-line (1- (car
ws-butler-presave-coord)))))
- (unless (eq remaining-lines 0)
- (insert (make-string remaining-lines ?\n))))
- (move-to-column (cadr ws-butler-presave-coord) t)
- (set-buffer-modified-p nil)))
+ (with-silent-modifications
+ (let (remaining-lines)
+ (ws-butler-with-save
+ (widen)
+ (goto-char (point-min))
+ (setq remaining-lines (forward-line (1- (car
ws-butler-presave-coord)))))
+ (unless (eq remaining-lines 0)
+ (insert (make-string remaining-lines ?\n))))
+ (move-to-column (cadr ws-butler-presave-coord) t))))
(defun ws-butler-before-revert ()
"Clear `ws-butler-presave-coord'."
- [nongnu] elpa/ws-butler 80dabd5d15 56/64: README tweak, (continued)
- [nongnu] elpa/ws-butler 80dabd5d15 56/64: README tweak, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 84b3666af3 04/64: fix revert-hook typo, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 24cd7721f8 21/64: widen before doing work, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 246e5655ab 23/64: Fix never removing blank lines from EOF., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler de5d1569bf 26/64: Clear buffer-modified-p only when necessary., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler d265cef1ef 12/64: rename function, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler d62694365c 34/64: Merge pull request #11 from chris-martin/readme-cleanup, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler b59e36b245 53/64: bump version to 0.5, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 7d57ac7cf6 42/64: Added `ws-butler-trim-predicate' custom variable, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 6f46d5885a 63/64: Revert "Inhibit modification hooks in ws-butler-after-save", Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler b9bcf50496 60/64: Inhibit modification hooks in ws-butler-after-save,
Stefan Kangas <=
- [nongnu] elpa/ws-butler af050ffb6c 09/64: fix typo in commentary #1, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler a5c01e3221 06/64: remove debug message, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 45a93f2bc2 18/64: add Travis-CI tests skeleton, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 0c941aedeb 31/64: Declare type of keep-whitespace-before-point, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 7d30203cf9 19/64: forgot to trim blanks in README (oh the irony!), Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler fe08e8770b 08/64: update lighter, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 8ca373047a 24/64: Fix point moving if after blanks., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 4154816145 27/64: Clean up end marker., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 106d313c0d 30/64: Fix package problems; bump version to 0.3., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 34393f1aaa 07/64: add install instructions, Stefan Kangas, 2021/12/31