Function: cider--skip-back-over-comment

cider--skip-back-over-comment is a byte-compiled function defined in cider-util.el.

Signature

(cider--skip-back-over-comment)

Documentation

Move to the start of the line comment point sits in, if any.

Sexp motion has no notion of comments once point is inside one: it happily walks over the prose as if the words were symbols. Stepping out of the comment first means the search for a form resumes from the code that precedes it.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260920.725/cider-util.el
(defun cider--skip-back-over-comment ()
  "Move to the start of the line comment point sits in, if any.
Sexp motion has no notion of comments once point is inside one: it
happily walks over the prose as if the words were symbols.  Stepping out
of the comment first means the search for a form resumes from the code
that precedes it."
  (let ((ppss (syntax-ppss)))
    (when (nth 4 ppss)
      (goto-char (nth 8 ppss)))))