Function: forge--format

forge--format is a byte-compiled function defined in forge-core.el.

Signature

(forge--format OBJECT SLOT &optional SPEC)

Documentation

Return a string based on SPEC and the format-string in OBJECT's SLOT.

The available format-like specs depend on the type of OBJECT. SPEC can be used to add additional specs, as for format-spec. The latter override the former. SLOT is expected to be class- allocated. Some methods also accept a format string in place of SLOT.

Implementations

(forge--format (TOPIC forge-topic) SLOT &optional SPEC) in `forge-topic.el'.

Undocumented

(forge--format (POST forge-post) SLOT &optional SPEC) in `forge-post.el'.

Undocumented

(forge--format (REPO forge-repository) FORMAT-OR-SLOT &optional SPEC) in `forge-repo.el'.

Undocumented

Source Code

;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-core.el
;;; Format

(cl-defgeneric forge--format (object slot &optional spec)
  "Return a string based on SPEC and the format-string in OBJECT's SLOT.
The available `format'-like specs depend on the type of OBJECT.
SPEC can be used to add additional specs, as for `format-spec'.
The latter override the former.  SLOT is expected to be class-
allocated.  Some methods also accept a format string in place
of SLOT.")