]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix TEXT check in gnus-search IMAP search
authorEric Abrahamsen <eric@ericabrahamsen.net>
Sat, 6 Feb 2021 17:29:53 +0000 (09:29 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Sat, 6 Feb 2021 17:29:53 +0000 (09:29 -0800)
* lisp/gnus/gnus-search.el (gnus-search-run-search): It's a string,
not a buffer!

lisp/gnus/gnus-search.el

index f3e08519c3e9ec5ee814f69fca576cea8d66398c..0783d34733a01e717d1bb598008da16e5ba398c1 100644 (file)
@@ -1040,7 +1040,7 @@ Responsible for handling and, or, and parenthetical expressions.")
       ;; A bit of backward-compatibility slash convenience: if the
       ;; query string doesn't start with any known IMAP search
       ;; keyword, assume it is a "TEXT" search.
-      (unless (or (looking-at "(")
+      (unless (or (eql ?\( (aref q-string 0))
                  (and (string-match "\\`[^[:blank:]]+" q-string)
                       (memql (intern-soft (downcase
                                            (match-string 0 q-string)))