From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Mode line faces on ttys Date: Wed, 17 Aug 2005 19:38:45 +0300 Organization: JURTA Message-ID: <87acjgeddu.fsf@jurta.org> References: <878xz0u3ib.fsf@pacem.orebokech.com> <87u0hoipt5.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1124298044 30015 80.91.229.2 (17 Aug 2005 17:00:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2005 17:00:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 17 19:00:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5RFq-00035r-Sb for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2005 18:59:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5REq-0007TF-2H for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2005 12:58:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5RDo-0007Lb-SJ for emacs-devel@gnu.org; Wed, 17 Aug 2005 12:57:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5RDl-0007KL-EY for emacs-devel@gnu.org; Wed, 17 Aug 2005 12:56:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5RDl-00079M-2h for emacs-devel@gnu.org; Wed, 17 Aug 2005 12:56:57 -0400 Original-Received: from [194.126.101.116] (helo=HOT-Bounce1.hot.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E5RJP-0001oA-Sd for emacs-devel@gnu.org; Wed, 17 Aug 2005 13:02:48 -0400 Original-Received: from mail.neti.ee (Relay5 [192.168.1.24]) by HOT-Bounce1.hot.ee (Postfix) with ESMTP id A0735171EB0 for ; Wed, 17 Aug 2005 19:31:02 +0300 (EEST) Original-Received: from mail.neti.ee (80-235-37-17-dsl.mus.estpak.ee [80.235.37.17]) by Relayhost2.neti.ee (Postfix) with ESMTP id 23F461F20 for ; Wed, 17 Aug 2005 19:45:49 +0300 (EEST) Original-To: emacs-devel@gnu.org In-Reply-To: <87u0hoipt5.fsf@jurta.org> (Juri Linkov's message of "Wed, 17 Aug 2005 17:46:46 +0300") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:42191 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42191 I've looked over the documentation of the functions that work with the `:inverse-video' attribute in the Emacs Lisp Reference manual, and I see that the documentation doesn't correspond to actual functions. The description of `invert-face' is wrong, and `set-face-inverse-video-p' is missing. I can install the following patch: Index: lispref/display.texi =================================================================== RCS file: /cvsroot/emacs/emacs/lispref/display.texi,v retrieving revision 1.180 diff -c -r1.180 display.texi *** lispref/display.texi 11 Aug 2005 19:59:05 -0000 1.180 --- lispref/display.texi 17 Aug 2005 16:21:53 -0000 *************** *** 2288,2297 **** Non-@code{nil} means do underline; @code{nil} means don't. @end defun @defun invert-face face &optional frame ! This function inverts the @code{:inverse-video} attribute of face ! @var{face}. If the attribute is @code{nil}, this function sets it to ! @code{t}, and vice versa. @end defun These functions examine the attributes of a face. If you don't --- 2156,2169 ---- Non-@code{nil} means do underline; @code{nil} means don't. @end defun + @defun set-face-inverse-video-p face inverse-video-p &optional frame + This function sets the @code{:inverse-video} attribute of face + @var{face}. + @end defun + @defun invert-face face &optional frame ! This function swaps the foreground and background colors of face ! @var{face}. @end defun These functions examine the attributes of a face. If you don't *************** *** 2300,2306 **** value for that attribute. @defun face-foreground face &optional frame inherit ! @defunx face-background face &optional frame These functions return the foreground color (or background color, respectively) of face @var{face}, as a string. --- 2172,2178 ---- value for that attribute. @defun face-foreground face &optional frame inherit ! @defunx face-background face &optional frame inherit These functions return the foreground color (or background color, respectively) of face @var{face}, as a string. -- Juri Linkov http://www.jurta.org/emacs/