Function: markdown-ts--barf-if-not-mode
markdown-ts--barf-if-not-mode is a byte-compiled function defined in
markdown-ts-mode.el.gz.
Signature
(markdown-ts--barf-if-not-mode &optional CONTEXT)
Documentation
Signal an error if the current buffer is not a markdown-ts-mode buffer.
Prefix the error message with CONTEXT.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--barf-if-not-mode (&optional context)
"Signal an error if the current buffer is not a `markdown-ts-mode' buffer.
Prefix the error message with CONTEXT."
(unless (derived-mode-p 'markdown-ts-mode)
(user-error "%sis valid only in `markdown-ts-mode' buffers"
(if context (format "%s: " context) ""))))