Function: hywconfig-restore-by-name

hywconfig-restore-by-name is an autoloaded, interactive and byte-compiled function defined in hywconfig.el.

Signature

(hywconfig-restore-by-name NAME)

Documentation

Restore frame-specific window configuration saved with NAME.

Return t if name exists and is restored, else nil.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywconfig.el
;;;###autoload
(defun hywconfig-restore-by-name (name)
  "Restore frame-specific window configuration saved with NAME.

Return t if name exists and is restored, else nil."
  (interactive (list (hargs:read-match "Restore window configuration named: "
				       (hywconfig-named-get-names) nil t)))
  (cond ((null name)
	 (message "There is no named window configuration to restore."))
	((not (stringp name))
	 (error "(hywconfig-restore-by-name): `name' argument is not a string: %s" name))
	(t (let ((wconfig (hywconfig-named-get name)))
	     (if wconfig
		 (progn (hywconfig-set-window-configuration wconfig)
			(when (called-interactively-p 'interactive)
			  (message "Window configuration `%s' is now active." name))
			t)
	       (error "(hywconfig-restore-by-name): No window configuration for this frame named `%s'" name))))))