From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#58774: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly Date: Wed, 26 Oct 2022 20:36:52 +0300 Message-ID: References: <86bkq0qf8p.fsf@protected.rcdrun.com> <87bkq0t03l.fsf@web.de> <87r0yvsgtt.fsf@web.de> <87a65issop.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37488"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Cc: 58774@debbugs.gnu.org, "Dr. Arne Babenhauserheide" , emacs-orgmode@gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 26 20:08:00 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onkop-0009TH-UF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Oct 2022 20:07:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onknw-0007g8-9m; Wed, 26 Oct 2022 14:07:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onknv-0007KS-7F for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 14:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onknu-0007KW-U7 for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 14:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onknu-0001uN-G8 for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 14:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Oct 2022 18:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58774 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 58774-submit@debbugs.gnu.org id=B58774.16668075647271 (code B ref 58774); Wed, 26 Oct 2022 18:07:02 +0000 Original-Received: (at 58774) by debbugs.gnu.org; 26 Oct 2022 18:06:04 +0000 Original-Received: from localhost ([127.0.0.1]:55229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onkmx-0001tC-J1 for submit@debbugs.gnu.org; Wed, 26 Oct 2022 14:06:03 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:54351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onkmu-0001sj-Rl for 58774@debbugs.gnu.org; Wed, 26 Oct 2022 14:06:02 -0400 Original-Received: from localhost ([::ffff:197.239.4.142]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000081D90.0000000063597707.0000213E; Wed, 26 Oct 2022 11:05:59 -0700 Mail-Followup-To: Andreas Schwab , "Dr. Arne Babenhauserheide" , 58774@debbugs.gnu.org, emacs-orgmode@gnu.org Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246248 Archived-At: * Andreas Schwab [2022-10-26 16:58]: > On Okt 26 2022, Jean Louis wrote: > > > * Andreas Schwab [2022-10-26 15:48]: > >> On Okt 26 2022, Jean Louis wrote: > >> > >> > If there is way to extend EWW and Emacs in such way that I can tell > >> > EWW what to do on certain content type, just as I do with other > >> > browsers, that would solve the problem. > >> > >> This is what browse-url-handlers is for. > > > > Content type is not an URL scheme. > > The predicate can do whatever it needs to determine the handler. With "predicate" do you mean URI scheme? browse-url-handlers ⇒ (("gemini:" . elpher-go) ("gopher:" . elpher-handler-go) ("about:" . hyperscope-about) ("hyperscope:" . hyperscope-go) ("e2dk://" . amule-handler)) An alist with elements of the form (REGEXP-OR-PREDICATE . HANDLER). Each REGEXP-OR-PREDICATE is matched against the URL to be opened in turn and the first match’s HANDLER is invoked with the URL. Then -- if URL structure would provide content type, it would work. Otherwise it is not related to my wish. The URI scheme I wish to use is `https:' and nothing else. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/