From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: face-remapping patch Date: Fri, 30 May 2008 03:14:51 +0900 Message-ID: <871w3lkmec.fsf@uwakimon.sk.tsukuba.ac.jp> References: <5CB5F5E5-9239-40A8-A3B2-5F49B94E27B7@gmail.com> <85lk1ui3i0.fsf@lola.goethe.zz> <85ej7mi30t.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212084195 32098 80.91.229.12 (29 May 2008 18:03:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 May 2008 18:03:15 +0000 (UTC) Cc: David Reitter , Miles Bader , Stefan Monnier , Emacs-Devel To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 29 20:03:56 2008 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 1K1mTf-0006ZH-8R for ged-emacs-devel@m.gmane.org; Thu, 29 May 2008 20:03:51 +0200 Original-Received: from localhost ([127.0.0.1]:60761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1mSt-0000cq-J7 for ged-emacs-devel@m.gmane.org; Thu, 29 May 2008 14:03:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1mSq-0000ci-PI for emacs-devel@gnu.org; Thu, 29 May 2008 14:03:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1mSp-0000cO-Ak for emacs-devel@gnu.org; Thu, 29 May 2008 14:03:00 -0400 Original-Received: from [199.232.76.173] (port=38968 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1mSp-0000cL-7r for emacs-devel@gnu.org; Thu, 29 May 2008 14:02:59 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:35726) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K1mSe-0002K1-15; Thu, 29 May 2008 14:02:48 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 3D0C47FFA; Fri, 30 May 2008 03:02:46 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id BA09A1A25C3; Fri, 30 May 2008 03:14:51 +0900 (JST) In-Reply-To: <85ej7mi30t.fsf@lola.goethe.zz> X-Mailer: VM ?bug? under XEmacs 21.5.21 (x86_64-unknown-linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:98000 Archived-At: David Kastrup writes: > However, I don't think the price for the generality of specifiers is > worth the complexity in the particular implementation and documentation > state of XEmacs. I did not understand them after trying for a > considerable amount of time, AFAIK David never did review the documentation after it was revised to address his problem report. Specifiers really are not that complicated for most uses. In practice, it turns out that (specifier-instance SPECIFIER) tells you what value is used at point in the selected window, and (specifier-instance SPECIFIER DOMAIN) tells you would value would be used in DOMAIN, which may be a window, frame, or device (terminal in Emacs lingo). Note that because a buffer may be visible in several places with different physical characteristics that affect rendering (a feature that Emacs did not support before multi-tty, AIUI), DOMAIN cannot be a buffer. To set a specifier, use (set-specifier SPECIFIER VALUE LOCALE) where LOCALE defaults to 'global, and may be a window, buffer, frame, or device. Typically `specifier-instance' does not return the same VALUE that `set-specifier' sets, for example you can set the background color of the default face to "gray80" in the current buffer, but if you then check the value using `specifier-instance' it will be "white". Also `specifier-instance' returns face, font, and glyph objects rather than their names IIRC.