GNU bug report logs - #58302
29.0.50; browse-url-emacs is extremely slow (and I think always has been?)

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Wed, 5 Oct 2022 11:08:02 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #29 received at 58302 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 58302 <at> debbugs.gnu.org
Subject: Re: bug#58302: 29.0.50; browse-url-emacs is extremely slow (and I
 think always has been?)
Date: Wed, 12 Oct 2022 13:33:46 +0200
Phil Sainty <psainty <at> orcon.net.nz> writes:

> Undoubtedly so; but making the existing approach more efficient might
> also bring the same benefits to other functionality?
>
> E.g.:
>
> (url-handler-mode 1)
>
> (trace-function 'url-retrieve-synchronously "*trace-output*"
> 		(lambda () (format " [%s]" url-request-method)))
>
> (find-file "http://www.example.com")

That's true, but I kinda feel that this stuff is something that nobody
uses -- it's a fun trick, but you can't do much with it.  That is, you
can load "http://www.example.com" as a file, but you can't save it, so...

It's a fun toy and a demonstration of how you can hook into the Emacs
file machinery.  But if you're writing code that's actually going to be
used (like browse-url-emacs), it's the worst way.




This bug report was last modified 2 years and 308 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.