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

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

bug#59828: Fundamental Mode buffers fail to keep text properties


From: Heime
Subject: bug#59828: Fundamental Mode buffers fail to keep text properties
Date: Mon, 05 Dec 2022 13:49:28 +0000


------- Original Message -------
On Monday, December 5th, 2022 at 12:46 PM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Cc: 59828@debbugs.gnu.org
> > Date: Mon, 05 Dec 2022 08:30:51 +0000
> > From: Heime via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" bug-gnu-emacs@gnu.org
> > 
> > > > Have noticed that when I insert text with colour properties in a buffer
> > > > using fundamental-mode, the text properties (e.g. colours) get lost.
> > > 
> > > I assume you used the ‘face property, right? If you replace ‘face with 
> > > 'font-lock-face, does it work?
> > > 
> > > Yuan
> > 
> > I used 'font-lock-face and did not work.
> 
> 
> Please show the code you used. It works here.


(with-current-buffer (get-buffer-create bufrn)
  (insert (propertize "G"
             'font-lock-face '(:background "green"
                               :foreground "black"))))










reply via email to

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