unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: rms@gnu.org, xemacs-beta@xemacs.org,
	Andreas Schwab <schwab@suse.de>,
	emacs-devel@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	miles@gnu.org, bpalmer@rescomp.stanford.edu
Subject: Re: intern-soft, find-face/get-face, and facep for determining faces' definedness
Date: Thu, 04 Nov 2004 18:28:03 +0900	[thread overview]
Message-ID: <87oeieezfg.fsf@tleepslib.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <82actzrkqn.fsf@us.dmz.local> (Zajcev Evgeny's message of "Wed, 03 Nov 2004 18:54:40 +0300")

>>>>> "Zajcev" == Zajcev Evgeny <zevlg@yandex.ru> writes:

    Zajcev> Andreas Schwab <schwab@suse.de> writes:

    >> Zajcev Evgeny <zevlg@yandex.ru> writes:

    >>> Most of functions that deal with faces should use `(facep
    >>> (get-face <face>))' sexp to check face validity.

    >> Why do you need facep if get-face already did all validation?

XEmacs doesn't need facep.  facep is useful in very few contexts, and
this isn't one of them.

    Zajcev> Oh yes, it should be one of: `(get-face <face>)' or
    Zajcev> `(facep (find-face <face>))' to avoid signals.

In XEmacs (facep (find-face ...)) is redundant.  It merely turns a
useful value (a face, which is just as true as t) into t.

There's no theoretical reason why would we couldn't sync to the Emacs
API, with faces being symbols registered as faces, no more and no
less.  However, in practice verifying it does no harm would be a lot
of work, and I don't see a benefit to it.  OTOH, adding the find-face
API to Emacs is trivial and can't do harm to existing code, although
it's really not necessary at all in Emacs AFAICS.  It's a minor
convenience in the code the OP posted, of course, but you could just
as easily inline Miles's implementation.

I don't see need for further discussion of XEmacs APIs on emacs-devel,
and I know y'all are quite busy right now.  So this is my last post in
this thread to emacs-devel (although I will continue to monitor it).
I will respond to further posts as appropriate, but (unless requested)
only on xemacs-beta.

Regards,

-- 
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	other threads:[~2004-11-04  9:28 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-01 21:40 intern-soft, find-face/get-face, and facep for determining faces' definedness Brian Palmer
2004-11-02  6:14 ` Stephen J. Turnbull
2004-11-02  7:28   ` Brian Palmer
2004-11-02  7:45     ` Miles Bader
2004-11-02  8:48       ` Brian Palmer
2004-11-02  9:08         ` Miles Bader
2004-11-02  9:21           ` Brian Palmer
2004-11-02  9:50             ` Miles Bader
2004-11-02 12:06               ` Stephen J. Turnbull
2004-11-02 22:20                 ` Miles Bader
2004-11-06  9:31                   ` Oliver Scholz
2004-11-02 11:07           ` Stephen J. Turnbull
2004-11-02 12:01             ` Stefan
2004-11-02 22:23               ` Miles Bader
2004-11-03 12:45               ` Richard Stallman
2004-11-03 14:15                 ` Stefan Monnier
2004-11-03 15:01                   ` Zajcev Evgeny
2004-11-03 15:20                     ` Andreas Schwab
2004-11-03 15:54                       ` Zajcev Evgeny
2004-11-04  9:28                         ` Stephen J. Turnbull [this message]
2004-11-03 15:48                     ` Stefan Monnier
2004-11-04  3:41               ` Stephen J. Turnbull
2004-11-05  7:55                 ` Stefan
2004-11-09 14:41                   ` 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=87oeieezfg.fsf@tleepslib.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=bpalmer@rescomp.stanford.edu \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    --cc=schwab@suse.de \
    --cc=xemacs-beta@xemacs.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).