all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#40269: Emacs should recognize "file:" when opening files
@ 2020-03-28  4:04 積丹尼 Dan Jacobson
  2020-08-05 11:40 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-03-28  4:04 UTC (permalink / raw)
  To: 40269

Emacs should recognize file:///home/bla/bla/h.html
That way users could do
$ set file:///home/bla/bla/h.html
$ $BROWSER $@
$ emacs $@
etc. and they would all work the same!
No I don't want to use extensions.





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-03-28  4:04 bug#40269: Emacs should recognize "file:" when opening files 積丹尼 Dan Jacobson
@ 2020-08-05 11:40 ` Lars Ingebrigtsen
  2020-08-06  5:55   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-05 11:40 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 40269

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

> Emacs should recognize file:///home/bla/bla/h.html
> That way users could do
> $ set file:///home/bla/bla/h.html
> $ $BROWSER $@
> $ emacs $@
> etc. and they would all work the same!
> No I don't want to use extensions.

What should it do with this input?  Start eww?  Edit h.html?

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





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-05 11:40 ` Lars Ingebrigtsen
@ 2020-08-06  5:55   ` 積丹尼 Dan Jacobson
  2020-08-06  7:22     ` Lars Ingebrigtsen
  2020-08-06 13:41     ` Eli Zaretskii
  0 siblings, 2 replies; 11+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-06  5:55 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 40269

>>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:
LI> 積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

>> Emacs should recognize file:///home/bla/bla/h.html
>> That way users could do
>> $ set file:///home/bla/bla/h.html
>> $ $BROWSER $@
>> $ emacs $@
>> etc. and they would all work the same!
>> No I don't want to use extensions.

LI> What should it do with this input?  Start eww?  Edit h.html?

Well emacs is an editor so I suppose it should edit it.
But OK it could also browse if it insists.
Anything is better than the current behavior of totally not being
prepared for file:/// .





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-06  5:55   ` 積丹尼 Dan Jacobson
@ 2020-08-06  7:22     ` Lars Ingebrigtsen
  2020-08-06 13:41     ` Eli Zaretskii
  1 sibling, 0 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-06  7:22 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 40269

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

> Well emacs is an editor so I suppose it should edit it.
> But OK it could also browse if it insists.
> Anything is better than the current behavior of totally not being
> prepared for file:/// .

I don't know whether that makes sense at all.  I just don't see the use
case of feeding an URL to Emacs and then expecting to be able to start
editing it.  It's a pretty obscure thing to want to happen.

So I'm closing this bug report.

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





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-06  5:55   ` 積丹尼 Dan Jacobson
  2020-08-06  7:22     ` Lars Ingebrigtsen
@ 2020-08-06 13:41     ` Eli Zaretskii
  2020-08-06 17:44       ` 積丹尼 Dan Jacobson
  1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2020-08-06 13:41 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: larsi, 40269

> From: 積丹尼 Dan Jacobson
>  <jidanni@jidanni.org>
> Date: Thu, 06 Aug 2020 13:55:45 +0800
> Cc: 40269@debbugs.gnu.org
> 
> >>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:
> LI> 積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> 
> >> Emacs should recognize file:///home/bla/bla/h.html
> >> That way users could do
> >> $ set file:///home/bla/bla/h.html
> >> $ $BROWSER $@
> >> $ emacs $@
> >> etc. and they would all work the same!
> >> No I don't want to use extensions.
> 
> LI> What should it do with this input?  Start eww?  Edit h.html?
> 
> Well emacs is an editor so I suppose it should edit it.
> But OK it could also browse if it insists.
> Anything is better than the current behavior of totally not being
> prepared for file:/// .

Is there an actual use case here, or are we inventing it as we go?





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-06 13:41     ` Eli Zaretskii
@ 2020-08-06 17:44       ` 積丹尼 Dan Jacobson
  2020-08-06 18:04         ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-06 17:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, 40269

>>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
EZ> Is there an actual use case here, or are we inventing it as we go?

Sure:
$ emacs file:///etc/motd

Use M-x make-directory RET RET to create the directory and its parents

What a "outdated" response from emacs.

It should at least say "I am emacs. I know you used a file: URL. I know
file URL have more meaning than arbitrary zzzz: URLs. But I currently
don't have a consensus about what to do with them right now." At least.





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-06 17:44       ` 積丹尼 Dan Jacobson
@ 2020-08-06 18:04         ` Eli Zaretskii
  2020-08-06 20:26           ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2020-08-06 18:04 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: larsi, 40269

> From: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
> Cc: larsi@gnus.org,  40269@debbugs.gnu.org
> Date: Fri, 07 Aug 2020 01:44:33 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
> EZ> Is there an actual use case here, or are we inventing it as we go?
> 
> Sure:
> $ emacs file:///etc/motd
> 
> Use M-x make-directory RET RET to create the directory and its parents
> 
> What a "outdated" response from emacs.
> 
> It should at least say "I am emacs. I know you used a file: URL. I know
> file URL have more meaning than arbitrary zzzz: URLs. But I currently
> don't have a consensus about what to do with them right now." At least.

That's not a use case.  A use case would be when you describe that you
have this-and-that problem or need, and the natural solution is to use
the file:// URL to access a local file (instead of just naming the
file as usual).





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-06 18:04         ` Eli Zaretskii
@ 2020-08-06 20:26           ` 積丹尼 Dan Jacobson
  2020-08-07  5:32             ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-06 20:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, 40269

Let's say I browse a local file in a browser.
Now I want to edit it in emacs.
Well if you let me just copy the whole URL, including the file:///
things would be great.
But just because emacs was born in the 1970s or something,
I have to remove the file:/// else emacs totally can't deal with it.
Everything else can deal with it, except emacs.
For emacs I have to do DEL DEL DEL DEL DEL DEL DEL each time.
That's because emacs hasn't been updated since 1970, the user feels.





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-06 20:26           ` 積丹尼 Dan Jacobson
@ 2020-08-07  5:32             ` Eli Zaretskii
  2020-08-07 16:09               ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2020-08-07  5:32 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: larsi, 40269

> From: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
> Cc: larsi@gnus.org,  40269@debbugs.gnu.org
> Date: Fri, 07 Aug 2020 04:26:46 +0800
> 
> Let's say I browse a local file in a browser.
> Now I want to edit it in emacs.
> Well if you let me just copy the whole URL, including the file:///
> things would be great.

That already works: "M-x eww RET" in Emacs, copy the file:// URL to
respond to the prompt, and voilà!  If you actually need to modify the
file, type "C-x C-q" and proceed editing to your heart's content.

> But just because emacs was born in the 1970s or something,
> I have to remove the file:/// else emacs totally can't deal with it.
> Everything else can deal with it, except emacs.
> For emacs I have to do DEL DEL DEL DEL DEL DEL DEL each time.
> That's because emacs hasn't been updated since 1970, the user feels.

Actually, the latest change to Emacs were today.





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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-07  5:32             ` Eli Zaretskii
@ 2020-08-07 16:09               ` 積丹尼 Dan Jacobson
  2020-08-07 17:14                 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-07 16:09 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, 40269

EZ> That already works: "M-x eww RET" in Emacs, copy the file:// URL to

I want
$ emacs file:///... to do something, anything (non-dumb).

How about having to do M-x find-file instead of being able to enter
things from the command line? Yuck.

And what "major savings" is "breaking" file:/// buying emacs anyway?

I already have enough
$ typeset
emacs_w3m ()
{
    emacsclient -e "(w3m \"$@\")" && wmctrl -a macs
}

And yes I can hit E there to edit the file. That's not the point.

I saying that if chrome, firefox, can deal with emacs' /nurds/burg
then it is only fair that emacs should be able to deal with
chrome, firefox's file:///nurds/burg .

Also I bet emacs isn't "RFC compliant".
I'm sure there is a RFC that says
"Programs MUST translate file:///nurds/burg to a local resource" or something.






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

* bug#40269: Emacs should recognize "file:" when opening files
  2020-08-07 16:09               ` 積丹尼 Dan Jacobson
@ 2020-08-07 17:14                 ` Eli Zaretskii
  0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2020-08-07 17:14 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: larsi, 40269

> From: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
> Cc: larsi@gnus.org,  40269@debbugs.gnu.org
> Date: Sat, 08 Aug 2020 00:09:27 +0800
> 
> I saying that if chrome, firefox, can deal with emacs' /nurds/burg
> then it is only fair that emacs should be able to deal with
> chrome, firefox's file:///nurds/burg .

Emacs _can_ deal with file://, you just need to invoke "M-x eww"
instead of "M-x find-file".

Why are you insisting on using the latter?





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

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

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-28  4:04 bug#40269: Emacs should recognize "file:" when opening files 積丹尼 Dan Jacobson
2020-08-05 11:40 ` Lars Ingebrigtsen
2020-08-06  5:55   ` 積丹尼 Dan Jacobson
2020-08-06  7:22     ` Lars Ingebrigtsen
2020-08-06 13:41     ` Eli Zaretskii
2020-08-06 17:44       ` 積丹尼 Dan Jacobson
2020-08-06 18:04         ` Eli Zaretskii
2020-08-06 20:26           ` 積丹尼 Dan Jacobson
2020-08-07  5:32             ` Eli Zaretskii
2020-08-07 16:09               ` 積丹尼 Dan Jacobson
2020-08-07 17:14                 ` 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.