Function: combobulate-query-builder-get-node-text

combobulate-query-builder-get-node-text is a natively compiled function defined in combobulate-query.el.

Signature

(combobulate-query-builder-get-node-text NODE &optional MAX-LENGTH)

Documentation

Return NODE's text, truncated to MAX-LENGTH characters.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-query.el
(defun combobulate-query-builder-get-node-text (node &optional max-length)
  "Return NODE's text, truncated to MAX-LENGTH characters."
  (let ((text (combobulate-node-text node)))
    (if (> (length text) (or max-length 50))
        (concat (substring text 0 (or max-length 50)))
      text)))