GNU bug report logs - #59828
Fundamental Mode buffers fail to keep text properties

Previous Next

Package: emacs;

Reported by: Heime <heimeborgia <at> protonmail.com>

Date: Mon, 5 Dec 2022 06:31:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 59828 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Heime <heimeborgia <at> protonmail.com>
Cc: casouri <at> gmail.com, 59828 <at> debbugs.gnu.org
Subject: Re: bug#59828: Fundamental Mode buffers fail to keep text properties
Date: Mon, 05 Dec 2022 17:00:57 +0200
> Date: Mon, 05 Dec 2022 14:54:47 +0000
> From: Heime <heimeborgia <at> protonmail.com>
> Cc: casouri <at> gmail.com, 59828 <at> debbugs.gnu.org
> 
> > Conclusion: you need to turn on font-lock in that buffer.
> > 
> 
> When I use (text-mode) or (org-mode), I do not get the problem.
> 
> (with-current-buffer (get-buffer-create bufrn)
>  (text-mode)
>  (insert (propertize "G"
>  'font-lock-face '(:background "green"
>  :foreground "black"))))

Because those turn on font-lock by default.




This bug report was last modified 2 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.