From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Emphasize the character to be typed next in *Completions* Date: Tue, 13 Apr 2004 13:45:22 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <4062C344.4040204@math.ku.dk> <20040326.010357.13403853.jet@gyve.org> <41vfka1lfy.fsf@xpc14.ast.cam.ac.uk> <20040412.031227.189727554.jet@gyve.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1081878641 29985 80.91.224.253 (13 Apr 2004 17:50:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2004 17:50:41 +0000 (UTC) Cc: gmorris+emacs@ast.cam.ac.uk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 13 19:50:24 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDS3D-0008P3-00 for ; Tue, 13 Apr 2004 19:50:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDS3D-0003fs-00 for ; Tue, 13 Apr 2004 19:50:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDS2g-0002PV-IH for emacs-devel@quimby.gnus.org; Tue, 13 Apr 2004 13:49:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BDS0L-0001dR-H9 for emacs-devel@gnu.org; Tue, 13 Apr 2004 13:47:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BDRyb-0000ow-Cu for emacs-devel@gnu.org; Tue, 13 Apr 2004 13:46:08 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDRya-0000oh-VO for emacs-devel@gnu.org; Tue, 13 Apr 2004 13:45:36 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1BDRyM-0006rp-I3; Tue, 13 Apr 2004 13:45:22 -0400 Original-To: Masatake YAMATO In-reply-to: <20040412.031227.189727554.jet@gyve.org> (message from Masatake YAMATO on Mon, 12 Apr 2004 03:12:27 +0900 (JST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21579 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21579 Date: Mon, 12 Apr 2004 03:12:27 +0900 (JST) To: gmorris+emacs@ast.cam.ac.uk From: Masatake YAMATO In-Reply-To: <41vfka1lfy.fsf@xpc14.ast.cam.ac.uk> Cc: emacs-devel@gnu.org Subject: Re: Emphasize the character to be typed next in *Completions* Sender: emacs-devel-bounces+rms=gnu.org@gnu.org > > I installed the patch with following new faces: > > > > (defface completion-emphasis > [...] > > (defface completion-de-emphasis > > How about a NEWS entry for this feature? Thank you. I've added the following item. ** Visual feedback of *Completions* buffer is enhanced. Faces are put on the common prefix substrings and the first uncommon charachters of each completion candidate in the *Completions* buffer. `completion-de-emphasis' is put on the common prefix substrings as the face; and `completion-emphasis' is put on the first uncommon charachters. By default `completion-de-emphasis' is inherited from `default' face. `completion-emphasis' is inherited from `bold' face. That is clear, thanks. This rewrite says the same thing but is easier to read: ** Enhanced visual feedback in *Completions* buffer. Completions lists use faces to highlight what all completions have in common and where they begin to differ. The common prefix shared by all possible completions uses the face `completion-de-emphasis', while the first character that isn't the same uses the face `completion-emphasis'. By default, `completion-de-emphasis' inherits from `default', and `completion-emphasis' inherits from `bold'. The idea of `completion-de-emphasis' is that you can use it to make the common parts less visible than normal, so that the rest of the differing parts is, by contrast, slightly highlighted. However, looking at these names, it seems to me that maybe they should be changed to `completions-common-part' and `completions-first-difference'. That says where they are used, which is more useful; whether to use them for emphasis or counteremphasis is then up to the user. Do you agree?