Function: combobulate-query-builder-update-variable
combobulate-query-builder-update-variable is a natively compiled
function defined in combobulate-query.el.
Signature
(combobulate-query-builder-update-variable TARGET MODE LANGUAGE QUERY)
Documentation
Update the file or directory local TARGET for MODE with LANGUAGE and QUERY.
Source Code
;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-query.el
(defun combobulate-query-builder-update-variable (target mode language query)
"Update the file or directory local TARGET for MODE with LANGUAGE and QUERY."
(with-current-buffer combobulate-query-builder-target-buffer-name
(let ((queries (append combobulate-highlight-queries-alist
`((:language ,language :query ,query)))))
(if (eq target 'file)
(modify-file-local-variable 'combobulate-highlight-queries-alist queries 'add-or-replace)
(modify-dir-local-variable mode 'combobulate-highlight-queries-alist queries 'add-or-replace)))))