From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 iOgNLB6YWWNcRgEAbAwnHQ (envelope-from ) for ; Wed, 26 Oct 2022 22:27:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +B0PKx6YWWObhwAAG6o9tA (envelope-from ) for ; Wed, 26 Oct 2022 22:27:10 +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 603942FA54 for ; Wed, 26 Oct 2022 22:27:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onmvU-0001i3-74; Wed, 26 Oct 2022 16:23:00 -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 1onmvR-0001hL-I7 for emacs-orgmode@gnu.org; Wed, 26 Oct 2022 16:22:57 -0400 Received: from libre.brussels ([144.76.234.112]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onmvO-0004EV-Cw for emacs-orgmode@gnu.org; Wed, 26 Oct 2022 16:22:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libre.brussels; s=mail; t=1666815764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mfCvTLKf++Wi5Wnh+P3jD/OxxNn3aHEiHjpJ9ldhd/M=; b=Tw36IAy7uoeCSdn99ucd0iKD70p90daSibQGwryaAG22jgzligk/VPlz7vZGTuLI1byLyN 57xCWVJ/OKUf0GOwpVyRKfhuOuETK21ZG6m5FCumin9AqNidQBOlYDije4ZVUK3bvLcmE1 9CrWludfXzEOCNvfpyYl1lIr9KuvZPs= MIME-Version: 1.0 Date: Wed, 26 Oct 2022 22:22:44 +0200 From: indieterminacy To: Ihor Radchenko , Stefan Kangas , "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 In-Reply-To: References: <86bkq0qf8p.fsf@protected.rcdrun.com> <87bkq0t03l.fsf@web.de> <87v8o7qzff.fsf@localhost> <87zgdjoz3r.fsf@localhost> Message-ID: X-Sender: indieterminacy@libre.brussels Organization: Icebreaker Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=144.76.234.112; envelope-from=indieterminacy@libre.brussels; helo=libre.brussels X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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=1666816030; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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:dkim-signature; bh=mfCvTLKf++Wi5Wnh+P3jD/OxxNn3aHEiHjpJ9ldhd/M=; b=Baj4GHzanYRarYDRn8gUnR5zdPhnjFrrWWwifjIPhvXZ3pPXPcBigpKDkgqD9rJ8LN7Wtv U5BWG8xOjuL5bug3c1TZyUM9q/YFmcpXV2GLMCIYaR3QHR9hvTVhxFs2ZMYh8ybz2PyAsT D2Uw2xQCuvpPkcaNVALXhU/damYxUp3uo6YGOYBK/rRkXtQgD5SXtoMLG7ji1LshVJaFAb Qyd0Jk9gd0TTUmdOdGUscVLJd3ITzPeyD5asetCXfVjaKNZ2K/RsHATKtPkA4UrbxkEfBe cxCzveig75MoK1Z3HBh3dUMzyS5MsDIZkinT8tsogxKM+SMaG0jkSljhcMu+iQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666816030; a=rsa-sha256; cv=none; b=dtZQHYfaSnLfpJQppr1wGiace7R3bIWYp4SxQpJI8XD56+0ewdnRxfb3IRMVTm/HLejfAF WAoSbqEwDOvknp9pbPQmbkxI88ww4wUNoWPCU2XC1LCFaE0MtFJaLuzDIbhKGUOyXuymOE d0ftbbZ5FZhEwd6xBXBQxVqUJP3x83n98x6fBAc1k+5N+ZppuPR45sBUC954LCwDeVB7hV 2ir3McHvdc7fwZGa7GqEnzTo3hXpEsQvAdIkpgw0QHGoyTt94aAkIVWiUc2M2Vp6W6jjBY 6MMaSMQ3XztZrHkPYgc2lOrOIRYqTNzBkXHyTsqaJbdmai9NjuxhlqwCp0/rdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=libre.brussels header.s=mail header.b=Tw36IAy7; dmarc=pass (policy=none) header.from=libre.brussels; 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: -7.22 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=libre.brussels header.s=mail header.b=Tw36IAy7; dmarc=pass (policy=none) header.from=libre.brussels; 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: 603942FA54 X-Spam-Score: -7.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0CWmiEp0sOmq On 26-10-2022 10:24, Jean Louis wrote: > * Ihor Radchenko [2022-10-26 09:52]: >> Strictly speaking, even eww-mode may run arbitrary code given that >> user >> puts something into eww-mode-hook. > > eww-mode-hook is a variable defined in ‘eww.el’. > > Its value is (org-eww-extend-eww-keymap) > > Please help me recognize content type by using eww-mode-hook, so that > I can invoke org mode when there is "text/x-org" > > It is very useful to browse my personal notes from my personal WWW > server without invoking external browser. Consider hacking with regards to the Gemini protocol within Emacs, its minimalism may provide the appropriate playground for you to do things you expect (it already provides junctures to switch to (or at least load) html content with another non Gemini browser. Im killing a couple of tasks my end so I cant do this for you. However, it may be worth you experimenting with a Gemini server which contains orgmode files. I expect you should be able to view orgmode files (I guess they would be treated as non Gemtext and therefore binary). If you could toggle the appropriate mode inside something like emacs-elpher it may work to your needs. -- Jonathan McHugh indieterminacy@libre.brussels