help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Is there something like `file-name-concat', but for urls?


From: Emanuel Berg
Subject: Re: Is there something like `file-name-concat', but for urls?
Date: Tue, 25 Jul 2023 18:21:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Marcin Borkowski wrote:

> given e.g. "https", "example.com" (or "example.com/") and
> "page", I want to get "https://example.com/page";. Is there
> a built-in Elisp function to do that?

Do it yourself Marcin :) Even more so because you already did
something like that, with the filename normalizer, I remember!

If so, you can use the correct URL terminology, which is

1. scheme:
2. //server
3. [:port]
4. [/path]
5. [/program?q=argument]
6. [#fragment]

See this page,

  https://dataswamp.org/~incal/distsys/url.html

BTW thanks for letting me realize I should modernize that, it
is so old https isn't even included :$

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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