Function: macroexp--posify-form

macroexp--posify-form is a byte-compiled function defined in macroexp.el.gz.

Signature

(macroexp--posify-form FORM CALL-POS)

Documentation

Try to apply the position CALL-POS to the form FORM, if needed.

CALL-POS is a buffer position, a number. FORM may be any lisp form, and is typically the output form returned by a macro expansion.

Apply CALL-POS to FORM as a symbol with position, such that byte-compile--first-symbol-with-pos can later return it. If there is already a symbol with position in a "canonical" position for that function, leave it unchanged and do nothing. Return the possibly modified FORM.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/macroexp.el.gz
(defun macroexp--posify-form (form call-pos)
  "Try to apply the position CALL-POS to the form FORM, if needed.
CALL-POS is a buffer position, a number.  FORM may be any lisp form,
and is typically the output form returned by a macro expansion.

Apply CALL-POS to FORM as a symbol with position, such that
`byte-compile--first-symbol-with-pos' can later return it.  If there is
already a symbol with position in a \"canonical\" position for that
function, leave it unchanged and do nothing.  Return the possibly
modified FORM."
  (let ((new-form (macroexp--posify-form-1 form call-pos 10)))
    (or new-form form)))