From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: snogglethorpe@gmail.com, drew.adams@oracle.com, miles@gnu.org
Subject: Re: datatypes in Elisp Info: mention "things" for which there is no "thing" datatype - e.g. faces
Date: Fri, 24 Jun 2005 16:22:26 -0500 (CDT) [thread overview]
Message-ID: <200506242122.j5OLMQS10976@raven.dms.auburn.edu> (raw)
In-Reply-To: <200506241841.j5OIfXp09629@raven.dms.auburn.edu> (message from Luc Teirlinck on Fri, 24 Jun 2005 13:41:33 -0500 (CDT))
For purposes of this discussion, note that facep is not a type
predicate, because it returns t for face names (strings or symbols) as
well as for internal face objects. I noticed that the docs for facep
are not very clear on this. I propose the following doc changes,
which I could install if desired:
===File ~/faces.el-diff=====================================
*** faces.el 23 Jun 2005 16:53:05 -0500 1.324
--- faces.el 24 Jun 2005 13:47:03 -0500
***************
*** 204,210 ****
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun facep (face)
! "Return non-nil if FACE is a face name."
(internal-lisp-face-p face))
--- 204,213 ----
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun facep (face)
! "Return non-nil if FACE is a face name or internal face object.
! Return nil otherwise. A face name can be a string or a symbol.
! An internal face object is a vector of the kind used internally
! to record face data."
(internal-lisp-face-p face))
============================================================
===File ~/display.texi-diff=================================
*** display.texi 23 Jun 2005 20:49:48 -0500 1.169
--- display.texi 24 Jun 2005 14:00:28 -0500
***************
*** 1628,1639 ****
@cindex face id
Each face has its own @dfn{face number}, which distinguishes faces at
low levels within Emacs. However, for most purposes, you refer to
! faces in Lisp programs by their names.
@defun facep object
! This function returns @code{t} if @var{object} is a face name symbol (or
! if it is a vector of the kind used internally to record face data). It
! returns @code{nil} otherwise.
@end defun
Each face name is meaningful for all frames, and by default it has the
--- 1628,1639 ----
@cindex face id
Each face has its own @dfn{face number}, which distinguishes faces at
low levels within Emacs. However, for most purposes, you refer to
! faces in Lisp programs by the symbol that names them.
@defun facep object
! This function returns @code{t} if @var{object} is a face name string
! or symbol (or if it is a vector of the kind used internally to record
! face data). It returns @code{nil} otherwise.
@end defun
Each face name is meaningful for all frames, and by default it has the
============================================================
next prev parent reply other threads:[~2005-06-24 21:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-23 16:00 datatypes in Elisp Info: mention "things" for which there is no "thing" datatype - e.g. faces Drew Adams
2005-06-23 17:24 ` Thien-Thi Nguyen
2005-06-23 17:34 ` Drew Adams
2005-06-24 1:28 ` Miles Bader
2005-06-24 13:58 ` Drew Adams
2005-06-24 17:38 ` Kevin Rodgers
2005-06-24 18:41 ` Luc Teirlinck
2005-06-24 21:22 ` Luc Teirlinck [this message]
2005-06-24 22:16 ` Miles Bader
2005-06-24 5:36 ` Richard M. Stallman
2005-06-24 6:32 ` Kenichi Handa
2005-06-25 0:31 ` Richard M. Stallman
2005-06-24 13:58 ` datatypes in Elisp Info: mention "things" for which there is no"thing" " Drew Adams
2005-06-24 14:21 ` datatypes in Elisp Info: mention "things" for which there is no "thing" " Stefan Monnier
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=200506242122.j5OLMQS10976@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=drew.adams@oracle.com \
--cc=miles@gnu.org \
--cc=snogglethorpe@gmail.com \
/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).