branch: externals/jinx
commit 417d95002fbf6737d6463e56d2633badff25522c
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Use without-restriction
---
jinx.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/jinx.el b/jinx.el
index 74bb55a344..06df5cebd6 100644
--- a/jinx.el
+++ b/jinx.el
@@ -497,8 +497,7 @@ If CHECK is non-nil, always check first."
(defun jinx--cleanup ()
"Cleanup all overlays and trigger fontification."
(with-silent-modifications
- (save-restriction
- (widen)
+ (without-restriction
(jinx--delete-overlays (point-min) (point-max))
(remove-list-of-text-properties (point-min) (point-max) '(jinx--pending))
(jinx--in-base-buffer #'jit-lock-refontify))))
@@ -623,8 +622,7 @@ If CHECK is non-nil, always check first."
(defun jinx--recheck-overlays ()
"Recheck all overlays in buffer after a dictionary update."
(save-excursion
- (save-restriction
- (widen)
+ (without-restriction
(dolist (ov (overlays-in (point-min) (point-max)))
(when (eq (overlay-get ov 'category) 'jinx-overlay)
(goto-char (overlay-end ov))