[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ce9f6fd 3/7: Fix el-search-query-replace reindent wrongly
From: |
Michael Heerdegen |
Subject: |
[elpa] master ce9f6fd 3/7: Fix el-search-query-replace reindent wrongly in narrowed buffer |
Date: |
Thu, 11 Aug 2016 05:21:38 +0000 (UTC) |
branch: master
commit ce9f6fdd7463b10bc5c498acd1164114bee2f31e
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>
Fix el-search-query-replace reindent wrongly in narrowed buffer
---
packages/el-search/el-search.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/el-search/el-search.el b/packages/el-search/el-search.el
index fc68ae2..28343d4 100644
--- a/packages/el-search/el-search.el
+++ b/packages/el-search/el-search.el
@@ -1100,7 +1100,9 @@ Hit any key to proceed."
(do-replace
(lambda ()
(save-excursion
- (el-search--replace-hunk (list (point)
(el-search--end-of-sexp)) to-insert))
+ (save-restriction
+ (widen)
+ (el-search--replace-hunk (list (point)
(el-search--end-of-sexp)) to-insert)))
(el-search--ensure-sexp-start) ;skip potentially newly
added whitespace
(el-search-hl-sexp (list opoint (point)))
(cl-incf nbr-replaced)
- [elpa] master updated (9208777 -> bdffc13), Michael Heerdegen, 2016/08/11
- [elpa] master ae0dbe9 4/7: el-search--make-docstring: exclude some specially named patterns, Michael Heerdegen, 2016/08/11
- [elpa] master ce9f6fd 3/7: Fix el-search-query-replace reindent wrongly in narrowed buffer,
Michael Heerdegen <=
- [elpa] master 87f8a1c 1/7: Update copyright, Michael Heerdegen, 2016/08/11
- [elpa] master bdffc13 7/7: el-search: bump version to 0.2.2, Michael Heerdegen, 2016/08/11
- [elpa] master 9f454b1 5/7: Add calling convention to el-search-defpattern's docstring, Michael Heerdegen, 2016/08/11
- [elpa] master 25da7c6 6/7: Improve `change' and `changed', Michael Heerdegen, 2016/08/11
- [elpa] master c0a7b2d 2/7: Move some pattern definitions to new file "el-search-x", Michael Heerdegen, 2016/08/11