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

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

Re: enriched mode loses bold on save, version 26.1, debian 10.3


From: Eli Zaretskii
Subject: Re: enriched mode loses bold on save, version 26.1, debian 10.3
Date: Sat, 13 Feb 2021 15:35:26 +0200

> Date: Sat, 13 Feb 2021 13:10:39 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: help-gnu-emacs@gnu.org
> 
> > I think this is a bug in enriched-mode, please report it together with
> > the recipe for reproducing the problem.
> 
> Let us say I have M-x shell in one window, and my prompt symbol "$" is
> green color or bold, and in other window file in enriched mode.
> 
> Then I move to buffer *shell* and copy this:
> 
> ,----
> | $ ls
> `----
> 
> I can see visually that $ is green in color or bold, and when I insert
> it into enriched mode file, I can see the same color. When I save it,
> it is not there, this is because propertized text was copied and
> pasted.
> 
> Is enriched mode supposed to understand propertized text and convert
> such into enriched mode?

Well, it did understand the foreground color in the OP's recipe,
didn't it?  it did save the color, but not the bold attribute So then
answer appears to be YES, and there's something Enriched mode should
have done but didn't.

(And there's no reason to "convert to enriched mode", since what
Enriched mode offers is a mechanism to save and restore text
properties.  It's not like it invents some new text attributes or
something, they are just text properties.)



reply via email to

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