Function: ebnf-insert-style

ebnf-insert-style is an autoloaded, interactive and byte-compiled function defined in ebnf2ps.el.gz.

Signature

(ebnf-insert-style NAME INHERITS &rest VALUES)

Documentation

Insert a new style NAME with inheritance INHERITS and values VALUES.

See ebnf-style-database documentation.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebnf2ps.el.gz
;;;###autoload
(defun ebnf-insert-style (name inherits &rest values)
  "Insert a new style NAME with inheritance INHERITS and values VALUES.

See `ebnf-style-database' documentation."
  (interactive "SStyle name: \nSStyle inherits from: \nXStyle values: ")
  (and (assoc name ebnf-style-database)
       (error "Style name already exists: %s" name))
  (or (assoc inherits ebnf-style-database)
      (error "Style inheritance name doesn't exist: %s" inherits))
  (setq ebnf-style-database
	(cons (cons name (cons inherits (ebnf-check-style-values values)))
	      ebnf-style-database)))