unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: cursor face
Date: Sat, 02 Jun 2007 10:16:09 +0300	[thread overview]
Message-ID: <ulkf2ltc6.fsf@gnu.org> (raw)
In-Reply-To: <BDEIJAFNGDOAGCJIPKPBCEMKCEAA.drew.adams@oracle.com>

> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Fri, 1 Jun 2007 14:37:51 -0700
> 
> I don't see any index entry for the `cursor' face in the Elisp manual.

Do you see other standard faces documented in the ELisp manual?  If
so, where?

I only find the standard faces documented in the Emacs user manual
(see the node "Standard Faces" there), and the list there includes
`cursor'.

> The `cursor' face is equivalent to the value of frame parameter
> `cursor-color' - but for which frame? Or is face `cursor' somehow a
> frame-local face? Frame parameters are frame-local variables, but I didn't
> think that there was such a thing as a frame-local face. Is there?

Actually, faces are _always_ frame-local.  (It looks like this is not
stated specifically anywhere, which would be an omission.)  Changing a
face normally changes it only on the frame which was the selected
frame at the time of the change; you need to work harder to have a
face changed on all frames, which is a hint to the fact that faces
local to frames.  For example:

    (set-face-attribute face frame &rest args)

    Set attributes of face on frame from args.

    frame nil means change attributes on all frames.  frame t means change
    the default for new frames (this is done automatically each time an
    attribute is changed on all frames).

The above pertains to the functions that change faces; I don't know
what does Customize do with faces, but I'd expect it to change the
face for the currently selected frame and for newly created frames.

  reply	other threads:[~2007-06-02  7:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-01 21:37 cursor face Drew Adams
2007-06-02  7:16 ` Eli Zaretskii [this message]
2007-06-02 13:52   ` Drew Adams
2007-06-02 13:54 ` Richard Stallman
2007-06-02 13:54 ` Richard Stallman

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=ulkf2ltc6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.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).