unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: gmorris+emacs@ast.cam.ac.uk, emacs-devel@gnu.org
Subject: Re: Emphasize the character to be typed next in *Completions*
Date: Tue, 13 Apr 2004 13:45:22 -0400	[thread overview]
Message-ID: <E1BDRyM-0006rp-I3@fencepost.gnu.org> (raw)
In-Reply-To: <20040412.031227.189727554.jet@gyve.org> (message from Masatake YAMATO on Mon, 12 Apr 2004 03:12:27 +0900 (JST))

    Date: Mon, 12 Apr 2004 03:12:27 +0900 (JST)
    To: gmorris+emacs@ast.cam.ac.uk
    From: Masatake YAMATO <jet@gyve.org>
    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?

  reply	other threads:[~2004-04-13 17:45 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040325063231.137606B7A5@imf.math.ku.dk>
2004-03-25 11:32 ` Emphasize the character to be typed next in *Completions* Lars Hansen
2004-03-25 16:03   ` Masatake YAMATO
2004-04-08 16:30     ` Glenn Morris
2004-04-11 18:12       ` Masatake YAMATO
2004-04-13 17:45         ` Richard Stallman [this message]
2004-04-14  3:16           ` Masatake YAMATO
2004-04-15 18:25             ` Juri Linkov
2004-04-16  8:59               ` Masatake YAMATO
     [not found] <20040322053942.03A2467DC4@imf.math.ku.dk>
2004-03-22  9:31 ` Lars Hansen
2004-03-22  9:48   ` Lars Hansen
2004-03-22  9:55   ` Masatake YAMATO
2004-03-22 11:16     ` Lars Hansen
2004-03-22 11:37       ` David Kastrup
2004-03-22 12:02         ` Lars Hansen
2004-03-23  3:04     ` Richard Stallman
2004-03-23 10:43       ` Masatake YAMATO
2004-03-23 15:09         ` Kim F. Storm
2004-03-23 15:07           ` Stefan Monnier
2004-03-24  0:07             ` Kim F. Storm
2004-03-24  2:36               ` Masatake YAMATO
2004-03-24  5:53                 ` Miles Bader
2004-03-24 10:38                 ` Kim F. Storm
2004-03-24  5:34         ` Richard Stallman
2004-03-24 10:44           ` Kim F. Storm
2004-03-23 14:29       ` Robert J. Chassell
2004-03-23 18:38         ` Juri Linkov
2004-03-23 21:27           ` Robert J. Chassell
2004-03-25 21:57             ` Juri Linkov
2004-03-23 17:55       ` Juri Linkov
2004-03-23 22:44         ` David Kastrup
2004-03-25 21:31           ` Juri Linkov
2004-03-25  2:00         ` Richard Stallman
2004-03-25 10:04           ` Kim F. Storm
2004-03-27  5:52             ` Richard Stallman
2004-03-27 22:24               ` Stefan Monnier
2004-03-28  4:25                 ` Richard Stallman
2004-03-28 17:35                   ` Stefan Monnier
2004-03-29 20:56                     ` Richard Stallman
2004-03-29 21:24                       ` Stefan Monnier
2004-03-30  5:58                         ` Eli Zaretskii
2004-03-30 11:14                           ` Juri Linkov
2004-03-31  0:50                         ` Richard Stallman
2004-03-31  1:32                           ` Stefan Monnier
2004-03-31 23:02                             ` Miles Bader
2004-03-21 15:13 Masatake YAMATO
2004-03-22  5:25 ` Richard Stallman
2004-03-22 18:29   ` Tak Ota
2004-03-23  0:14   ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1BDRyM-0006rp-I3@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=gmorris+emacs@ast.cam.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).