[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 9fd1b43170 229/301: Fix failed test cases for Emacs
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 9fd1b43170 229/301: Fix failed test cases for Emacs 25.1 |
Date: |
Mon, 10 Jan 2022 22:59:05 -0500 (EST) |
branch: elpa/iedit
commit 9fd1b43170982b2257a7d5c1d1c51907f272273c
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Fix failed test cases for Emacs 25.1
---
iedit-tests.el | 8 ++++++--
iedit.el | 14 ++++++++------
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/iedit-tests.el b/iedit-tests.el
index 46a420ce8e..efb9c44e0b 100644
--- a/iedit-tests.el
+++ b/iedit-tests.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-06-18 18:00:27 Victor Ren>
+;; Time-stamp: <2016-09-20 00:28:29 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Version: 0.97
;; X-URL: http://www.emacswiki.org/emacs/Iedit
@@ -43,7 +43,10 @@
(when (get-buffer ,buffer-name)
(kill-buffer ,buffer-name))
(with-current-buffer (get-buffer-create ,buffer-name)
- ,@body)))
+ ;; Give the current temp buffer a window. Otherwise `recenter' will
+ ;; trigger an error message.
+ (progn (set-window-buffer nil ,buffer-name)
+ ,@body))))
(defun marker-position-list (l)
"convert list of markers to positions"
@@ -242,6 +245,7 @@ fob")))))
(should (string= iedit-initial-string-local "foo"))
(iedit-mode)
(with-temp-buffer
+ (set-window-buffer nil (current-buffer))
(insert "bar foo foo")
(goto-char 1)
(iedit-mode 16)
diff --git a/iedit.el b/iedit.el
index 0bc4a1bdba..f44b9a3d59 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-07-12 15:03:42 Victor Ren>
+;; Time-stamp: <2016-09-20 00:04:51 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous refactoring
;; Version: 0.9.9
@@ -76,7 +76,9 @@
;;; Code:
-(eval-when-compile (require 'cl))
+(eval-when-compile
+ (require 'cl)
+ (require 'sgml-mode))
(require 'iedit-lib)
(defcustom iedit-toggle-key-default (kbd "C-;")
@@ -380,15 +382,15 @@ Keymap used within overlays:
"Start Iedit mode using last search string as the regexp."
(interactive
(let ((regexp (cond
- ((functionp isearch-word)
- (funcall isearch-word isearch-string))
- (isearch-word (word-search-regexp isearch-string))
+ ((functionp isearch-regexp-function)
+ (funcall isearch-regexp-function isearch-string))
+ (isearch-regexp-function (word-search-regexp isearch-string))
(isearch-regexp isearch-string)
(t (regexp-quote isearch-string)))))
(list regexp)))
(or isearch-success
(error "No match" ))
- (if (or isearch-regexp isearch-word)
+ (if (or isearch-regexp isearch-regexp-function)
nil
(setq iedit-initial-string-local isearch-string))
(let ((iedit-case-sensitive (not isearch-case-fold-search)))
- [nongnu] elpa/iedit 50b7da10ac 251/301: Add option `iedit-auto-buffering`, (continued)
- [nongnu] elpa/iedit 50b7da10ac 251/301: Add option `iedit-auto-buffering`, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3211c2ee6c 228/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 93b642f0a8 286/301: A few small fixes, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 02b4a6553e 243/301: Add the index of the current occurrence on mode-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06e600aae2 222/301: Fix: use return value of iedit-default-occurrence-mode-local, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit abcc27a9f0 231/301: Add Installation instruction, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8b620efacb 262/301: Replace `inhibit-modification-hooks' with `iedit-updating', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6d2694356c 253/301: Move "declare-function" invocations outside of "when" statement., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f6682186f0 242/301: Replace eval-after-load with require check, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 14376a97e0 223/301: Ignore error in `iedit-mark-sgml-pair', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9fd1b43170 229/301: Fix failed test cases for Emacs 25.1,
ELPA Syncer <=
- [nongnu] elpa/iedit 658c10a249 244/301: fix issue of iedit-restrict-function doesn't update mode-line text correctly, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06f1f50939 224/301: Merge pull request #65 from pstray/master, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c11ecd9080 273/301: Update copyright notice, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e5b51ac0af 278/301: Move hooks setup to iedit-lib to reduce code duplication, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c00a8ba805 272/301: Add a new feature - preserve case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4ef9bf6323 287/301: prefix-arg for `iedit-next-occurrence` and `iedit-prev-occurrence`, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3d71392852 276/301: Fix as well issue #118, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f7184f81d6 284/301: Clean up some lines of unnecessary code, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 2e1fd5b1b2 295/301: fix a byte compile issue, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 012de2e8d8 293/301: A few rephase in doc, ELPA Syncer, 2022/01/10