branch: elpa/edit-indirect
commit 97215298e3d8ca32fc06f6ac8132d2ef1c3d52ef
Author: Fanael Linithien <[email protected]>
Commit: Fanael Linithien <[email protected]>
Use the end marker when invoking after commit functions
Fixes #27.
---
edit-indirect.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/edit-indirect.el b/edit-indirect.el
index cbb17dd2b7..ac0eb4f970 100644
--- a/edit-indirect.el
+++ b/edit-indirect.el
@@ -2,7 +2,7 @@
;; Author: Fanael Linithien <[email protected]>
;; URL: https://github.com/Fanael/edit-indirect
-;; Version: 0.1.11
+;; Version: 0.1.12
;; Package-Requires: ((emacs "24.3"))
;; This file is NOT part of GNU Emacs.
@@ -375,7 +375,7 @@ No error is signaled if `inhibit-read-only' or
(unless (string= new-data (match-string 0))
(replace-match new-data t t))))
(edit-indirect--run-hook-with-positions
- 'edit-indirect-after-commit-functions beg-marker (point))
+ 'edit-indirect-after-commit-functions beg-marker end-marker)
(set-marker beg-marker nil)
(set-marker end-marker nil))))
(set-buffer-modified-p nil)))