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: Jean Louis
Subject: Re: enriched mode loses bold on save, version 26.1, debian 10.3
Date: Sat, 13 Feb 2021 13:10:39 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Eli Zaretskii <eliz@gnu.org> [2021-02-13 11:37]:
> > From: Dan Hitt <dan.hitt@gmail.com>
> > Date: Fri, 12 Feb 2021 18:21:29 -0800
> > 
> > I can copy text that has colors and some words bolded into a buffer showing
> > an enriched-text file.
> > 
> > For example, i can open an eshell, and do ls: the command prompt is bold
> > and orange, while the files i list that are directories come out bold and
> > blue, with black unbold text for regular files.
> > 
> > When i paste this text into an enriched-text file, all of the colors and
> > bolding show up.
> > 
> > When i close the file, and reopen it, the colors are still there, but the
> > bolding is gone.
> > 
> > This is in emacs version 26.1, on debian 10.3.
> > 
> > What i would like is for the bolding to be saved as well  --- if
> > enriched-text is not suitable for this, is there another mode anybody can
> > recommend?
> 
> 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?

Jean



reply via email to

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