From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Hitt Newsgroups: gmane.emacs.bugs Subject: bug#46507: 26.1; bold attribute copied into enriched-mode text is not saved Date: Sun, 7 Mar 2021 12:18:24 -0800 Message-ID: References: <87mtvf3zdz.fsf@posteo.net> <87blbu4vl2.fsf@posteo.net> <83y2eysqyr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000095af7c05bcf805f6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37679"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tomas Nordin , 46507@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 07 21:19:11 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 1lIzrq-0009fQ-QB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 21:19:10 +0100 Original-Received: from localhost ([::1]:45340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIzrp-0002ra-L3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 15:19:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIzri-0002qM-7p for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 15:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIzri-0004pA-05 for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 15:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIzrh-0007iH-RP for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 15:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dan Hitt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Mar 2021 20:19: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.161514832329625 (code B ref 46507); Sun, 07 Mar 2021 20:19:01 +0000 Original-Received: (at 46507) by debbugs.gnu.org; 7 Mar 2021 20:18:43 +0000 Original-Received: from localhost ([127.0.0.1]:41586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIzrP-0007hl-Gq for submit@debbugs.gnu.org; Sun, 07 Mar 2021 15:18:43 -0500 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:37463) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIzrM-0007hV-T7 for 46507@debbugs.gnu.org; Sun, 07 Mar 2021 15:18:41 -0500 Original-Received: by mail-wm1-f52.google.com with SMTP id f22-20020a7bc8d60000b029010c024a1407so2563265wml.2 for <46507@debbugs.gnu.org>; Sun, 07 Mar 2021 12:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BiOEd3wrHLLK67quwH6KGjuR9Ukf6pmA9COpS+NXi6I=; b=qLO6J1JDnHJJ7fQWxNUxMsAfuellyOg+BWEaLkk+Ljkvn3PEqH0NEimWznJryDEKGD jASIVYnMGD2bWCd5aL/1qS1On1oVX64jtsLpdjawSQCbGFhqY5Fd7qFgohbW4FOZVLp1 tgIqFIrGDkx7AcUmu478B4YegXujN8UHzbJxwSXgU3TbBi/f/jTWD6xLS22Sbqr62R0f OWpiiXsmukNfzbKhbCceOW6a6gpOjEO2jnXNnspHllC2pdeNAyF3QAyuReppyfbvh76F SsMxCvOkJy9SzocLAmDYsuCMEiRG8qHyb/MP+IGKDQv67zudcBnMtF9imBLc3MWGln96 CmcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BiOEd3wrHLLK67quwH6KGjuR9Ukf6pmA9COpS+NXi6I=; b=XL6akHIAnJ9yJ14TSFBgtWgmuhraNmpB62hzPv2ngM45pVhASi22WIoX2J7w9vP1m1 YnPIxFx5tQf2wGvUjcKCQykEJ/HoIUBAxQeUMrKShTauid9uoatGlE5WIfEC30CiBQDl WN5aNHLuQWTmltT6E91vNdig7JwPNOxrYxWHkDT78yTRLjHfCrf+7WQfHzsi0UQ7me9u 8wBXSyLK5QknjSCQB0+Jb7uhPOL9+V/ksYqTEOM4ekmpHMqoRqBSuNtQtBsoNiloSzq5 7H8t+u4RUxcUCZlnl5BoaBS0Hped7WpqkwjS/8TqMmtExYaPHfUKhI0jeW69InvFX0Rq NTiQ== X-Gm-Message-State: AOAM53232MvMfD9CN1cZn2qLcWt+MoaVS/6y0bqz6IWhdLTxCAeNrfd0 zHbjkd6lRVYfuy9Cm/svzyFaMYzAEVS28/ep+9Q= X-Google-Smtp-Source: ABdhPJwgNttOUVoKRfvBCrSyypUZ2rQJMWUDNyQZ2JurRUSjoHL+HfZFZ5znh/REp2KHhgi+p9nf+XUEfTgK9gfocm4= X-Received: by 2002:a05:600c:4150:: with SMTP id h16mr17422541wmm.120.1615148315159; Sun, 07 Mar 2021 12:18:35 -0800 (PST) In-Reply-To: <83y2eysqyr.fsf@gnu.org> 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:201776 Archived-At: --00000000000095af7c05bcf805f6 Content-Type: text/plain; charset="UTF-8" On Sun, Mar 7, 2021 at 11:29 AM Eli Zaretskii wrote: > > From: Tomas Nordin > > Date: Sun, 07 Mar 2021 20:23:05 +0100 > > Cc: 46507@debbugs.gnu.org > > > > --> '(font-lock-face eshell-ls-directory)' > > > > and what is defined by variable 'enriched-translations'. > > > > Try the same (your recipe) but using M-x shell, and see if it works as > > expected. It did here, I mean the boldness and the color stuck with the > > enriched file. So maybe it is not a bug but just a limitation of the > > enriched-mode, not understanding all possible kinds of text-properties. > > We control which text properties enriched-mode knows about. If > there's some property it needs to support, but doesn't currently, we > can teach it to support that property as well. > Thanks Eli and Thomas. 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. 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?). dan --00000000000095af7c05bcf805f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sun, Mar 7, 2021 at 11:29 AM Eli Zaret= skii <eliz@gnu.org> wrote:
> From: Tomas Nordi= n <tomasn@posteo.= net>
> Date: Sun, 07 Mar 2021 20:23:05 +0100
> Cc: 46507@d= ebbugs.gnu.org
>
> --> '(font-lock-face eshell-ls-directory)'
>
> and what is defined by variable 'enriched-translations'.
>
> Try the same (your recipe) but using M-x shell, and see if it works as=
> expected. It did here, I mean the boldness and the color stuck with th= e
> enriched file. So maybe it is not a bug but just a limitation of the > enriched-mode, not understanding all possible kinds of text-properties= .

We control which text properties enriched-mode knows about.=C2=A0 If
there's some property it needs to support, but doesn't currently, w= e
can teach it to support that property as well.

Thanks Eli and Thomas.

Thomas: when i repe= at the exercise with the shell, everything is lost: both bolding and color.=

The variable enriched-translations is
(= (face (bold-italic "bold" "italic") (bold "bold&qu= ot;) (italic "italic") (underline "underline") (fixed &= quot;fixed") (excerpt "excerpt") (default) (nil enriched-enc= ode-other-face)) (left-margin (4 "indent")) (right-margin (4 &quo= t;indentright")) (justification (none "nofill") (right "= ;flushright") (left "flushleft") (full "flushboth"= ) (center "center")) (PARAMETER (t "param")) (FUNCTION = (enriched-decode-foreground "x-color") (enriched-decode-backgroun= d "x-bg-color") (enriched-decode-display-prop "x-display&quo= t;)) (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 we= nt through the exercise with=C2=A0 eshell, to make sure that nothing change= d, and it doesn't seem to have: colors get saved, but not boldness.
=

Eli: Maybe it is wrong for me to say "needs&= quot; :) :).=C2=A0 It would be very convenient though, and i could tweak so= me variables in my start up (for testing with 'emacs -Q' though i w= ould have to finagle it somehow i guess?).

dan
--00000000000095af7c05bcf805f6--