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

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

Re: help-default-arg-highlight


From: Juanma Barranquero
Subject: Re: help-default-arg-highlight
Date: Tue, 01 Jun 2004 09:56:03 +0200

On Tue, 01 Jun 2004 13:22:16 +0900
Miles Bader <address@hidden> wrote:

> Ok, this version actually seems to work correctly on both ttys and X:
> 
>    (defun face-differs-from-default-p (face &optional frame)

How would that help in the help-default-arg-highlight case? You cannot
do

  (face-font '(:italic t))

or

  (face-differs-from-default-p '(:italic t))

Are you proposing that the italic font be used by default, i.e.

(defun help-default-arg-highlight (arg)
  "Default function to highlight arguments in *Help* buffers.
It returns ARG in lowercase italics, if the display supports it;
else ARG is returned in uppercase normal."
  (if (face-differs-from-default-p 'italic)
      (propertize (downcase arg) 'face 'italic)
    arg))


                                                                Juanma






reply via email to

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