[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help-default-arg-highlight
From: |
Kim F. Storm |
Subject: |
Re: help-default-arg-highlight |
Date: |
29 May 2004 01:51:23 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Juri Linkov <address@hidden> writes:
> (defun help-default-arg-highlight (arg)
> (propertize (downcase arg) 'face '(:foreground "SkyBlue4")))
>
> But I don't understand why not to use a special `help-argument-name'
> face like it was already added to help-fns.el but eventually removed.
> Redefining a function is too ugly way to customize a face. It makes
> sense to redefine the function only when the user don't want to
> downcase the arguments.
What about this:
(defcustom help-default-arg-highlight-attributes '(:slant italic))
(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."
(let (attrs help-default-arg-highlight-attributes)
(if (and attrs
(display-supports-face-attributes-p attrs))
(propertize (downcase arg) 'face attrs)
arg)))
Setting that var to nil would undo this feature.
--
Kim F. Storm http://www.cua.dk
- help-default-arg-highlight, Glenn Morris, 2004/05/25
- Re: help-default-arg-highlight, Juri Linkov, 2004/05/28
- Re: help-default-arg-highlight,
Kim F. Storm <=
- Re: help-default-arg-highlight, Juri Linkov, 2004/05/29
- Re: help-default-arg-highlight, Kim F. Storm, 2004/05/29
- Re: help-default-arg-highlight, Juanma Barranquero, 2004/05/31
- Re: help-default-arg-highlight, Miles Bader, 2004/05/31
- Re: help-default-arg-highlight, Juanma Barranquero, 2004/05/31
- Re: help-default-arg-highlight, Juanma Barranquero, 2004/05/31
- Re: help-default-arg-highlight, Miles Bader, 2004/05/31
- Re: help-default-arg-highlight, Kenichi Handa, 2004/05/31
- Re: help-default-arg-highlight, Juanma Barranquero, 2004/05/31
- Re: help-default-arg-highlight, Kenichi Handa, 2004/05/31