From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YMDEH2xpNWPx5QAAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 11:46:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cH6XH2xpNWO6bgAA9RJhRA (envelope-from ) for ; Thu, 29 Sep 2022 11:46:20 +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 196DDFD44 for ; Thu, 29 Sep 2022 11:46:20 +0200 (CEST) Received: from localhost ([::1]:44558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odq7W-0006cA-LF for larch@yhetil.org; Thu, 29 Sep 2022 05:46:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odq4Y-0006VR-Ik for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 05:43:14 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:45929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odq4V-0003b7-Oj for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 05:43:14 -0400 Received: from [102.83.232.180] ([::ffff:102.83.232.180]) (AUTH: PLAIN admin, TLS: TLS1.2,128bits,ECDHE_RSA_AES_128_GCM_SHA256) by stw1.rcdrun.com with ESMTPSA id 00000000000BA492.00000000633568AC.00004956; Thu, 29 Sep 2022 02:43:07 -0700 Date: Thu, 29 Sep 2022 09:42:59 +0000 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Org, Hyperbole, and eev To: emacs-orgmode@gnu.org From: Jean Louis Message-ID: <272F7335-6432-400D-BFA3-44BB81F31645@gnu.support> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1664444780; 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; bh=SqnRp0MlRhPvhN/JO5HxXVDiJuaFzkSYKzneEfhC694=; b=t5y38mybFQMKNEyH1m1ZN4RnGfXxJjgCfhNgfZBUtr3Sm4Z6BhVy9SxsBPap/d9tQP2G/W Bxga7z7Yd9RYue5PFTyJV9mH19nPi9mnbOoN4CaP0up7mH8eyp9wgwo2kt1XnyUHUZv/CA sjU3FnTkhhVpp4DSS6PUrVldlZ7y7IkQJhiNxJwvc23A26qcCN/oVaHGh+UJjYZyfkwpCM hsMyEIIxgbacePUFJfdOge2j0DyDEmpEjN8imSYntzcYNRsXE5exJTqhHCoSfVZ3zWsFIH Ipwd2bwK+aDWZJrWDYnHXj//Pmy1N2G8m8SR8nvYJgCyJ2VciEQYROU0T8NRlg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664444780; a=rsa-sha256; cv=none; b=htZIiztr/FbTvkFjjRv1rZku1IxnQf64fMr0jFJDJDea1l2naUdTqiRM48x0rD3E4bgsE+ /FLJKsmRRALTiDn3D371M6ntzFvoWwRKBv5cJ4Ag2NjGx2ir8uI5aDB1u1+cI29bDEUjqo Pm62chWuPcmz8XrqwTeyk+hD1RXVJ41nn1s6y4GvVLgIOGmyK5xXLNTpofJoOQWDIcxFYt 1PJ/HFgDGSi8llyaYk2kq+qL7iTKR0+JyfGd6twP/KKbK2uEd/92eDFEPqqOEDNlQ3AFOE pOx4O4fGv+53edt42fhMalagaMmC4B3haDi0xnePsxtabtY82Ke3WhCykH53vg== 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.14 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: 196DDFD44 X-Spam-Score: -1.14 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8QqikPRsZ6By On September 28, 2022 10:15:06 AM UTC, Eduardo Ochs wrote: >> I would like to have non-Org links so that my function for links >> interpolates into a button=2E It works now in the presentation mode=2E = I >> would like to make links descriptive or non descriptive just as in >> Org, so that it works in editing mode=2E > >You're hiding the technical details, and I don't know how to think in >these terms, sorry! =3D( Not hiding at all=2E If I would know technical details I would not need it= =2E I have you examples with your links and wrapping then with name for lin= k=2E >For me your "non-Org link" is a string composed of a few substrings >concatenated, and each of these substrings is either without text >properties or is built using "propertize" or "buttonize"=2E In this >message I don't think that way, that would make links specific just as they are sp= ecific in Org mode=2E To make links not specific, but to liberate then from any mode, one would = need to forget how link looks like inside some brackets and leave it to wha= tever function to interpolate itself into a button or anything else=2E Did you try my interpolation package? It can already do that=2E But how ca= n I read from properties and get back what was the link before? That is wha= t I don't know how=2E And my way of doing links it is totally out of any fr= ame I have seen before=2E https://lists=2Egnu=2Eorg/archive/html/emacs-orgmode/2022-09/msg00725=2Eh= tml There shall be no parsing of the link as that would make the link specific= again=2E If we make generic package than anybody else later will benefit=2E Generic= links package is not tied to how link looks like, not tied to any function= =2E On the link above I my example=2E Imagine (ln "name" (eev-funct do)) that would Interpolate to "name", but a= lso {{{ name link }}} to to interpolate to something, and what does interpo= lation should be left to programmer=2E Imagine having X+ of documents, and your link name is "New Yrk" mistakenly= , by using generic approach one can keep the name outside of the document, = correct it and in all documents it get corrected upon invocation or opening= of it=2E I use that system to inject my contact details, no matter if contact detai= ls change, I need not correct the=C4=91 one by one=2E >I am trying to factor your problem into several small functions in a >way that makes each of these small functions easy to test - with >one-liners if possible, like I do in the eev source code - and if we >do that factoring then the function that builds the "string composed >of a few substrings concatenated" that I mentioned above will not call >your rcd-template-eval and will not depend on the major mode=2E=2E=2E I don't think that parsing strings make it generic=2E=20 Template Interpolation system makes it generic=2E What has to be solved is how to insert the button so that it may be revers= ed into what it was before=2E >I have the impression that the hard part _now_ is to write that >function that produces that string with text properties=2E I have used insert button function=2E > Once we have >that we will have a clearer notion of what are the "non-Org links" >that we are dealing with, and it will be easier to think on the other >functions=2E Those generic links can as well become Org like links as there is no limit= ations=2E Jean