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 GIL/Mx/wWGPQaQAAbAwnHQ (envelope-from ) for ; Wed, 26 Oct 2022 10:30:23 +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 2MLvMx/wWGP7LQAA9RJhRA (envelope-from ) for ; Wed, 26 Oct 2022 10:30:23 +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 AD53A3D5B8 for ; Wed, 26 Oct 2022 10:30:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onbmR-0001cj-CL; Wed, 26 Oct 2022 04:28:55 -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 1onbmD-0000gM-Il; Wed, 26 Oct 2022 04:28:42 -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 1onbmA-0003dK-G9; Wed, 26 Oct 2022 04:28:40 -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 0000000000081FA6.000000006358EFB3.00005FE3; Wed, 26 Oct 2022 01:28:34 -0700 Date: Wed, 26 Oct 2022 11:28:00 +0300 From: Jean Louis To: Ag Ibragimov Cc: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Subject: Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly Message-ID: Mail-Followup-To: Ag Ibragimov , bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org References: <86bkq0qf8p.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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=1666773023; 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=xtrI3OiZf8skW1XHk5/xSLUgP15eeE0zW36Ys+CyfCk=; b=jtxWBTRJJPc40TKC4uMp3vydNG/oHyKmwtn6TA/0YpvTJkB0uef7bScdlCdMAMQIEnfWRD VigBQkSWBMDYWd1UQz2VJI/66lo9iiQQG/uX1MHGnYcxEGpoHu5a1CR36OfMppTgwL+oIX W5yqm5Ny9tDxtjqeBh+GEyEwYGsjsBzQK6+ib5UEMfc3X+gvPtziP/5ugYUbHl6qDCk8h9 f6mI7Z0YsCgEgEkh9FXc6EA5GUiLDlpMvdpqDpFbMek01cGma9Yf9a0/LCH77GOgP0FRE4 G0ZaqZ/atV1IRPEdereKTyBrgwYyOGmNRJU0McTN6Mc7aUhm3lpgTX7LdJp0lQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666773023; a=rsa-sha256; cv=none; b=Gkqp08x21DEfT2sGjoog8VkJNAFxNOSHxQzEI0ZYdv1qpxfz3MyQhBUEQiIn+J8MexlzzJ 9iWfCLV2N4x3le/etIzzHNvP5Kn3V1FYs4O+6kLXNXSD+Xwbw9oFt8oCW8ioUgCTnqofv5 Fk9r7c9wU6YJ9JmwsKfVnh6rMJvKR2LJYbnubeDomqBKdj8VHTR64NhGJEO5F2xPe9VAtn eYdWQtK3sH1YuZkI0od/IrMMQFf6Q0LzFdYSEv1D64rlj8ADSY5j7DnNKO+pfRkBhdcFUL N0kLMVJoRuz1R9kzvgFo3sGfPuOlhajimvDXlpFMhXNlAwrObJMPUqxDmZ0tWA== 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: -1.51 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: AD53A3D5B8 X-Spam-Score: -1.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: YjwzIn0yZJOs * Ag Ibragimov [2022-10-26 01:13]: > Can't you just use one of hooks (e.g., eww-after-render-hook) where you > inspect the URL and if it's .org, just change the mode? > > This should be trivial to do, I think. I need to inspect content type. Not extension. My WWW file may be of HTML content type, while ending with .org, that is not the way: https://www.example.com/my.file.org could have text/html content type. Using extension on WWW is incorrect. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/