Function: clojure-forward-logical-sexp

clojure-forward-logical-sexp is an interactive and byte-compiled function defined in clojure-mode.el.

Signature

(clojure-forward-logical-sexp &optional N)

Documentation

Move forward N logical sexps.

This will skip over sexps that don't represent objects, so that ^hints and
#reader.macros are considered part of the following sexp.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure-forward-logical-sexp (&optional n)
  "Move forward N logical sexps.
This will skip over sexps that don't represent objects, so that ^hints and
#reader.macros are considered part of the following sexp."
  (interactive "p")
  (unless n (setq n 1))
  (if (< n 0)
      (clojure-backward-logical-sexp (- n))
    (let ((forward-sexp-function nil))
      (while (> n 0)
        (while (clojure--looking-at-non-logical-sexp)
          (forward-sexp 1))
        ;; The actual sexp
        (forward-sexp 1)
        (skip-chars-forward ",")
        (setq n (1- n))))))