That said, lack of sane defaults elsewhere is indeed a bit frustrating, (see: littering backup and auto save files everywhere. It would be much nicer to throw it in a ‘temp’ directory within .emacs.d or similar)
I believe opening within Emacs should be the default - as many Emacs users aim to do everything within Emacs.
See this submission from a day ago:
I believe it's actually only a very vocal, very misguided minority that tries to do everything in emacs. Emacs is objectively inferior to existing alternatives for:
- IMAP
- viewing and especially annotating PDFs
- Browsing the web
- working with LLM agents
- multiplayer text editing (crdt.el is trash)
- working with rich text documents like .docx
- working with spreadsheets
- notebook rendering (org vs md and jupyter are definitely a "worse is better" situation)
etc.
It is not sane to assume the user wants to do everything in emacs. Emacs is bad at lots of things and that's okay.
The point is that if Emacs ships with an image viewer, it makes sense for that to be the default. If KDE comes with an image viewer, you would expect it to be the default - even if it sucks. Ditto anything on a Mac/iPhone.
> Emacs is bad at lots of things and that's okay.
It's also OK to have it as the default. Emacs usage is not shrinking, and they're OK sticking to their philosophy as long as it doesn't impede future development (it doesn't, as the last 20 years have shown).
If, and only if, the user has emacs set in xdg as the preferred image viewer, then I agree.
Personally, on multiple occasions, I've been frustrated when upgrading some (non-Emacs) SW and have it behave differently because they suddenly decided to make using xdg the default and then having to waste time finding a way to revert that behavior.
This isn't a problem unique to Emacs.
I'm sure if Emacs seriously started losing lots of users, they'll change the defaults to attract some. Until then, the developers (and most chronic users) simply don't care.
The thing most n00bs should be taught first is that emacs is self documenting. Hit c-h t (ctrl-h t) to get the tutorial. Hit c-h m to get documentation on the current mode you are in. Hit c-h k followed by a key (or key combo) to see which elisp function a key calls (even just normal letters call a function). Hit c-h f and then type a function name to see documentation on a function. Oh yeah, and hit q to exit any of those help documents and get back to the file you have open
If the editor ships a built in file manager, that file manager should not require explicit configuration to open e.g. a jpeg in an image viewer by default. We've had `xdg-open` for years now, it's kind of absurd how far behind emacs is in so many ways.