Function: face-read-integer

face-read-integer is a byte-compiled function defined in faces.el.gz.

Signature

(face-read-integer FACE DEFAULT NAME)

Documentation

Interactively read an integer face attribute value.

FACE is the face whose attribute is read. DEFAULT is the default value to return if no new value is entered. NAME is a descriptive name of the attribute for prompting. Value is the new attribute value.

Source Code

;; Defined in /usr/src/emacs/lisp/faces.el.gz
(defun face-read-integer (face default name)
  "Interactively read an integer face attribute value.
FACE is the face whose attribute is read.  DEFAULT is the default
value to return if no new value is entered.  NAME is a descriptive
name of the attribute for prompting.  Value is the new attribute value."
  (let ((new-value
	 (face-read-string face
			   (format "%s" default)
			   name
			   (list (cons "unspecified" 'unspecified)))))
    (cond ((equal new-value "unspecified")
	   'unspecified)
	  ((member new-value '("unspecified-fg" "unspecified-bg"))
	   new-value)
	  (t
	   (string-to-number new-value)))))