Function: combobulate-query-builder--after-change

combobulate-query-builder--after-change is a natively compiled function defined in combobulate-query.el.

Signature

(combobulate-query-builder--after-change &rest ARGS)

Documentation

Run query against the target buffer and highlight the matches.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-query.el
(defun combobulate-query-builder--after-change (&rest _args)
  "Run query against the target buffer and highlight the matches."
  (ignore-errors
    (with-current-buffer (get-buffer combobulate-query-builder-buffer-name)
      (when combobulate-query-builder-parser
        (let ((query (combobulate-query-builder-get-query)))
          (if-let (err (with-current-buffer combobulate-query-builder-target-buffer-name
                         (combobulate-query-builder-validate-query query)))
              ;; invalid query
              (seq-let [start &rest message] err
                (combobulate-query-builder-update-header
                 (propertize (format "%s position `%s'" message start) 'face 'warning)))
            ;; query is valid
            (combobulate-query-builder-eval-query query)))))))