[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cannot understand Elisp manual node Glyphs
From: |
David Kastrup |
Subject: |
Re: cannot understand Elisp manual node Glyphs |
Date: |
Thu, 08 Feb 2007 09:51:54 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Kim F. Storm) writes:
> Miles Bader <address@hidden> writes:
>
>> address@hidden (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
- cannot understand Elisp manual node Glyphs, Drew Adams, 2007/02/05
- Re: cannot understand Elisp manual node Glyphs, Kim F. Storm, 2007/02/07
- RE: cannot understand Elisp manual node Glyphs, Drew Adams, 2007/02/07
- Re: cannot understand Elisp manual node Glyphs, Kim F. Storm, 2007/02/07
- RE: cannot understand Elisp manual node Glyphs, Drew Adams, 2007/02/07
- RE: cannot understand Elisp manual node Glyphs, Stuart D. Herring, 2007/02/07
- RE: cannot understand Elisp manual node Glyphs, Drew Adams, 2007/02/07
- RE: cannot understand Elisp manual node Glyphs, Stuart D. Herring, 2007/02/08
Re: cannot understand Elisp manual node Glyphs, Miles Bader, 2007/02/07
- Re: cannot understand Elisp manual node Glyphs, Kim F. Storm, 2007/02/08
- Re: cannot understand Elisp manual node Glyphs,
David Kastrup <=
- Re: cannot understand Elisp manual node Glyphs, Kim F. Storm, 2007/02/08
- Re: cannot understand Elisp manual node Glyphs, Richard Stallman, 2007/02/08
- Re: cannot understand Elisp manual node Glyphs, David Kastrup, 2007/02/09
- Re: cannot understand Elisp manual node Glyphs, Markus Triska, 2007/02/09
- Re: cannot understand Elisp manual node Glyphs, Nick Roberts, 2007/02/09
- Re: cannot understand Elisp manual node Glyphs, Richard Stallman, 2007/02/09
Re: cannot understand Elisp manual node Glyphs, Richard Stallman, 2007/02/09
Re: cannot understand Elisp manual node Glyphs, Kim F. Storm, 2007/02/09
Re: cannot understand Elisp manual node Glyphs, Juanma Barranquero, 2007/02/09
Re: cannot understand Elisp manual node Glyphs, Richard Stallman, 2007/02/09