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

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

Re: Writing coloured text


From: Eli Zaretskii
Subject: Re: Writing coloured text
Date: Wed, 16 Nov 2022 15:29:48 +0200

> From: Bruno Barbier <brubar.cs@gmail.com>
> Date: Wed, 16 Nov 2022 10:37:00 +0100
> 
> Heime <heimeborgia@protonmail.com> writes:
> 
> > (defun cmesg (mesg colr bufr)
> >   "TODO."
> >
> >   (let ( (bfr (get-buffer-create bufr))
> >          (pms (propertize mesg
> >                           'face '(:foreground colr))) )
> 
> '(:foreground colr)
> 
> =>
> 
> `(:foreground ,colr)

I think it is easier to understand this alternative:

  (list :foreground colr)




reply via email to

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