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: Diff mode faces Date: Sat, 18 Jun 2005 16:57:23 +0300 Organization: JURTA Message-ID: <87psujj0h0.fsf@jurta.org> References: <87oea5urwm.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 1119104126 21664 80.91.229.2 (18 Jun 2005 14:15:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2005 14:15:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 18 16:15:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dje5z-0003uz-As for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2005 16:14:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DjeBo-0004GA-Lr for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2005 10:20:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dje85-00035Z-14 for emacs-devel@gnu.org; Sat, 18 Jun 2005 10:17:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dje7p-0002yK-Qq for emacs-devel@gnu.org; Sat, 18 Jun 2005 10:16:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dje7p-0002xD-4x for emacs-devel@gnu.org; Sat, 18 Jun 2005 10:16:45 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dje8Y-00014o-NH; Sat, 18 Jun 2005 10:17:31 -0400 Original-Received: from mail.neti.ee (80-235-36-217-dsl.mus.estpak.ee [80.235.36.217]) by Relayhost1.neti.ee (Postfix) with ESMTP id 0291A1EC5; Sat, 18 Jun 2005 17:15:15 +0300 (EEST) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Fri, 17 Jun 2005 16:34:28 +0200") 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:39081 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39081 >> The default diff face used to highlight changed lines on tty >> (magenta/yellow bold italic) makes an indigestible fruit salad. > > In your opinion, perhaps. These faces are there since 5 years ago, > and I don't recall anyone complaining. Maybe people prefer to quietly customize faces in .emacs instead of spending energy arguing? ;-) >> OTOH, the same face has no highlighting under X. This makes >> sense, because changed lines are the primary text in diff files >> that doesn't need special highlighting. > > They need highlighting to stand out against the unchanged lines. > Since most tty's don't have too many colors, they cannot make use of > the technique similar to what we do on X, which is to dim the > context lines by using light-grey colors for them. Yellow foreground works well for context lines. >> I propose instead of highlighting whole lines on tty to use at least >> the same approach as introduced recently for comments on tty to highlight >> only comment delimiters in new face font-lock-comment-delimiter-face. >> Similarly, only diff indicators (the first character of the line) could >> be highlighted in diff buffers on tty. > > I don't think this is a good idea to make such a change. Certainly > not now, before a release. It is face fixing time now. > Haven't we already seen enough trouble from this comment-delimiter > face innovation? Comment-delimiter face was the global change, diff faces are localized to diff mode. > Anyway, the results look IMHO ugly. Partial highlighting of lines > generally looks ugly, and this case is no exception. Do you object against partial highlighting of comments on tty with comment-delimiter too? I tried to be consistent with comments highlighting on tty. > (I could never understand the urge to modify the default colors. If > you dislike the defaults, customize the faces and be done with them.) I have 40 faces customized in .emacs and never wanted to suggest them to anyone. What I want is to propose fixes for badly chosen faces according to more or less objective criteria such as that unimportant faces should not stand out too much, important faces should be easily readable, fg/bg colors should contrast well, etc. -- Juri Linkov http://www.jurta.org/emacs/