unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: cannot understand Elisp manual node Glyphs
Date: Mon, 5 Feb 2007 15:11:21 -0800	[thread overview]
Message-ID: <BDEIJAFNGDOAGCJIPKPBGEHECCAA.drew.adams@oracle.com> (raw)

I can't tell how much of this problem is me and how much is the text, but I
don't understand this Elisp manual node.

I use the following code, to display ^L using a vector of glyphs that says
this:

__________ Section (Printable Page) __________

(defcustom 1on1-^L-appearance-vector
  (vconcat (make-vector 10 ?_)
           " Section (Printable Page) "
           (make-vector 10 ?_))
 "..." ...)

(aset standard-display-table ?\014 1on1-^L-appearance-vector)

That works fine. However, I'd like to also apply a face to the displayed
glyphs. I figure that manual node Glyphs is trying to tell me, among other
things, how to do that, but I can't figure it out.

It seems to say that the glyphs that I am using, and should be using, have
"simple glyph codes". It does not say what a glyph "code" is, BTW.

It also says that a simple glyph code specifies both a character and a face.
The character is the code mod 524288; the face number is the code / 524288.

So how do I use that information, to apply a face to my vector of glyphs?
Maybe that's not the right way to say it. How can I have the glyph vector
that I use to display ^L appear in a particular face?

There seems to be a wide gulf between the kind of info that is available in
this node (glyph codes, face numbers) and practical use of that information.
I imagine that I'm not too far from my quest, but I haven't a clue where to
head.

Assistance appreciated. Perhaps we can improve the manual a bit in the
process.

             reply	other threads:[~2007-02-05 23:11 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05 23:11 Drew Adams [this message]
2007-02-07 13:29 ` cannot understand Elisp manual node Glyphs Kim F. Storm
2007-02-07 14:54   ` Drew Adams
2007-02-07 15:24     ` Kim F. Storm
2007-02-07 15:53       ` Drew Adams
2007-02-07 16:16         ` Stuart D. Herring
2007-02-07 16:21           ` Drew Adams
2007-02-08 16:38             ` Stuart D. Herring
2007-02-07 22:52   ` Miles Bader
2007-02-08  8:26     ` Kim F. Storm
2007-02-08  8:51       ` David Kastrup
2007-02-08 10:39         ` Kim F. Storm
2007-02-08 23:46           ` Richard Stallman
2007-02-09  7:17             ` David Kastrup
2007-02-09  9:12               ` Markus Triska
2007-02-09  9:43                 ` Nick Roberts
2007-02-09 23:48                 ` Richard Stallman
2007-02-09 14:23               ` Richard Stallman
2007-02-09 11:12             ` Kim F. Storm
2007-02-09 11:32               ` Juanma Barranquero
2007-02-09 23:48                 ` Richard Stallman
2007-02-09 14:05               ` Kim F. Storm
2007-02-09 23:49                 ` Richard Stallman
2007-02-10  0:40                   ` Drew Adams
2007-02-10 17:40                     ` Richard Stallman
2007-02-11 14:18                       ` Miles Bader
2007-02-11 21:07                       ` Kim F. Storm
2007-02-12 17:53                         ` Richard Stallman
2007-02-14 23:32                           ` Kim F. Storm
2007-02-10 10:19                   ` Eli Zaretskii
2007-02-10 17:41                     ` Richard Stallman
2007-02-10 13:59                   ` Miles Bader
2007-02-11  0:20                     ` Richard Stallman
2007-02-11  1:34                       ` Drew Adams
2007-02-11 14:16                       ` Miles Bader
2007-02-12 17:52                         ` Richard Stallman
2007-02-09 18:16               ` Stuart D. Herring
2007-02-08 16:21       ` Stefan Monnier
2007-02-08 16:36         ` Juanma Barranquero
2007-02-08  9:58     ` Stephen J. Turnbull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BDEIJAFNGDOAGCJIPKPBGEHECCAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).