X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.el;h=a12333900801736843d6032db91f071647a0b056;hp=aae9e8333f5f7558b4116b83c5263774a5769782;hb=09f6533c3781b61ea634790d4bad38aadf89115c;hpb=dfb1b8eb89e814f4bf6f6e62b700c72aa1b4659a diff --git a/test/test-lib.el b/test/test-lib.el index aae9e833..a1233390 100644 --- a/test/test-lib.el +++ b/test/test-lib.el @@ -81,7 +81,7 @@ invisible text." (let (str) (while (< start end) (let ((next-pos (next-char-property-change start end))) - (when (not (invisible-p start)) + (unless (invisible-p start) (setq str (concat str (buffer-substring-no-properties start next-pos)))) (setq start next-pos))) @@ -97,8 +97,8 @@ invisible text." (defun orphan-watchdog-check (pid) "Periodically check that the process with id PID is still running, quit if it terminated." - (if (not (test-process-running pid)) - (kill-emacs))) + (unless (test-process-running pid) + (kill-emacs))) (defun orphan-watchdog (pid) "Initiate orphan watchdog check."