From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mKPMJGF3WWNxRwAAbAwnHQ (envelope-from ) for ; Wed, 26 Oct 2022 20:07:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OMC1JGF3WWP7JQEA9RJhRA (envelope-from ) for ; Wed, 26 Oct 2022 20:07:29 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 764C32880B for ; Wed, 26 Oct 2022 20:07:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onknG-0000QU-RA; Wed, 26 Oct 2022 14:06:22 -0400 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 1onkn0-0007vh-06 for emacs-orgmode@gnu.org; Wed, 26 Oct 2022 14:06:09 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onkmv-0007A2-Pr for emacs-orgmode@gnu.org; Wed, 26 Oct 2022 14:06:05 -0400 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 Date: Wed, 26 Oct 2022 20:36:52 +0300 From: Jean Louis To: Andreas Schwab Cc: "Dr. Arne Babenhauserheide" , 58774@debbugs.gnu.org, emacs-orgmode@gnu.org Subject: Re: bug#58774: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly Message-ID: Mail-Followup-To: Andreas Schwab , "Dr. Arne Babenhauserheide" , 58774@debbugs.gnu.org, emacs-orgmode@gnu.org 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL=0.141, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666807649; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=6wc5mukNnBw6P4XS5I9usb+Di7IDMKO7JYmF2sWKwCs=; b=Lai1QHjf9lDbnHKECZMUWBtPENYxV2mh/e+6/t18LYSvpo9qDnI/1fwqfFvy0HK6q0a5c/ on3m1uP1dFQsvUHr8rQV0YAGX7uDU7wfKjXQXiycqavhRAFrj3cz9YcOoIRWDKLlx7dfDx /2TYfhPdGJfuS485/Ph5W2wyRZD7484U1VjSVYz4ZJRQIjDPEx+y5F2lKAno6oEwLHq0EJ F22XuDZrJEmOslIIX3eQmC4Kc+f9QugJvcvcAWwlDDtJgWbqj778bbWmFUEKMV3tz1ZDXh YD+9yBMJtVMAlx4FBzwp4Ak8N7/3X+D2kbrOyuiBHgurVOl6N6CkIRbLXSFqrA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666807649; a=rsa-sha256; cv=none; b=Vzzg1e0qiNfzc55VW6wx+QjqDTHJkPDE/x5x7q6hrSMwxg5mUhcJ7g3hxFRmiBhSLploWg UrqcIp7t1P/DnHSQoBKkrLDLJo07tLSRNLAF0h9SeB9ZiqN15As9B6olPhYXv9zx+gqE+B 4vm/+Ge4ZE8kU3J42hNxYMIbsVNeG9zFrPmjp9cvXhz7cG71T+9d+RLO74DeUPYebhE47/ CM+FUx9eFdn78qIU0vXlBuzbC9FCYE2NPyo7jW3EpdsVhMWVl6YyqU7VJgsXQRQRYoSwJT COhbpryAxBVP2sHOtNPSReNwvBqS+gaD8fXjJu5Tibln30pPybtnW8gHYpu9tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.22 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 764C32880B X-Spam-Score: -0.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9RPWC/VsoDJl * 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/