hook. Then, if you like the result, it call be a `set' on the
original board from the copied board.
+- Make the mode-line much more informative
+
----------------------------------------------------------------------
- Port image display code to XEmacs
(with-current-buffer (generate-new-buffer " *chess-engine*")
(setq chess-engine-regexp-alist (symbol-value regexp-alist)
chess-engine-event-handler handler
- chess-engine-response-handler (or 'chess-engine-default-handler
- user-handler))
+ chess-engine-response-handler (or user-handler
+ 'chess-engine-default-handler))
(let ((proc (apply handler 'initialize args)))
(when (processp proc)
(unless (memq (process-status proc) '(run open))
(defcustom chess-images-directory
(if (file-directory-p "/usr/share/games/xboard/pixmaps")
"/usr/share/games/xboard/pixmaps"
- (expand-file-name "pieces" (file-name-directory
- (or load-file-name buffer-file-name))))
+ (expand-file-name "pieces/xboard"
+ (file-name-directory
+ (or load-file-name buffer-file-name))))
"Directory containing the chess piece bitmap images.
You are free to use your own chess pieces, of any size. By default, I
assume you have xboard installed, or can go get the pixmaps that come
(display-pixel-width)) 20)))))
(defun chess-images-popup-board ()
+ (unless chess-images-size
+ (error "Cannot find any piece images; check `chess-images-directory'"))
+
(let* ((size (float (+ (* (or chess-images-border-width 0) 8)
(* chess-images-size 8))))
(max-char-height (ceiling (/ size (frame-char-height))))
;; Initialize the transport here, if necessary. Make sure that
;; any housekeeping data you use is kept in buffer-local
;; variables. Otherwise, multiple games played using the same
- ;; kind of transport might collide.
+ ;; kind of transport might collide. For example:
+ ;;
+ ;; (set (make-local-variable 'chess-transport-data) (car args))
)
((eq event 'send)