Function: in-string-p

in-string-p is a byte-compiled function defined in thingatpt.el.gz.

This function is obsolete since 25.1; use (nth 3 (syntax-ppss)) instead.

Signature

(in-string-p)

Documentation

Return non-nil if point is in a string.

Source Code

;; Defined in /usr/src/emacs/lisp/thingatpt.el.gz
(defun in-string-p ()
  "Return non-nil if point is in a string."
  (declare (obsolete "use (nth 3 (syntax-ppss)) instead." "25.1"))
  (let ((orig (point)))
    (save-excursion
      (beginning-of-defun)
      (nth 3 (parse-partial-sexp (point) orig)))))