]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-tag.el
test: Test upgrade to ghost messages feature
[notmuch] / emacs / notmuch-tag.el
index 07c260ebbd07e13e23ce6524d1a5fdc9368ca481..f54aa9d69ef8d440a2e81756fd570ab32a96a2d8 100644 (file)
@@ -387,6 +387,8 @@ notmuch-after-tag-hook will be run."
          (unless (string-match-p "^[-+]\\S-+$" tag-change)
            (error "Tag must be of the form `+this_tag' or `-that_tag'")))
        tag-changes)
+  (unless query
+    (error "Nothing to tag!"))
   (unless (null tag-changes)
     (run-hooks 'notmuch-before-tag-hook)
     (if (<= (length query) notmuch-tag-argument-limit)