From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aIM+IdZNIGaofgEAe85BDQ:P1 (envelope-from ) for ; Thu, 18 Apr 2024 00:31:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aIM+IdZNIGaofgEAe85BDQ (envelope-from ) for ; Thu, 18 Apr 2024 00:31:50 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ushin.org header.s=key1 header.b=jYxHHhVY; dmarc=pass (policy=quarantine) header.from=ushin.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713393110; a=rsa-sha256; cv=none; b=bn0L6TqWG+9Y+P6Y2bXHFf+DdN7fz+OspGE4FUU9B1JA09sjuD58vUOFaSpW0O2hdUAxMv yczKwBsDWeYzZvyFLfOCz+9GSB3PbQm0E/gLBrskcH5ddg2V6+kIJ0dBiEvqqVQN0oe0eX XxL/+RjdIg7eAERU8AmnEcPzCl9d7MAECuueb6kef2l9c9ytWUCGDjqDWT99Pgf42JKUvF qJemgAMUdmOTw5RC6F1wgBgCtuZeQTYjcxi6wzku9GrqBabdTGQ4vU3ZzL7qMOjVaqFqqX tx8p6JqIw65Rt8E5PaRUc0A4wSsIBDyEOXkPWC/Gnj9KNQAX8tlkCNVR9q5tcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ushin.org header.s=key1 header.b=jYxHHhVY; dmarc=pass (policy=quarantine) header.from=ushin.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713393110; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DVQLm68D8QXmwV0dQH78AMqv4+MfU+oflDEBX9sMCw4=; b=Bq5SXPsexrpEpgvgL+RFqiF9/Az4F43sEJrZNNIlyKRT18tSRJKtKVOc+gcfij7lNDZfZQ BVBNAViVV2VYfu3QgVxzgwAMLlyYWrJZw6PJdxVjIedqGbvsbPQjywlPj9bs084fBAUbcT cSND+UG4ezXZe3Ik6bZIMwnN/IQqF59IYBPTNC8vQazylhO6Gu0Q8VEXLv4UK7f+FYYY27 ESbMidu2omz8Y47LBCgBuTwZXtz5ho8uvad+0pSsoFjdvBXJ7BMCupzYS2wRo+FqH2+3Nf nCwY0fJRd4AV4HtegXpixMZeGRgnnXRGGy1eyQMImQc40aT1ep26o6pqe75XbA== 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 E7149CAD2 for ; Thu, 18 Apr 2024 00:31:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxDnw-0004bJ-EB; Wed, 17 Apr 2024 18:31: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 1rxDnu-0004ZQ-V9 for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 18:30:59 -0400 Received: from out-177.mta1.migadu.com ([95.215.58.177]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxDns-0008Aw-3C for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 18:30:58 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ushin.org; s=key1; t=1713393052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DVQLm68D8QXmwV0dQH78AMqv4+MfU+oflDEBX9sMCw4=; b=jYxHHhVYe6vkGy+0aZidWOVtrvnJjC/evb2UygW2Lib7U8b8DMW09GDpuzaNSk+GLOGKoK aU60A2JPuUiD1yO98Fx+WlH6TVuw8Q9xp8DNUMtNxgWJK5VvFkqQk+9MuSu3xqDaCueI5O ORJd3E6A+AbPl17Zg3wK4eUMiwIAJNCnRPPfGo6IzMSHwub3GF0jXgAcG5XD1hDEkBI8qP TyJEf0imM+kmuaR5/ptRwONFcjsb3KKQ2qXIkg5rwn6WcQxn0fARgYuetWEVr5+rBxcIBL GY4d34FqEyR1pbYHs2yCVM9nc+IOwkAdWZt4fSUqvY0SUfSDnf4/YgJLnwzmCQ== From: Joseph Turner To: Ihor Radchenko Cc: Org Mode Mailing List , Adam Porter , Jonas Bernoulli , Protesilaos Stavrou Subject: Re: Using search options in HTTP-style links In-Reply-To: <8734rm7sp0.fsf@localhost> (Ihor Radchenko's message of "Mon, 15 Apr 2024 11:48:11 +0000") Date: Mon, 15 Apr 2024 16:55:24 -0700 References: <871q77ugcf.fsf@ushin.org> <8734rm7sp0.fsf@localhost> Message-ID: <87il0fpqp5.fsf@ushin.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=95.215.58.177; envelope-from=joseph@ushin.org; helo=out-177.mta1.migadu.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_24_48=1.34, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.91 X-Migadu-Queue-Id: E7149CAD2 X-Migadu-Spam-Score: -5.91 X-Migadu-Scanner: mx10.migadu.com X-TUID: S49hKzjCAxep Ihor Radchenko writes: > Joseph Turner writes: > >> ... >> (eww "https://ushin.org/needs-list.org#%3A%3A%23care") >> >> ...loads the file in eww-mode with point at the top of the file. >> >> I think it would be more useful to instead activate org-mode (or a mode >> which derives from it - "eww-org-mode"?), decode the link fragment, and >> then jump to the location specified by the search option. > > There is a convention for pdfs: > http://www.example.com/document.pdf#page=5 > But, AFAIK, it is not RFC. > > So, there is nothing stopping from creating an ad-hoc convention to > parse URL locators in links to PDFs or org files or whatnot. I'll need to dig a little more to see what changes would need to be made in order for org-store-link to store properly formatted search options with http: or hyper: links. Currently, org-create-file-search-functions is only used when creating a file: link. > However, the question about activating a major mode on web content is a > question to Emacs developers. It should be considered carefully, because > activating major modes may not be safe. hyperdrive.el activates a major mode with set-auto-mode when content is loaded over the network. This behavior is on by default. Do you have any advice about this? Should hyperdrive.el set untrusted-content to t? Thanks! Joseph