aboutsummaryrefslogtreecommitdiff
path: root/test/test-lib.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2020-08-08 13:50:07 +0200
committerDavid Bremner <david@tethera.net>2020-08-09 21:17:06 -0300
commit3665914f71fc7be2f537ec0ae2647f768c7f5bbe (patch)
tree031e82738d446e080be26c1d91f4a032e48c9aef /test/test-lib.el
parent96baa2231882e9a9025797b1f9945ba6b2751dd4 (diff)
emacs: Do not abuse advice to monkey patch while testing
Use `cl-letf*' instead.
Diffstat (limited to 'test/test-lib.el')
-rw-r--r--test/test-lib.el8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/test-lib.el b/test/test-lib.el
index 044c2da4..ec16c59c 100644
--- a/test/test-lib.el
+++ b/test/test-lib.el
@@ -97,14 +97,6 @@ running, quit if it terminated."
(add-hook 'notmuch-hello-refresh-hook
(lambda () (cl-incf notmuch-hello-refresh-hook-counter)))
-(defadvice notmuch-search-process-filter (around pessimal activate disable)
- "Feed notmuch-search-process-filter one character at a time."
- (let ((string (ad-get-arg 1)))
- (cl-loop for char across string
- do (progn
- (ad-set-arg 1 (char-to-string char))
- ad-do-it))))
-
(defun notmuch-test-mark-links ()
"Enclose links in the current buffer with << and >>."
;; Links are often created by jit-lock functions