]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.el
notmuch.el: Don't use beginning-of-buffer from elisp program.
[notmuch] / notmuch.el
index 96c5d965e1dcf35a6061c307ca5a19022cc292b3..9b23e3511fbd789e8aaca6ed9c374826b57e475f 100644 (file)
@@ -877,7 +877,7 @@ thread from that buffer can be show when done with this one)."
                           (setq btn (forward-button 1))
                         (error (setq btn nil)))
                     ))
-                  (beginning-of-buffer)
+                  (goto-char (point-min))
                   ))))
       )))
 
@@ -1152,7 +1152,7 @@ characters as well as `_.+-'.
     (let ((words action-split))
       (when (null words) (error "No operation given"))
       (while words
-       (unless (string-match-p "^[\+\-][_\+\-\\w]+$" (car words))
+       (unless (string-match-p "^[-+][-+_.[:word:]]+$" (car words))
          (error "Action must be of the form `+thistag -that_tag'"))
        (setq words (cdr words))))
     (apply 'notmuch-call-notmuch-process "tag"