emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subject: [PATCH] * lisp/xwidget.el (xwidget-webkit-browse-url): Remo


From: Lars Ingebrigtsen
Subject: Re: Subject: [PATCH] * lisp/xwidget.el (xwidget-webkit-browse-url): Remove space prefix of url.
Date: Thu, 11 Nov 2021 12:58:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Po Lu <luangruo@yahoo.com> writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> eww basically does the same -- but a lot more.  See
>> `eww--dwim-expand-url'.  (Perhaps you could just use that, actually.)
>
> Hmm, OK.  I wasn't aware of that.  Would it make sense to move this into
> url, or url-util?

I took an actual look at the function now, and it relies on a couple of
eww-specific user options (like eww-search-prefix).  Perhaps those
should be passed in instead, and then the function can be put in
url-util, like

(url-dwim-expand-url url &optional search-prefix local-regexp)

And...  add a couple of new user options (like url-search-prefix)?
Yeah, I think that should do the trick.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]