Function: indent-bars--new-style

indent-bars--new-style is a natively compiled function defined in indent-bars.el.

Signature

(indent-bars--new-style &optional TAG)

Documentation

Create and record a new style struct with TAG.

A new style is only created if an existing style with that TAG is no yet recorded.

Source Code

;; Defined in /nix/store/zkcdcnmcj3605fj09x584bf58d85brax-emacs-packages-deps/share/emacs/site-lisp/elpa/indent-bars-1.0.1/indent-bars.el
(defun indent-bars--new-style (&optional tag)
  "Create and record a new style struct with TAG.
A new style is only created if an existing style with that TAG is
no yet recorded."
  (or (seq-find (lambda (s) (equal (ibs/tag s) tag)) indent-bars--styles)
      (let ((style (ibs/create tag)))
	(cl-pushnew style indent-bars--styles :test #'equal)
	style)))