From: David Kastrup <dak@gnu.org>
To: storm@cua.dk (Kim F. Storm)
Cc: Emacs-Devel <emacs-devel@gnu.org>,
Drew Adams <drew.adams@oracle.com>, Miles Bader <miles@gnu.org>
Subject: Re: cannot understand Elisp manual node Glyphs
Date: Thu, 08 Feb 2007 09:51:54 +0100 [thread overview]
Message-ID: <864ppxhw0l.fsf@lola.quinscape.zz> (raw)
In-Reply-To: <m3lkj93vj0.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Thu\, 08 Feb 2007 09\:26\:11 +0100")
storm@cua.dk (Kim F. Storm) writes:
> Miles Bader <miles@gnu.org> writes:
>
>> storm@cua.dk (Kim F. Storm) writes:
>>> These functions are handy:
>>>
>>> (defun make-glyph-with-face (c face)
>>> "Return a glyph code representing char C with face FACE."
>>> (logior c (lsh (face-id face) 19)))
>>
>> Good idea, but why not just call it "make-glyph"...?
>
> Because Xemacs already has a function named make-glyph with
> different semantics.
>
> But maybe we don't need to care about that?
In my opinion, we really should. It is one thing if stuff fails with
undefined functions when porting. It is another if stuff fails in
mysterious ways (at best because of incompatible argument types).
> Maybe the face arg should be optional, and we could use the
> following names to avoid confusion:
>
> make-display-glyph (char &optional face)
> display-glyph-face (glyph)
> display-glyph-char (glyph)
Well, picking from the doc string, make-glyph-code would seem a
suitable choice, too.
--
David Kastrup
next prev parent reply other threads:[~2007-02-08 8:51 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-05 23:11 cannot understand Elisp manual node Glyphs Drew Adams
2007-02-07 13:29 ` 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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864ppxhw0l.fsf@lola.quinscape.zz \
--to=dak@gnu.org \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
--cc=storm@cua.dk \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.