From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#51961: image-mode: advertize viewing an image as hex less eagerly Date: Fri, 19 Nov 2021 04:38:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2045"; mail-complaints-to="usenet@ciao.gmane.io" To: 51961@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 19 04:39: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 1mnuk3-0000Ii-2E for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 04:39:11 +0100 Original-Received: from localhost ([::1]:35904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnuk1-0003xN-Sx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 22:39:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnuju-0003x0-Fp for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 22:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnuju-0000GS-7V for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 22:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnuju-0000fB-2g for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 22:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Nov 2021 03:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51961 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16372930962482 (code B ref -1); Fri, 19 Nov 2021 03:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Nov 2021 03:38:16 +0000 Original-Received: from localhost ([127.0.0.1]:37554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnujA-0000dy-0v for submit@debbugs.gnu.org; Thu, 18 Nov 2021 22:38:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnuj8-0000dr-Rf for submit@debbugs.gnu.org; Thu, 18 Nov 2021 22:38:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnuj8-0003kZ-M4 for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 22:38:14 -0500 Original-Received: from mail-pg1-f176.google.com ([209.85.215.176]:41973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnuj6-0000AV-Fl for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 22:38:14 -0500 Original-Received: by mail-pg1-f176.google.com with SMTP id 28so7417679pgq.8 for ; Thu, 18 Nov 2021 19:38:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=wK/90NG4Sr1qqegtmSpOzgKVpqf2lCXsuj14F5gBBRs=; b=FCE7kCojiASEUsobNxwc2pJP2Z/87ow/I37ZvAH/+GGq5V37rataXJekm3C2LT35ea lggJ8WFhzf50H5i3D36EqMEpH7pzGUGXTyxM609zME1/WNfaLNmc0i/ScvHHHcQCxRbS YVAy3/vzmQT6yqBKabY8ijd0BMZnOm2rX840KhgbQGdYmGqjITzkv9YEj+7/lhhH3tRN 9w2Rpe+AtDaU/IFdlGs/cvMdbqp8T8T7uQsxlcncZ51kA6s9c3IotXmgPA6JgS+s7e8t zZz17ntOTcUhU48S+3gbpV0byh5a20239GEzX9J+ReU8ooC4HFknHMfXAliW7SKGvYEW 2lXQ== X-Gm-Message-State: AOAM533VrLULy4v+DETD3/5fkgYAssmkncRwn9VrNVLHjn34d7JU0U5F 9eB/8zc2VKMujDKW5rKHwyE8Et/1MV6pPiNBk98fwK/H X-Google-Smtp-Source: ABdhPJxyYynlFkaQAgqcKTDuYAPiMo96XMlJB4q29CqXOEgJp3ywHWyAIVwr78pyRfGPpG4AU1Ej+eGQ2QciewUzUYY= X-Received: by 2002:a05:6a00:1909:b0:49f:a0d0:abcf with SMTP id y9-20020a056a00190900b0049fa0d0abcfmr60837195pfi.70.1637293090984; Thu, 18 Nov 2021 19:38:10 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 19 Nov 2021 04:38:10 +0100 Received-SPF: pass client-ip=209.85.215.176; envelope-from=stefankangas@gmail.com; helo=mail-pg1-f176.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:220358 Archived-At: 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.