From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francesco Potorti` Newsgroups: gmane.emacs.devel Subject: Re: gamegrid.el and some games Date: Fri, 13 Sep 2002 15:09:09 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <87sn0eglkp.fsf@bundalo.shootybangbang.com> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031922664 22219 127.0.0.1 (13 Sep 2002 13:11:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 13 Sep 2002 13:11:04 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17pqDt-0005lc-00 for ; Fri, 13 Sep 2002 15:11:01 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17pqpm-0005Lg-00 for ; Fri, 13 Sep 2002 15:50:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pqE3-0002ej-00; Fri, 13 Sep 2002 09:11:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17pqC8-0002O8-00 for emacs-devel@gnu.org; Fri, 13 Sep 2002 09:09:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17pqC6-0002Nv-00 for emacs-devel@gnu.org; Fri, 13 Sep 2002 09:09:11 -0400 Original-Received: from pot.cnuce.cnr.it ([146.48.83.182]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pqC5-0002Np-00 for emacs-devel@gnu.org; Fri, 13 Sep 2002 09:09:10 -0400 Original-Received: from pot by pot.cnuce.cnr.it with local (Exim 3.35 #1 (Debian)) id 17pqC5-0000W0-00 for ; Fri, 13 Sep 2002 15:09:09 +0200 Original-To: Emacs developers X-fingerprint: 4B2 6187 5C3 D6B1 2E31 7666 9DF 2DC9 BE21 6115 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7883 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7883 What follows is a request for explanation, and it may highlight a shortcoming of the emacs lisp manual. Sorry if sometimes my wording is not correct, I am new to this area of Emacs lisp. I am trying to understand whether Emacs can use an arbitrary image in a display table on a window system. That is, if it is possible to write a graphical image (a glyph) in a given position of a display table. I found this in the manual: | Glyphs | ------ | | A "glyph" is a generalization of a character; it stands for an image | that takes up a single character position on the screen. Glyphs are | represented in Lisp as integers, just as characters are. | | The meaning of each integer, as a glyph, is defined by the glyph | table, which is the value of the variable `glyph-table'. | | - Variable: glyph-table | The value of this variable is the current glyph table. It should | be a vector; the Gth element defines glyph code G. If the value | is `nil' instead of a vector, then all glyphs are simple (see | below). The glyph table is not used on windowed displays. What is a `windowed display'? I know about `character terminal' and `window system', and in fact this wording is used below, but I do not know what a windowed display is. I suspect it is a window system, and if this is true, it means that the answer to my initial question is NO. | | Here are the possible types of elements in the glyph table: | | STRING | Send the characters in STRING to the terminal to output this | glyph. This alternative is available on character terminals, but | not under a window system. Okay. So this is for character terminals. So I suppose that the two following alternatives do work on window systems, because nothing is specified there. | | INTEGER | Define this glyph code as an alias for glyph code INTEGER. You | can use an alias to specify a face code for the glyph; see below. | | `nil' | This glyph is simple. The glyph code mod 524288 is the character | to output, and the glyph code divided by 524288 specifies the face | number (*note Face Functions::) to use while outputting it. | (524288 is 2**19.) *Note Faces::. | | If a glyph code is greater than or equal to the length of the glyph | table, that code is automatically simple. | | - Function: create-glyph string | This function returns a newly-allocated glyph code which is set up | to display by sending STRING to the terminal. So here I am not yet sure whether it is possible to specify a graphical glyph inside a display table, and if yes, how to do it.