unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42768: emacs http://example.com
@ 2020-08-08 17:58 積丹尼 Dan Jacobson
  2020-08-09 11:07 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-08 17:58 UTC (permalink / raw)
  To: 42768

In bug#40269 the emacs maintainers probably feel file:/// isn't so
common, so not worth recognizing.

But http, and https are certainly common.

So how about emacs make an appropriate response when somebody does
$ emacs http://www.example.com/

"Use M-x make-directory RET RET to create the directory and its parents"
is not an appropriate response.

As to what is, you decide.





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

* bug#42768: emacs http://example.com
  2020-08-08 17:58 bug#42768: emacs http://example.com 積丹尼 Dan Jacobson
@ 2020-08-09 11:07 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-09 11:07 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 42768

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> In bug#40269 the emacs maintainers probably feel file:/// isn't so
> common, so not worth recognizing.
>
> But http, and https are certainly common.
>
> So how about emacs make an appropriate response when somebody does
> $ emacs http://www.example.com/

No, that would be rather confusing.

But you've reminded me that you can't use Emacs as a MIME handler for
URLs, and that should really be possible.

So I've added the trivial eww-browse command to Emacs 28.1, so that you
can now say

$ emacs -f eww-browse https://gnu.org

and register Emacs as a handler for the text/x-uri MIME type with

emacs -f eww-browse %u

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2020-08-09 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-08 17:58 bug#42768: emacs http://example.com 積丹尼 Dan Jacobson
2020-08-09 11:07 ` Lars Ingebrigtsen

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