all messages for Emacs-related lists mirrored at yhetil.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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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
  2024-10-25 22:05       ` Dan Jacobson
  2024-10-27 10:16       ` Eli Zaretskii
  0 siblings, 2 replies; 9+ 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] 9+ messages in thread

* bug#73727: dired-view-file vs. emacs -nw
  2024-10-11  9:28     ` Eli Zaretskii
@ 2024-10-25 22:05       ` Dan Jacobson
  2024-10-26  7:04         ` Eli Zaretskii
  2024-10-27 10:16       ` Eli Zaretskii
  1 sibling, 1 reply; 9+ messages in thread
From: Dan Jacobson @ 2024-10-25 22:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 73727

>>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
EZ> dired-view-file visits the file in read-only mode, so you are not
EZ> supposed to edit it unless you really mean to...

(Actually there are tons of keys that will, if held down a little too
long, end up inserting characters into the top of JPGs:

RET		dired-find-file
e .. f		dired-find-file
o		dired-find-file-other-window

Yes, users should then use "undo".)





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

* bug#73727: dired-view-file vs. emacs -nw
  2024-10-25 22:05       ` Dan Jacobson
@ 2024-10-26  7:04         ` Eli Zaretskii
  2024-10-26  8:57           ` Dan Jacobson
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2024-10-26  7:04 UTC (permalink / raw)
  To: Dan Jacobson; +Cc: 73727

> From: Dan Jacobson <jidanni@jidanni.org>
> Cc: 73727@debbugs.gnu.org
> Date: Sat, 26 Oct 2024 06:05:29 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
> EZ> dired-view-file visits the file in read-only mode, so you are not
> EZ> supposed to edit it unless you really mean to...
> 
> (Actually there are tons of keys that will, if held down a little too
> long, end up inserting characters into the top of JPGs:
> 
> RET		dired-find-file
> e .. f		dired-find-file
> o		dired-find-file-other-window
> 
> Yes, users should then use "undo".)

I don't see how this changes what I already told above.





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

* bug#73727: dired-view-file vs. emacs -nw
  2024-10-26  7:04         ` Eli Zaretskii
@ 2024-10-26  8:57           ` Dan Jacobson
  2024-10-26 13:30             ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Dan Jacobson @ 2024-10-26  8:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 73727

>>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
EZ> I don't see how this changes what I already told above.

If you used emacs -nw exclusively for two months, like I have, you would
notice even more problems.

E.g., every time the user opens an image file by accident,
they will see, along with the binary mess,
"File mode specification error: (error Display does not support images)"
It would be better to warn them
"emacs -nw has no image support.  Use find-file-literally if you really want to edit this image."
and not open the file.

What's worse is view-mode doesn't even have a warning. Sure, it is
tailored for the 1% of users who really are using emacs -nw to view the
guts of JPGs.






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

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

> From: Dan Jacobson <jidanni@jidanni.org>
> Cc: 73727@debbugs.gnu.org
> Date: Sat, 26 Oct 2024 16:57:44 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
> EZ> I don't see how this changes what I already told above.
> 
> If you used emacs -nw exclusively for two months, like I have, you would
> notice even more problems.

I'm using "emacs -nw" all the time.  As are others.





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

* bug#73727: dired-view-file vs. emacs -nw
  2024-10-11  9:28     ` Eli Zaretskii
  2024-10-25 22:05       ` Dan Jacobson
@ 2024-10-27 10:16       ` Eli Zaretskii
  1 sibling, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2024-10-27 10:16 UTC (permalink / raw)
  To: jidanni; +Cc: 73727-done

> Cc: 73727@debbugs.gnu.org
> Date: Fri, 11 Oct 2024 12:28:14 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > 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.

No substantial new information or comments about this in more than 2
weeks, so I'm now closing this bug.





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

end of thread, other threads:[~2024-10-27 10:16 UTC | newest]

Thread overview: 9+ 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
2024-10-25 22:05       ` Dan Jacobson
2024-10-26  7:04         ` Eli Zaretskii
2024-10-26  8:57           ` Dan Jacobson
2024-10-26 13:30             ` Eli Zaretskii
2024-10-27 10:16       ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.