unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, rpluim@gmail.com, 33855@debbugs.gnu.org
Subject: bug#33855: 27.0.50; Can't see markup in HELLO
Date: Fri, 20 May 2022 14:56:43 -0400	[thread overview]
Message-ID: <jwvy1yw11n2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83o7zs9pcf.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 May 2022 18:49:04 +0300")

Eli Zaretskii [2022-05-20 18:49:04] wrote:
>> Maybe a more explicit one, like `C-x h M-x write-region`?
> Yuck!  Users shouldn't need to use that command.

At least, for this user here, it is what I would do if I ever needed to
do that (and I think it's a fairly rare occurrence).

>> I can't see any part of my above recipe which says that the user (me in
>> this case, I was just trying things out, tho admittedly I disabled
>> `enriched-mode` via the menu on the "Enriched" word in the mode line
>> instead of via `M-x enriched-mode`) intended to remove the annotations.
> That's what Emacs understood:

I know but it very much surprised me, so I expect it could surprise
other users just as well.  Maybe `enriched-mode` should prompt the user
to confirm that this is what they intend.  And if they don't intend
to do that, it could do what `enriched-toggle-markup` does.

Similarly when enabling `enriched-mode` if it notices that the buffer is
already in a valid format for decoding, it could prompt to decide
whether to do the `enriched-toggle-markup` in reverse or to convert
the buffer to enriched-mode like it currently does.

> disabling Enriched means you give up on saving the faces and the other
> annotations,

I don't see any reason why the user should expect that.  Obviously some
users (e.g. you) would expect that, but since it throws away information
it seems better not to make such an assumption.

Usually our priority is to avoid throwing away information unless the
user says so explicitly and I don't think that disabling a minor mode
can be taken as a request to throw away information.

> because Emacs never does that.  E.g., if you save a buffer in CC mode
> with all the faces set by font-lock, you don't expect the file on disk
> to have any traces of those faces, right?

I think this assumes too much knowledge on the part of the user about
how `enriched-mode` works internally.


        Stefan






  reply	other threads:[~2022-05-20 18:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-23 22:15 bug#33855: 27.0.50; Can't see markup in HELLO Stefan Monnier
2022-05-18 13:07 ` Lars Ingebrigtsen
2022-05-18 14:31   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-18 14:53     ` Robert Pluim
2022-05-19 23:18       ` Lars Ingebrigtsen
2022-05-20 12:33         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-20 13:16           ` Eli Zaretskii
2022-05-20 14:24             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-20 15:49               ` Eli Zaretskii
2022-05-20 18:56                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-05-20 19:07                   ` Eli Zaretskii
2022-05-20 20:56                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-21  5:34                       ` Eli Zaretskii
2022-05-21 11:58           ` Lars Ingebrigtsen
2022-05-21 12:42             ` 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=jwvy1yw11n2.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=33855@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rpluim@gmail.com \
    /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).