Function: electric-pair--with-syntax

electric-pair--with-syntax is a macro defined in elec-pair.el.gz.

Signature

(electric-pair--with-syntax STRING-OR-COMMENT &rest BODY)

Documentation

Run BODY with appropriate syntax table active.

STRING-OR-COMMENT is the start position of the string/comment in which we are, if applicable. Uses the text-mode syntax table if within a string or a comment.

Source Code

;; Defined in /usr/src/emacs/lisp/elec-pair.el.gz
(defmacro electric-pair--with-syntax (string-or-comment &rest body)
  "Run BODY with appropriate syntax table active.
STRING-OR-COMMENT is the start position of the string/comment
in which we are, if applicable.
Uses the text-mode syntax table if within a string or a comment."
  (declare (debug t) (indent 1))
  `(electric-pair--with-syntax-1 ,string-or-comment (lambda () ,@body)))