From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.bugs Subject: bug#46507: 26.1; bold attribute copied into enriched-mode text is not saved Date: Sun, 07 Mar 2021 13:46:16 +0100 Message-ID: <87mtvf3zdz.fsf@posteo.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40890"; mail-complaints-to="usenet@ciao.gmane.io" To: Dan Hitt , 46507@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 07 13:57:03 2021 Return-path: Envelope-to: geb-bug-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 1lIsxy-000ATR-0w for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 13:57:02 +0100 Original-Received: from localhost ([::1]:51410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIsxx-0000yc-2n for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 07:57:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIsoJ-0001hZ-2j for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 07:47:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIsoH-0000cI-QS for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 07:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIsoH-0004cc-Of for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 07:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Nordin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Mar 2021 12:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46507 X-GNU-PR-Package: emacs Original-Received: via spool by 46507-submit@debbugs.gnu.org id=B46507.161512118617718 (code B ref 46507); Sun, 07 Mar 2021 12:47:01 +0000 Original-Received: (at 46507) by debbugs.gnu.org; 7 Mar 2021 12:46:26 +0000 Original-Received: from localhost ([127.0.0.1]:38977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIsnh-0004bi-Qf for submit@debbugs.gnu.org; Sun, 07 Mar 2021 07:46:26 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:40087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIsnf-0004bV-RS for 46507@debbugs.gnu.org; Sun, 07 Mar 2021 07:46:24 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id D362C240100 for <46507@debbugs.gnu.org>; Sun, 7 Mar 2021 13:46:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1615121177; bh=bdKlG2BUAr8+VMMWGBD5431ixmORqR6Df/51Ub5SW4s=; h=From:To:Subject:Date:From; b=ipEePOVhLLYGRPo7nKuUKaEjQqaRR90MfsdaZ4IZbqb/oQ2CxVl15Dwoz1H5ADnrK JAMNTjbvootNMCl5uVr6LsWQDXFORyeg8coOKVPX6Gz+dyXS4ZdFOs7Ae51vac9i5Q MNx32jJ/YIuCfyACgqYD9xFp7Oo1/G+VzsYAp7ZANkEO+nozSWi3uRf3ELiOhURDrt InTMXj6dmWtYa96apS2TUBzTZdv1D2dEy3ef6vH5bliSp2R6S4+4hFmJnHiArl8D5y WLZxuhME8ywsPe8cVUHt+e62NFfS/9EW2gEIp9s6fdL0EBwfNn963P3h1Y0DNOuzfx p1H1NUvhUeJKA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dth6d0nr2z9rxL; Sun, 7 Mar 2021 13:46:17 +0100 (CET) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201738 Archived-At: Hello Dan Dan Hitt writes: > I am using emacs 26.1 on debian 10.3. > > The bug is that when you copy bolded-colored text from an eshell buffer > into an enriched-text buffer, the bold shows after the copy --- but if you > then close the enriched-text file, and re-open it, the bolding is gone. I have no experience with Enriched mode but I read this from [1]: Enriched mode is typically used with Text mode (see Text Mode). It is not compatible with Font Lock mode, which is used by many major modes, including most programming language modes, for syntax highlighting (see Font Lock). Unlike Enriched mode, Font Lock mode assigns text properties automatically, based on the current buffer contents; those properties are not saved to disk. So if the "bolded-colored" text is a font lock thing, it will not be saved to disc. Could that be it? [1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Enriched-Text.html#Enriched-Text-1 -- Tomas