unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#73727: dired-view-file vs. emacs -nw
@ 2024-10-10 10:41 Dan Jacobson
  2024-10-10 11:29 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Jacobson @ 2024-10-10 10:41 UTC (permalink / raw)
  To: 73727

v runs the command dired-view-file which works great even on images etc.
except when the user is using emacs -nw, in which case it just spews the
a lot of binary stuff on the screen which the user was not expecting.
Therefore it should say "xyz.jpg cannot be shown properly on your
terminal." (If they really want to see the bytes, they can use
find-file.)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73727: dired-view-file vs. emacs -nw
  2024-10-10 10:41 bug#73727: dired-view-file vs. emacs -nw Dan Jacobson
@ 2024-10-10 11:29 ` Eli Zaretskii
  2024-10-11  8:16   ` Dan Jacobson
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-10-10 11:29 UTC (permalink / raw)
  To: Dan Jacobson; +Cc: 73727

tags 73727 notabug wontfix
thanks

> From: Dan Jacobson <jidanni@jidanni.org>
> Date: Thu, 10 Oct 2024 18:41:48 +0800
> 
> v runs the command dired-view-file which works great even on images etc.
> except when the user is using emacs -nw, in which case it just spews the
> a lot of binary stuff on the screen which the user was not expecting.
> Therefore it should say "xyz.jpg cannot be shown properly on your
> terminal." (If they really want to see the bytes, they can use
> find-file.)

That's not the Emacs way.  Emacs allows users to visit any kind of
files, including those which display as binary garbage.  Moreover,
even on GUI frames, users can customize Emacs to never show image
files as images when they are visited.  Refusing to visit an image
file just because it cannot be displayed as an image is something
Emacs never did and should not do.

dired-view-file's doc string says:

  In Dired, examine a file in view mode, returning to Dired when done.
  When file is a directory, show it in this buffer if it is inserted.
  Otherwise, display it in another buffer.

There's nothing here about showing image files as images or not at
all.  Perhaps you were confused by the "view" part, but that refers to
view-mode, not to "viewing" an image.

So I don't see any bugs here, and don't think we should "fix" anything
in this matter.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73727: dired-view-file vs. emacs -nw
  2024-10-10 11:29 ` Eli Zaretskii
@ 2024-10-11  8:16   ` Dan Jacobson
  2024-10-11  9:28     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Jacobson @ 2024-10-11  8:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 73727

All I know is a couple more erroneous keystroks, and one ends up
accidentally editing one of these files, with its regexp parser choking
long lines... might end up using all the CPU...





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73727: dired-view-file vs. emacs -nw
  2024-10-11  8:16   ` Dan Jacobson
@ 2024-10-11  9:28     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-10-11  9:28 UTC (permalink / raw)
  To: Dan Jacobson; +Cc: 73727

> From: Dan Jacobson <jidanni@jidanni.org>
> Cc: 73727@debbugs.gnu.org
> Date: Fri, 11 Oct 2024 16:16:22 +0800
> 
> All I know is a couple more erroneous keystroks, and one ends up
> accidentally editing one of these files, with its regexp parser choking
> long lines... might end up using all the CPU...

dired-view-file visits the file in read-only mode, so you are not
supposed to edit it unless you really mean to...

IOW, it sounds like there was some cockpit error in your case, and you
somehow decided that it's Emacs's fault.  It isn't.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-11  9:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10 10:41 bug#73727: dired-view-file vs. emacs -nw Dan Jacobson
2024-10-10 11:29 ` Eli Zaretskii
2024-10-11  8:16   ` Dan Jacobson
2024-10-11  9:28     ` Eli Zaretskii

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).