Function: ispell-comment-or-string-at-point
ispell-comment-or-string-at-point is an autoloaded, interactive and
byte-compiled function defined in ispell.el.gz.
Signature
(ispell-comment-or-string-at-point)
Documentation
Check the comment or string containing point for spelling errors.
Probably introduced at or before Emacs version 28.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/ispell.el.gz
;;;###autoload
(defun ispell-comment-or-string-at-point ()
"Check the comment or string containing point for spelling errors."
(interactive)
(save-excursion
(let ((state (syntax-ppss)))
(if (or (nth 3 state) (nth 4 state))
(ispell-region (nth 8 state)
(progn (parse-partial-sexp (point) (point-max)
nil nil state 'syntax-table)
(point)))
(user-error "Not inside a string or comment")))))