]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-parser.el
emacs: use setq-local
[notmuch] / emacs / notmuch-parser.el
index 3aa5bd8ff1cdc45f6265d9f2133e9e8b9e070c57..4a437016dc6b47d6e6e6fa33d76c31fa6ac1e5df 100644 (file)
@@ -168,9 +168,8 @@ additional data.  The caller just needs to ensure it does not
 move point in the input buffer."
   ;; Set up the initial state
   (unless (local-variable-p 'notmuch-sexp--parser)
-    (set (make-local-variable 'notmuch-sexp--parser)
-        (notmuch-sexp-create-parser))
-    (set (make-local-variable 'notmuch-sexp--state) 'begin))
+    (setq-local notmuch-sexp--parser (notmuch-sexp-create-parser))
+    (setq-local notmuch-sexp--state 'begin))
   (let (done)
     (while (not done)
       (cl-case notmuch-sexp--state