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

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

[nongnu] elpa/iedit a7f5ed7cf9 257/301: Turn off iedit-mode at running `


From: ELPA Syncer
Subject: [nongnu] elpa/iedit a7f5ed7cf9 257/301: Turn off iedit-mode at running `iedit-mode-toggle-on-function` twice
Date: Mon, 10 Jan 2022 22:59:08 -0500 (EST)

branch: elpa/iedit
commit a7f5ed7cf9462ceaa147f0c3669ad1f91bfc84e4
Author: victor <victorhge@gmail.com>
Commit: Victor <victorhge@gmail.com>

    Turn off iedit-mode at running `iedit-mode-toggle-on-function` twice
---
 iedit.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/iedit.el b/iedit.el
index a21138ecea..e21291cb68 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
 
 ;; Copyright (C) 2010, 2011, 2012 Victor Ren
 
-;; Time-stamp: <2020-04-12 14:43:27 Victor Ren>
+;; Time-stamp: <2020-07-05 21:59:22 Victor Ren>
 ;; Author: Victor Ren <victorhge@gmail.com>
 ;; Keywords: occurrence region simultaneous refactoring
 ;; Version: 0.9.9.9
@@ -605,7 +605,9 @@ the initial string globally."
 (defun iedit-mode-toggle-on-function ()
   "Toggle Iedit mode on current function."
   (interactive)
-  (iedit-mode 0))
+  (if iedit-mode
+         (iedit-done)
+       (iedit-mode 0)))
 
 (defun iedit-execute-last-modification (&optional arg)
   "Apply last modification in Iedit mode to the current buffer or an active 
region."



reply via email to

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