X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-tag.el;h=2fcf5a9e9fa65073a9bf0f71b839ce8af3dfc2c1;hp=c03027f705f631fa232aa56c01c980ffded40a3a;hb=caaa10876046096320f4e69053542eabe17e7e55;hpb=297d091e1ca8f5b1e144d2be0a8e0a7c271634a8 diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el index c03027f7..2fcf5a9e 100644 --- a/emacs/notmuch-tag.el +++ b/emacs/notmuch-tag.el @@ -24,8 +24,12 @@ ;;; Code: ;; -(require 'cl) +(require 'cl-lib) +(eval-when-compile + (require 'pcase)) + (require 'crm) + (require 'notmuch-lib) (declare-function notmuch-search-tag "notmuch" tag-changes) @@ -40,7 +44,9 @@ :args '((list :inline t :format "%v" (key-sequence :tag "Key") - (radio :tag "Tag operations" (repeat :tag "Tag list" (string :format "%v" :tag "change")) + (radio :tag "Tag operations" + (repeat :tag "Tag list" + (string :format "%v" :tag "change")) (variable :tag "Tag variable")) (string :tag "Name")))) @@ -57,10 +63,13 @@ tagging operations to apply, or a variable which contains a list of tagging operations such as `notmuch-archive-tags'. The final element is a name for this tagging operation. If the name is omitted or empty then the list of tag changes, or the variable -name is used as the name. The key `r` should not be used as that -is already bound: it switches the menu to a menu of the reverse -tagging operations. The reverse of a tagging operation is the -same list of individual tag-ops but with `+tag` replaced by +name is used as the name. + +The key `notmuch-tag-jump-reverse-key' (k by default) should not +be used (either as a key, or as the start of a key sequence) as +it is already bound: it switches the menu to a menu of the +reverse tagging operations. The reverse of a tagging operation is +the same list of individual tag-ops but with `+tag` replaced by `-tag` and vice versa. If setting this variable outside of customize then it should be a @@ -77,7 +86,7 @@ from TAGGING-OPERATIONS." :group 'notmuch-tag) (define-widget 'notmuch-tag-format-type 'lazy - "Customize widget for notmuch-tag-format and friends" + "Customize widget for notmuch-tag-format and friends." :type '(alist :key-type (regexp :tag "Tag") :extra-offset -3 :value-type @@ -112,7 +121,12 @@ Used in the default value of `notmuch-tag-formats`." :group 'notmuch-faces) (defface notmuch-tag-flagged - '((t :foreground "blue")) + '((((class color) + (background dark)) + (:foreground "LightBlue1")) + (((class color) + (background light)) + (:foreground "blue"))) "Face used for the flagged tag. Used in the default value of `notmuch-tag-formats`." @@ -222,7 +236,7 @@ DATA is the content of an SVG picture (e.g., as returned by (defun notmuch-tag-star-icon () "Return SVG data representing a star icon. This can be used with `notmuch-tag-format-image-data'." -" + "