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.bugs Subject: bug#46507: 26.1; bold attribute copied into enriched-mode text is not saved Date: Mon, 08 Mar 2021 15:16:07 +0200 Message-ID: <83sg55ss4o.fsf@gnu.org> References: <87mtvf3zdz.fsf@posteo.net> <87blbu4vl2.fsf@posteo.net> <83y2eysqyr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18120"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tomasn@posteo.net, 46507@debbugs.gnu.org To: Dan Hitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 08 15:06:15 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 1lJGWT-0004YW-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 15:06:13 +0100 Original-Received: from localhost ([::1]:54382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJGWS-0008Ta-VI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 09:06:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJFks-0002tx-OB for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 08:17:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59044) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJFks-0003TT-Gs for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 08:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJFks-0001KV-Cv for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 08:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Mar 2021 13:17:02 +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.16152093815051 (code B ref 46507); Mon, 08 Mar 2021 13:17:02 +0000 Original-Received: (at 46507) by debbugs.gnu.org; 8 Mar 2021 13:16:21 +0000 Original-Received: from localhost ([127.0.0.1]:42357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJFkC-0001JO-UE for submit@debbugs.gnu.org; Mon, 08 Mar 2021 08:16:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJFkB-0001JD-Tp for 46507@debbugs.gnu.org; Mon, 08 Mar 2021 08:16:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46703) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJFk6-00034D-OI; Mon, 08 Mar 2021 08:16:14 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3087 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lJFk5-0004Ef-E5; Mon, 08 Mar 2021 08:16:14 -0500 In-Reply-To: (message from Dan Hitt on Sun, 7 Mar 2021 12:18:24 -0800) 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:201829 Archived-At: > From: Dan Hitt > Date: Sun, 7 Mar 2021 12:18:24 -0800 > Cc: Tomas Nordin , 46507@debbugs.gnu.org > > Thomas: when i repeat the exercise with the shell, everything is lost: both bolding and color. > > The variable enriched-translations is > ((face (bold-italic "bold" "italic") (bold "bold") (italic "italic") (underline "underline") (fixed "fixed") (excerpt > "excerpt") (default) (nil enriched-encode-other-face)) (left-margin (4 "indent")) (right-margin (4 "indentright")) > (justification (none "nofill") (right "flushright") (left "flushleft") (full "flushboth") (center "center")) (PARAMETER > (t "param")) (FUNCTION (enriched-decode-foreground "x-color") (enriched-decode-background "x-bg-color") > (enriched-decode-display-prop "x-display")) (read-only (t "x-read-only")) (display (nil > enriched-handle-display-prop)) (unknown (nil format-annotate-value))) > > This comes from starting emacs with -Q, and evaluating the variable enriched-translations in the scratch > buffer. > > I went through the exercise with eshell, to make sure that nothing changed, and it doesn't seem to have: > colors get saved, but not boldness. So if the problem is with the font-lock-face vs face property, why is it that enriched-mode does preserve the color attribute, but not the both attribute? They both come from the same font-lock-face property, no? > Eli: Maybe it is wrong for me to say "needs" :) :). It would be very convenient though, and i could tweak some > variables in my start up (for testing with 'emacs -Q' though i would have to finagle it somehow i guess?). I don't think there's argument that enriched-mode should support this use case.