Function: gamegrid-init-buffer
gamegrid-init-buffer is a byte-compiled function defined in
gamegrid.el.gz.
Signature
(gamegrid-init-buffer WIDTH HEIGHT BLANK)
Source Code
;; Defined in /usr/src/emacs/lisp/play/gamegrid.el.gz
(defun gamegrid-init-buffer (width height blank)
(setq gamegrid-buffer-width width
gamegrid-buffer-height height)
(let ((line (concat
(make-string width blank)
"\n"))
(buffer-read-only nil))
(erase-buffer)
(setq gamegrid-buffer-start (point))
(dotimes (_ height)
(insert line))
;; Adjust the height of the default face to the height of the
;; images. Unlike XEmacs, Emacs doesn't allow making the default
;; face buffer-local; so we do this with an overlay.
;; FIXME: This is not correct. See face-remap.el.
(when (eq gamegrid-display-mode 'glyph)
(overlay-put (make-overlay (point-min) (point-max))
'face gamegrid-face))
(goto-char (point-min))))