Function: cider--goto-expression-start

cider--goto-expression-start is a byte-compiled function defined in cider-eval.el.

Signature

(cider--goto-expression-start)

Documentation

Go to the beginning a list, vector, map or set outside of a string.

We do so by starting and the current position and proceeding backwards until we find a delimiters that's not inside a string.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defun cider--goto-expression-start ()
  "Go to the beginning a list, vector, map or set outside of a string.
We do so by starting and the current position and proceeding backwards
until we find a delimiters that's not inside a string."
  (if (and (looking-back "[])}]" (line-beginning-position))
           (null (nth 3 (syntax-ppss))))
      (backward-sexp)
    (while (or (not (looking-at-p "[({[]"))
               (nth 3 (syntax-ppss)))
      (backward-char))))