unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Hitt <dan.hitt@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Tomas Nordin <tomasn@posteo.net>, 46507@debbugs.gnu.org
Subject: bug#46507: 26.1; bold attribute copied into enriched-mode text is not saved
Date: Sun, 7 Mar 2021 12:18:24 -0800	[thread overview]
Message-ID: <CAOphizK7Agdi4DXGwLAQ1nahDj2a_gq-0s4B+r8AoOiwUWnFcg@mail.gmail.com> (raw)
In-Reply-To: <83y2eysqyr.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2050 bytes --]

On Sun, Mar 7, 2021 at 11:29 AM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Tomas Nordin <tomasn@posteo.net>
> > 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

[-- Attachment #2: Type: text/html, Size: 2977 bytes --]

  reply	other threads:[~2021-03-07 20:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-14  2:01 bug#46507: 26.1; bold attribute copied into enriched-mode text is not saved Dan Hitt
2021-03-07 12:46 ` Tomas Nordin
2021-03-07 16:51   ` Dan Hitt
2021-03-07 19:23     ` Tomas Nordin
2021-03-07 19:29       ` Eli Zaretskii
2021-03-07 20:18         ` Dan Hitt [this message]
2021-03-08 13:16           ` Eli Zaretskii
2021-03-13 10:28             ` Eli Zaretskii
2021-03-13 18:47               ` Dan Hitt
2021-03-13 19:22                 ` Eli Zaretskii
2021-03-14  7:32                   ` Dan Hitt
2021-03-14  7:50                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOphizK7Agdi4DXGwLAQ1nahDj2a_gq-0s4B+r8AoOiwUWnFcg@mail.gmail.com \
    --to=dan.hitt@gmail.com \
    --cc=46507@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=tomasn@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).