unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 51961@debbugs.gnu.org
Subject: bug#51961: image-mode: advertize viewing an image as hex less eagerly
Date: Fri, 19 Nov 2021 04:38:10 +0100	[thread overview]
Message-ID: <CADwFkmnE4NKtJRucg6t8LxU+ZzmipO=anYgJvqEwksxJk=eyXg@mail.gmail.com> (raw)

Severity: minor

This is a usability bug:

I don't think image mode should advertize it's capability to view an
image as hex in a message every time it is enabled:

    Type C-c C-c or C-c C-x to view the image as text or hex

Editing the hex or "text" of something like a JPEG does not strike me as
something most people will be able to do usefully by hand.  For bitmap
formats maybe, but even then, won't people just use an image editor?

And for those users that do know what bits to flip, can't we expect them
to be able to figure out that Emacs has a command to quickly flip to the
built-in hex editor or to "text mode"?  For example by reading the mode
help?  IOW, I think this message confuses more than it helps (but see
the final paragraph below).

Why not advertize some useful commands instead, like "Press h for help",
or "Use + and - to scale up and down"?

Or, even better perhaps, just say nothing?  It's already all there in
`describe-mode', right?

There is a minority of image types where it is obviously useful,
i.e. XPM and similar formats where the image is actually just a plain
text file.  I think we could consider keeping the message for those.





             reply	other threads:[~2021-11-19  3:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19  3:38 Stefan Kangas [this message]
2021-11-19  7:16 ` bug#51961: image-mode: advertize viewing an image as hex less eagerly Eli Zaretskii
2021-11-19  7:32   ` Lars Ingebrigtsen
2021-12-03 14:56     ` Stefan Kangas
2021-11-19  7:59   ` Stefan Kangas
2021-11-19  8:25 ` Juri Linkov

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='CADwFkmnE4NKtJRucg6t8LxU+ZzmipO=anYgJvqEwksxJk=eyXg@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=51961@debbugs.gnu.org \
    /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).