Function: faceup-test-font-lock-string

faceup-test-font-lock-string is a byte-compiled function defined in faceup.el.gz.

Signature

(faceup-test-font-lock-string MODE FACEUP)

Documentation

True if FACEUP is re-fontified as the faceup markup for major mode MODE.

The string FACEUP is stripped from markup, inserted into a buffer, the requested major mode activated, the buffer is fontified, the result is again converted to the faceup form, and compared with the original string.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/faceup.el.gz
(defun faceup-test-font-lock-string (mode faceup)
  "True if FACEUP is re-fontified as the faceup markup for major mode MODE.

The string FACEUP is stripped from markup, inserted into a
buffer, the requested major mode activated, the buffer is
fontified, the result is again converted to the faceup form, and
compared with the original string."
  (with-temp-buffer
    (insert faceup)
    (faceup-clean-buffer)
    (faceup-test-font-lock-buffer mode faceup)))