]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-message.el
emacs: Prefer '[No Subject]' to blank subjects.
[notmuch] / emacs / notmuch-message.el
index d5c96c2b43ec967f5e5c768cb7babbd95ef7765d..264a5b9b496f483df94e0dde844b7d926712a6e2 100644 (file)
@@ -31,7 +31,7 @@ For example, if you wanted to add a \"replied\" tag and remove
 the \"inbox\" and \"todo\", you would set
     (\"replied\" \"-inbox\" \"-todo\"\)"
   :type 'list
-  :group 'notmuch)
+  :group 'notmuch-send)
 
 (defun notmuch-message-mark-replied ()
   ;; get the in-reply-to header and parse it for the message id.
@@ -39,13 +39,12 @@ the \"inbox\" and \"todo\", you would set
     (when (and notmuch-message-replied-tags rep)
       ;; add a "+" to any tag that is doesn't already begin with a "+"
       ;; or "-"
-      (let ((tags (mapcar '(lambda (str)
-                            (if (not (string-match "^[+-]" str))
-                                (concat "+" str)
-                              str))
+      (let ((tags (mapcar (lambda (str)
+                           (if (not (string-match "^[+-]" str))
+                               (concat "+" str)
+                             str))
                          notmuch-message-replied-tags)))
-       (apply 'notmuch-call-notmuch-process "tag"
-              (append tags (list (concat "id:" (car (car rep)))) nil))))))
+       (apply 'notmuch-tag (concat "id:" (car (car rep))) tags)))))
 
 (add-hook 'message-send-hook 'notmuch-message-mark-replied)