unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47809: emacs file:///
@ 2021-04-15 19:19 積丹尼 Dan Jacobson
  2021-04-15 19:29 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-04-15 19:19 UTC (permalink / raw)
  To: 47809

$ emacs file:///home/jidanni/jidanni.org/geo/house_numbering/presentation.html
File mode specification error: (file-missing Setting current directory No such file or directory /home/jidanni/file:/home/jidanni/jidanni.org/geo/house_numbering/)

Can't it be smarter?





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

* bug#47809: emacs file:///
  2021-04-15 19:19 bug#47809: emacs file:/// 積丹尼 Dan Jacobson
@ 2021-04-15 19:29 ` Eli Zaretskii
  2021-04-15 19:40 ` Gregory Heytings
  2021-04-16  7:40 ` Michael Albinus
  2 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2021-04-15 19:29 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 47809-done

tags 47809 notabug wontfix
thanks

> From: 積丹尼 Dan Jacobson
>  <jidanni@jidanni.org>
> Date: Fri, 16 Apr 2021 03:19:42 +0800
> 
> $ emacs file:///home/jidanni/jidanni.org/geo/house_numbering/presentation.html
> File mode specification error: (file-missing Setting current directory No such file or directory /home/jidanni/file:/home/jidanni/jidanni.org/geo/house_numbering/)

That's a URL, not a file.

Closing.





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

* bug#47809: emacs file:///
  2021-04-15 19:19 bug#47809: emacs file:/// 積丹尼 Dan Jacobson
  2021-04-15 19:29 ` Eli Zaretskii
@ 2021-04-15 19:40 ` Gregory Heytings
  2021-04-16  7:40 ` Michael Albinus
  2 siblings, 0 replies; 7+ messages in thread
From: Gregory Heytings @ 2021-04-15 19:40 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 47809


>
> $ emacs file:///home/jidanni/jidanni.org/geo/house_numbering/presentation.html
>
> File mode specification error: (file-missing Setting current directory 
> No such file or directory 
> /home/jidanni/file:/home/jidanni/jidanni.org/geo/house_numbering/)
>
> Can't it be smarter?
>

emacs --eval '(ffap "file:///home/jidanni/jidanni.org/geo/house_numbering/presentation.html")





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

* bug#47809: emacs file:///
  2021-04-15 19:19 bug#47809: emacs file:/// 積丹尼 Dan Jacobson
  2021-04-15 19:29 ` Eli Zaretskii
  2021-04-15 19:40 ` Gregory Heytings
@ 2021-04-16  7:40 ` Michael Albinus
  2021-04-16 11:38   ` 積丹尼 Dan Jacobson
  2 siblings, 1 reply; 7+ messages in thread
From: Michael Albinus @ 2021-04-16  7:40 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 47809

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

> $ emacs file:///home/jidanni/jidanni.org/geo/house_numbering/presentation.html
> File mode specification error: (file-missing Setting current directory No such file or directory /home/jidanni/file:/home/jidanni/jidanni.org/geo/house_numbering/)
>
> Can't it be smarter?

M-x url-handler-mode

Although it visits the file, there's a spurious "File exists, but cannot
be read" message, likely something goes wrong internally.

Best regards, Michael.





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

* bug#47809: emacs file:///
  2021-04-16  7:40 ` Michael Albinus
@ 2021-04-16 11:38   ` 積丹尼 Dan Jacobson
  2021-04-16 12:14     ` Michael Albinus
  0 siblings, 1 reply; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-04-16 11:38 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 47809

Anyway, emacs is real powerful when it comes to the *ends* of the
arguments you give it.

It knows just the right modes for .../bla.pl vs. .../bla.html vs.
.../bla.txt vs. hundreds perhaps. Much smarter than the average
$BROWSER.

But emacs (-q) is totally baffled by the *front* ends of things you give
it. E.g., file:///somedir/right_under_your_nose is a big mystery to emacs.

$ $BROWSER file:$PWD/.emacs #No problem. Voosh. Butter.
$ emacs -q file:$PWD/.emacs #Totally baffled. Reminds me of
Waldo in https://www.youtube.com/watch?v=6M4_Ommfvv0
Van Halen - Hot For Teacher .

Nope, nobody told Waldo about the file: protocol all the other kids know about.





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

* bug#47809: emacs file:///
  2021-04-16 11:38   ` 積丹尼 Dan Jacobson
@ 2021-04-16 12:14     ` Michael Albinus
  2021-04-16 16:43       ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Albinus @ 2021-04-16 12:14 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 47809

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

Hi Dan,

> Anyway, emacs is real powerful when it comes to the *ends* of the
> arguments you give it.
>
> It knows just the right modes for .../bla.pl vs. .../bla.html vs.
> .../bla.txt vs. hundreds perhaps. Much smarter than the average
> $BROWSER.
>
> But emacs (-q) is totally baffled by the *front* ends of things you give
> it. E.g., file:///somedir/right_under_your_nose is a big mystery to emacs.

The vast majority of Emacs users don't need this. Don't want this.

So it isn't the default, but you can configure it if you like.

> $ $BROWSER file:$PWD/.emacs #No problem. Voosh. Butter.
> $ emacs -q file:$PWD/.emacs #Totally baffled. Reminds me of
> Waldo in https://www.youtube.com/watch?v=6M4_Ommfvv0
> Van Halen - Hot For Teacher .
>
> Nope, nobody told Waldo about the file: protocol all the other kids know about.

Emacs is not a browser.

Best regards, Michael.





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

* bug#47809: emacs file:///
  2021-04-16 12:14     ` Michael Albinus
@ 2021-04-16 16:43       ` Glenn Morris
  0 siblings, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2021-04-16 16:43 UTC (permalink / raw)
  To: 47809


FTR, this is a rehash of https://debbugs.gnu.org/40269.

OP often reports the same thing over and over.





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

end of thread, other threads:[~2021-04-16 16:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 19:19 bug#47809: emacs file:/// 積丹尼 Dan Jacobson
2021-04-15 19:29 ` Eli Zaretskii
2021-04-15 19:40 ` Gregory Heytings
2021-04-16  7:40 ` Michael Albinus
2021-04-16 11:38   ` 積丹尼 Dan Jacobson
2021-04-16 12:14     ` Michael Albinus
2021-04-16 16:43       ` Glenn Morris

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