Lines Matching defs:format
0 ;;; format-spec.el --- functions for formatting arbitrary formatting strings
32 (defun format-spec (format specification)
34 FORMAT is a string containing `format'-like specs like \"bash %u %k\",
35 while SPECIFICATION is an alist mapping from format spec characters
39 (insert format)
46 ;; Valid format spec.
52 (error "Invalid format character: %s" spec))
54 (let ((text (format (concat "%" num "s") val)))
62 ;; Signal an error on bogus format strings.
64 (error "Invalid format string"))))
67 (defun format-spec-make (&rest pairs)
68 "Return an alist suitable for use in `format-spec' based on PAIRS.
79 (provide 'format-spec)
82 ;;; format-spec.el ends here