emacs-elpa-diffs
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]