bug-gnu-emacs
[Top][All Lists]
Advanced

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

BUG [Emacs 21.1] face property ignored on some minibuffer prompts


From: Francis Litterio
Subject: BUG [Emacs 21.1] face property ignored on some minibuffer prompts
Date: Fri, 01 Mar 2002 14:55:16 -0500
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.1 (i386-msvc-nt5.0.2195)

In Emacs 21.1, when reading input from the minibuffer using the
following functions, the face property on the prompt string is ignored:

  y-or-n-p
  read-char
  read-char-exclusive
  read-input
  read-key-sequence

But using the following functions, the face property is honored:

  read-from-minibuffer
  yes-or-no-p

To reproduce, evaluate these Elisp forms (assuming your highlight face
is visually different from your default face):

  ;; Prompt is not highlighted ...
  (y-or-n-p (propertize "Really? " 'face 'highlight))

  ;; Prompt is not highlighted ...
  (read-char-exclusive (propertize "Really? " 'face 'highlight))

  ;; Prompt is highlighted ...
  (yes-or-no-p (propertize "Really? " 'face 'highlight))

  ;; Prompt is highlighted ...
  (read-from-minibuffer (propertize "Really? " 'face 'highlight))
--
Francis Litterio
franl-remove@world.omit-this.std.com



reply via email to

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