* bug#71734: 30.0.50; eww interprets make errors as URLs
@ 2024-06-23 13:11 Stefan Kangas
2024-06-27 9:00 ` Eli Zaretskii
2024-06-28 4:09 ` Jim Porter
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Kangas @ 2024-06-23 13:11 UTC (permalink / raw)
To: 71734; +Cc: Lars Ingebrigtsen
`M-x eww` currently interprets this as a URL:
make: *** [Makefile:240: __sub-make] Error 2
I think this is due to the below commit:
```
commit 4113ac253456027c4b54b92a617e0c2b3003a049
Author: Lars Ingebrigtsen <larsi@gnus.org>
Date: Sun Jan 11 15:58:10 2015 +0100
Further eww URL DWIM tweaks
* net/eww.el (eww): Interpret anything that looks like a protocol
designator as a full URL.
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -258,29 +258,31 @@
- (if (or (string-match "\\`https?:" url)
+ ;; Anything that starts with something that vaguely looks
+ ;; like a protocol designator is interpreted as a full URL.
+ (if (or (string-match "\\`[A-Za-z]+:" url)
```
I think that this is much too dwim-y, and we should go back to the old
code. But I have no idea why Lars made the above change in the first
place, so I'd like to check here first. If the intention is to support
the various protocols that Emacs supports, then we should look for
exactly those and nothing else.
In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.38, cairo version 1.16.0) of 2024-06-22 built on xxxxx
Repository revision: 014aab9847a0d3d898cb8cbc7224143f2d741abb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Debian GNU/Linux 12 (bookworm)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#71734: 30.0.50; eww interprets make errors as URLs
2024-06-23 13:11 bug#71734: 30.0.50; eww interprets make errors as URLs Stefan Kangas
@ 2024-06-27 9:00 ` Eli Zaretskii
2024-06-28 4:09 ` Jim Porter
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2024-06-27 9:00 UTC (permalink / raw)
To: Stefan Kangas; +Cc: larsi, 71734
> Cc: Lars Ingebrigtsen <larsi@gnus.org>
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Sun, 23 Jun 2024 06:11:57 -0700
>
> `M-x eww` currently interprets this as a URL:
>
> make: *** [Makefile:240: __sub-make] Error 2
>
> I think this is due to the below commit:
>
> ```
> commit 4113ac253456027c4b54b92a617e0c2b3003a049
> Author: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun Jan 11 15:58:10 2015 +0100
>
> Further eww URL DWIM tweaks
>
> * net/eww.el (eww): Interpret anything that looks like a protocol
> designator as a full URL.
>
> diff --git a/lisp/net/eww.el b/lisp/net/eww.el
> --- a/lisp/net/eww.el
> +++ b/lisp/net/eww.el
> @@ -258,29 +258,31 @@
> - (if (or (string-match "\\`https?:" url)
> + ;; Anything that starts with something that vaguely looks
> + ;; like a protocol designator is interpreted as a full URL.
> + (if (or (string-match "\\`[A-Za-z]+:" url)
> ```
>
> I think that this is much too dwim-y, and we should go back to the old
> code.
OTOH, expecting "M-x eww" to do something sensible in the above case
is a bit far-fetched, IMHO.
I think the question we should ask ourselves is whether the use cases
fixed by Lars's change are more important to keep supported than
fixing the case above.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#71734: 30.0.50; eww interprets make errors as URLs
2024-06-23 13:11 bug#71734: 30.0.50; eww interprets make errors as URLs Stefan Kangas
2024-06-27 9:00 ` Eli Zaretskii
@ 2024-06-28 4:09 ` Jim Porter
1 sibling, 0 replies; 3+ messages in thread
From: Jim Porter @ 2024-06-28 4:09 UTC (permalink / raw)
To: Stefan Kangas, 71734; +Cc: Lars Ingebrigtsen
On 6/23/2024 6:11 AM, Stefan Kangas wrote:
> `M-x eww` currently interprets this as a URL:
>
> make: *** [Makefile:240: __sub-make] Error 2
Interprets it how? I can't seem to reproduce the issue. I tried putting
point on various spots in that line and calling M-x eww, but EWW never
tried to turn anything from that line into the default URL for the
prompt. Maybe I'm just not doing the same thing you did; could you list
the steps to reproduce this?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-28 4:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-23 13:11 bug#71734: 30.0.50; eww interprets make errors as URLs Stefan Kangas
2024-06-27 9:00 ` Eli Zaretskii
2024-06-28 4:09 ` Jim Porter
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.