Function: treemacs--is-name-invalid?

treemacs--is-name-invalid? is a byte-compiled function defined in treemacs-workspaces.el.

Signature

(treemacs--is-name-invalid? NAME)

Documentation

Validate the NAME of a project or workspace.

Returns t when the name is invalid.

NAME: String

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-workspaces.el
(defun treemacs--is-name-invalid? (name)
  "Validate the NAME of a project or workspace.
Returns t when the name is invalid.

NAME: String"
  (declare (pure t) (side-effect-free t))
  (or (null name)
      (s-blank-str? name)
      (s-contains? "\n" name)
      (not (s-matches? (rx (1+ (or space (syntax word) (syntax symbol) (syntax punctuation)))) name))))