From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: enriched mode loses bold on save, version 26.1, debian 10.3 Date: Sat, 13 Feb 2021 15:35:26 +0200 Message-ID: <83tuqgccpt.fsf@gnu.org> References: <83blcoe53i.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7539"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 14:35:55 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAv5W-0001q0-Ml for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 14:35:54 +0100 Original-Received: from localhost ([::1]:58618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAv5V-0004JW-OC for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 08:35:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAv59-0004Hd-7u for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 08:35:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49440) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAv59-0001iU-0b for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 08:35:31 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3070 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lAv56-0006Qe-8J for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 08:35:30 -0500 In-Reply-To: (message from Jean Louis on Sat, 13 Feb 2021 13:10:39 +0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127931 Archived-At: > Date: Sat, 13 Feb 2021 13:10:39 +0300 > From: Jean Louis > 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.)