]> git.notmuchmail.org Git - notmuch/blobdiff - test/T450-emacs-show.sh
test/emacs: force *Messages* buffer to be writable
[notmuch] / test / T450-emacs-show.sh
index 2a3a5356303a89ccfad1efe26f04bb2bf3dbbfe1..bfcd5efedaf9f409d37aa75c36eaddb668a2cc64 100755 (executable)
@@ -173,7 +173,8 @@ exit 1
 EOF
 chmod a+x notmuch_fail
 test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\"))
-              (with-current-buffer \"*Messages*\" (erase-buffer))
+              (with-current-buffer \"*Messages*\"
+                  (let ((inhibit-read-only t)) (erase-buffer)))
               (condition-case err
                   (notmuch-show \"*\")
                 (error (message \"%s\" (second err))))