The value is the only possible value, it is only used in one
place, and using a global variable serves no purpose but to
make things more complicated.
(defvar notmuch-search-target-thread)
(defvar notmuch-search-target-line)
(defvar notmuch-search-target-thread)
(defvar notmuch-search-target-line)
-(defvar notmuch-search-disjunctive-regexp "\\<[oO][rR]\\>")
-
;;; Movement
(defun notmuch-search-scroll-up ()
;;; Movement
(defun notmuch-search-scroll-up ()
(defun notmuch-group-disjunctive-query-string (query-string)
"Group query if it contains a complex expression.
(defun notmuch-group-disjunctive-query-string (query-string)
"Group query if it contains a complex expression.
-
-Enclose QUERY-STRING in parentheses if it matches
-`notmuch-search-disjunctive-regexp'."
- (if (string-match-p notmuch-search-disjunctive-regexp query-string)
+Enclose QUERY-STRING in parentheses if contains \"OR\" operators."
+ (if (string-match-p "\\<[oO][rR]\\>" query-string)
(concat "( " query-string " )")
query-string))
(concat "( " query-string " )")
query-string))