all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* text-texi - Node: Text Properties - After first paragraph
@ 2006-07-04  9:06 Andreas Roehler
  2006-07-04 15:46 ` Thien-Thi Nguyen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andreas Roehler @ 2006-07-04  9:06 UTC (permalink / raw)
  Cc: Thien-Thi Nguyen, Richard Stallman, Drew Adams

As users probably first encounter the terminus `face' in this
context, it might be helpful to give just one sentence here
concerning the relation between `properties' and `faces'.

So I conceive properties as the most fundamental category,
whereas faces are of higher order, a more combined and complex
one.

Right or wrong?

__
Andreas Roehler

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: text-texi - Node: Text Properties - After first paragraph
  2006-07-04  9:06 text-texi - Node: Text Properties - After first paragraph Andreas Roehler
@ 2006-07-04 15:46 ` Thien-Thi Nguyen
  2006-07-04 16:57 ` Drew Adams
  2006-07-04 17:31 ` Richard Stallman
  2 siblings, 0 replies; 4+ messages in thread
From: Thien-Thi Nguyen @ 2006-07-04 15:46 UTC (permalink / raw)
  Cc: emacs-devel

Andreas Roehler <andreas.roehler@easy-emacs.de> writes:

> As users probably first encounter the terminus `face' in this
> context, it might be helpful to give just one sentence here
> concerning the relation between `properties' and `faces'.

probably @xref{Faces} would be better.

> So I conceive properties as the most fundamental category,
> whereas faces are of higher order, a more combined and complex
> one.
> 
> Right or wrong?

it's your conception, so there is no right or wrong.  in any case, the
manual is organized so that faces are discussed after text properties,
so a forward xref is indicated.

thi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: text-texi - Node: Text Properties - After first paragraph
  2006-07-04  9:06 text-texi - Node: Text Properties - After first paragraph Andreas Roehler
  2006-07-04 15:46 ` Thien-Thi Nguyen
@ 2006-07-04 16:57 ` Drew Adams
  2006-07-04 17:31 ` Richard Stallman
  2 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2006-07-04 16:57 UTC (permalink / raw)


    As users probably first encounter the terminus `face' in this
    context, it might be helpful to give just one sentence here
    concerning the relation between `properties' and `faces'.

    So I conceive properties as the most fundamental category,
    whereas faces are of higher order, a more combined and complex
    one.

    Right or wrong?

I'm no expert on this - here is my understanding -

There is a `face' text property and a `face' overlay property. Its value is
one or more faces or a list of face attributes. So, you could say that a
face is more fundamental than a text property, in that it can be used to
define the value of a text `face' property (or an overlay `face' property,
or even a text `mouse-face' property). However, you need not use a face to
define a text `face' property - you can directly define the text `face'
property using a face attribute list (not associated with any defined face).

Also, text properties are not limited to the `face' property. In this sense,
the notion of text property might be considered more fundamental, or at
least more general, than the notion of face.

It is probably more correct to start with face attributes as the basic
building blocks. They are used to define faces or text `face' property
values or overlay `face' property values. Faces can also be used to define
both kinds of `face' property value.

I don't think it is useful to consider either faces or text properties as
more fundamental than the other. They are both users of face attributes.
When faces are used to define the text `face' property value, they can be
thought of as an intermediary - it is the attributes of the faces that
really define the text property.

In any case, these various critters need to be distinguished clearly in the
doc: faces, text properties (including `face'), and overlay properties
(including `face'). I imagine that they are, but I don't have time now to
check.

If these distinctions are not pointed out somewhere, then they should be.
The notion of text property needs to pointed out in the Emacs manual also,
because it is used in the UI. End users, not just Lisp programmers, need to
be aware of the terminology (face, text property).

I don't see the text you reference, however. In node (elisp) Text Properties
I see no occurrence of either "face" or "Terminus". And I'm not sure we
could (or should try to) convey the relation between faces and text
properties in a single sentence.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: text-texi - Node: Text Properties - After first paragraph
  2006-07-04  9:06 text-texi - Node: Text Properties - After first paragraph Andreas Roehler
  2006-07-04 15:46 ` Thien-Thi Nguyen
  2006-07-04 16:57 ` Drew Adams
@ 2006-07-04 17:31 ` Richard Stallman
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-07-04 17:31 UTC (permalink / raw)
  Cc: ttn, drew.adams, emacs-devel

    As users probably first encounter the terminus `face' in this
    context, it might be helpful to give just one sentence here
    concerning the relation between `properties' and `faces'.

Good idea; I will do that.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-04 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04  9:06 text-texi - Node: Text Properties - After first paragraph Andreas Roehler
2006-07-04 15:46 ` Thien-Thi Nguyen
2006-07-04 16:57 ` Drew Adams
2006-07-04 17:31 ` Richard Stallman

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.