[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Recent commit modifying mark-whole-buffer (master/aeb613ea95b7970e66

From: Drew Adams
Subject: RE: Recent commit modifying mark-whole-buffer (master/aeb613ea95b7970e66d663ec5cba54e9ec0528fa)
Date: Fri, 29 Apr 2016 14:48:48 -0700 (PDT)

> > (read-from-minibuffer (concat "What " (propertize "do you want" 'face
> >                                                   'bold)))
> So, more than one face, one each for every part of the prompt?

Maybe.  Depends on what you need/want.

It's not the minibuffer, but see attached screenshots of
isearch prompts (from `isearch+.el').

The screenshots with the white background show the default
faces.  The screenshot with the light orange background shows
the face values I myself use.

There are these faces used for parts of the Isearch+ prompt:

1. Standard prompt face (`minibuffer-prompt')
2. Regexp search face (`isearchp-regexp')
3. Wrapped search face (`isearchp-wrapped')
4. Overwrapped search (`isearchp-overwrapped')
5. Multi-buffer search (`isearchp-multi')

In addition, the `*wrapped' faces are used in the mode-line

(In the screenshot that shows the mode-line lighter, the
lighter text is `R*SEARCH', which indicates case-insensitive
regexp search.)

Wrt the minibuffer prompt (not Isearch), here is an example:

  "You can invoke command `%s' using `%s'"
  (propertize (symbol-name cmd) 'face 'icicle-msg-emphasis)
  (propertize (key-description binding) 'face 'icicle-msg-emphasis))

A screenshot shows this too, but using my setup (where red
is the normal prompt color for my standalone minibuffer).

Attachment: throw-isearch-prompt-faces.png
Description: PNG image

Attachment: throw-isearch-prompt-faces-default.png
Description: PNG image

Attachment: throw-isearchp-face-defaults.png
Description: PNG image

Attachment: throw-minibuffer-prompt-w-face.png
Description: PNG image

reply via email to

[Prev in Thread] Current Thread [Next in Thread]