[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing elisp char literals

From: Stephen J. Turnbull
Subject: Re: Printing elisp char literals
Date: Tue, 27 May 2003 19:39:49 +0900
User-agent: Gnus/5.1001 (Gnus v5.10.1) XEmacs/21.5 (carrot, linux)

>>>>> "David" == David Kastrup <address@hidden> writes:

    David> "Stefan Monnier" <monnier+gnu/address@hidden>
    David> writes:

    >> Let's say I have an integer.  How can I check whether it's a
    >> char ?

Doesn't the optional argument to char-valid-p do the right thing?

And pretty clearly `event-modifiers' extracts the modifiers into a
Lispy format.

    David> IIRC, XEmacs has sort of an opaque character representation
    David> type, so it might be worth borrowing an idea or two from
    David> them in this regard before reinventing the wheel.  Stephen,
    David> any idea of whether something might apply here?

Besides the fact that it looks like these APIs already exist, even for
more complex cases I don't think so.  While I believe the XEmacs model
is a good one, it took several years to shake out many bugs due to
errors in porting code from the old "characters are a subset of
integers" model.

This would best be done in combination with a large revision of basic
Mule functionality, such as in emacs-unicode, if it's considered

Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]