From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: cursor face Date: Sat, 02 Jun 2007 10:16:09 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1180768584 6374 80.91.229.12 (2 Jun 2007 07:16:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Jun 2007 07:16:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 02 09:16:22 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HuNqX-0005B5-46 for ged-emacs-devel@m.gmane.org; Sat, 02 Jun 2007 09:16:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuNqV-0008T1-Bd for ged-emacs-devel@m.gmane.org; Sat, 02 Jun 2007 03:16:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuNqR-0008P5-Aa for emacs-devel@gnu.org; Sat, 02 Jun 2007 03:16:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuNqP-0008KP-LC for emacs-devel@gnu.org; Sat, 02 Jun 2007 03:16:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuNqP-0008K1-9M for emacs-devel@gnu.org; Sat, 02 Jun 2007 03:16:13 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HuNqO-00071o-0r for emacs-devel@gnu.org; Sat, 02 Jun 2007 03:16:12 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-116-121.inter.net.il [84.229.116.121]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id HYX24676 (AUTH halo1); Sat, 2 Jun 2007 10:16:05 +0300 (IDT) In-reply-to: X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72036 Archived-At: > From: "Drew Adams" > 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.