Function: rst-Ado--validate-char

rst-Ado--validate-char is a byte-compiled function defined in rst.el.gz.

Signature

(rst-Ado--validate-char CHAR)

Documentation

Validate CHAR to be a valid adornment character.

Return CHAR if so or signal an error otherwise.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
;; Private class methods

(defun rst-Ado--validate-char (char)
  ;; testcover: ok.
  "Validate CHAR to be a valid adornment character.
Return CHAR if so or signal an error otherwise."
  (cl-check-type char character)
  (cl-check-type char (satisfies
		       (lambda (c)
			 (memq c rst-adornment-chars)))
		 "Character must be a valid adornment character")
  char)