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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/embark 7b3feefa7e: Add pre-action hooks for replace-{st


From: ELPA Syncer
Subject: [elpa] externals/embark 7b3feefa7e: Add pre-action hooks for replace-{string, regexp}
Date: Sun, 7 May 2023 01:58:32 -0400 (EDT)

branch: externals/embark
commit 7b3feefa7eeb1e4b0a3e0e5a5a3ed7f6c06af12d
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>

    Add pre-action hooks for replace-{string,regexp}
    
    This way you can search for the region contents outside the region.
    Fixes #634.
---
 embark.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/embark.el b/embark.el
index 109384e4c7..536572cb8e 100644
--- a/embark.el
+++ b/embark.el
@@ -409,6 +409,8 @@ the key :always are executed always."
     (occur embark--unmark-target)
     (query-replace embark--beginning-of-target embark--unmark-target)
     (query-replace-regexp embark--beginning-of-target embark--unmark-target)
+    (replace-string embark--beginning-of-target embark--unmark-target)
+    (replace-regexp embark--beginning-of-target embark--unmark-target)
     ;; mark pseudo-action
     (mark embark--mark-target)
     ;; shells in new buffers



reply via email to

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