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 6JpfJ8hPNGO3TgAAbAwnHQ (envelope-from ) for ; Wed, 28 Sep 2022 15:44:40 +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 WEWGJ8hPNGPdPAAA9RJhRA (envelope-from ) for ; Wed, 28 Sep 2022 15:44:40 +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 3BC633A323 for ; Wed, 28 Sep 2022 15:44:40 +0200 (CEST) Received: from localhost ([::1]:52884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odXMc-0001Mh-Ts for larch@yhetil.org; Wed, 28 Sep 2022 09:44:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odU66-0001zf-UG for emacs-orgmode@gnu.org; Wed, 28 Sep 2022 06:15:24 -0400 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]:39864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odU64-0000fZ-NE for emacs-orgmode@gnu.org; Wed, 28 Sep 2022 06:15:22 -0400 Received: by mail-io1-xd36.google.com with SMTP id p202so9755018iod.6 for ; Wed, 28 Sep 2022 03:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=Ixwk4dfLnPlbzFQvwRoE7PkJ5puZ8gDy/MP+6RpJbJQ=; b=KtdwTQZxhxzu0TsWltkV2aneFdeRb7DiMq3hBVcBD860XYaq8NoiSSXl4KLTaSEmi+ TGISKNmVb3jSpXKC5Q15IR3MrWdMi0iXm29WIBxYtJfPEumJUtJCku9OPskwGDSHBNM+ kG+KfpHV7SkVn7xWE0oTzjQRWaAQUT1FMikAthEu30PSKgSJLsBhXfMw7ESyP/6tRFdJ Fbr/mWwvEB7TzoZjFNQ5FGc8y5DOCF0YXHru1ToyviG9NPegNekHg9USU2Jza9HArr3U cRE3+hNfDKxFRSFkzu0DXJ444hrDYj14ImKMKfcPuRoGNH/dgixuAWUqWJvO2gFTJued hcfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=Ixwk4dfLnPlbzFQvwRoE7PkJ5puZ8gDy/MP+6RpJbJQ=; b=7ereNn4tB5695tLbx3b0LLdYgtUYnFr3zE2mQ2Jrq8wg7oXFZaL5pB/fJP9xAlUz4B FOS7knTMiAIexQ5qBeEQwpzUBIIA+C7sFzl9gvnI3E3Qc3EAaxZg2B/BAi7H5iG2Uo+R UsOwWrAK63IUiMD05Hylt+BMNQSb+tM4x2XfHN+N/8dMLF0S5ZhrzAyTedjELoS+D/xc fnVv16k53+YoOMKbxxjvgZqWDjXL+guYHMOdDlPTz1j+fglBcTE35Gom+F3MRbuEX1Vw s8InqPjk6Sr4JnOLoOCRmDYKaSMZhwAQyfeLtatuqEboByUJCvrVE0r4fSbDFWTWcCr8 v7Ww== X-Gm-Message-State: ACrzQf2j8schaB9Zx2nKz3pgQkxGl+Q4/VQ//HLoiASFSgghgGuNakGE YD4Sd+a4mlVrF7KH1Qm7LMynZgUYdoBosc6wMXs= X-Google-Smtp-Source: AMsMyM6P+EWOyw3CyugAFVMrjBPttGJGXHLC5lMDTlW0WqRSBDsaxhZ2ElGThyMSGOKK2Vq4dQ4COpY/HrBoraYc7Yc= X-Received: by 2002:a05:6602:2112:b0:6a4:71a4:ad2c with SMTP id x18-20020a056602211200b006a471a4ad2cmr8297268iox.43.1664360118391; Wed, 28 Sep 2022 03:15:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eduardo Ochs Date: Wed, 28 Sep 2022 07:15:06 -0300 Message-ID: Subject: Re: Org, Hyperbole, and eev To: Eduardo Ochs , Robert Weiner , emacs-org list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d36; envelope-from=eduardoochs@gmail.com; helo=mail-io1-xd36.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=1664372680; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Ixwk4dfLnPlbzFQvwRoE7PkJ5puZ8gDy/MP+6RpJbJQ=; b=Yz30u3EFJ0kwvQKx3vSEJlCFZ1gzI6Cmcjeo8ipso7pvk2LZquVJw7dcL7r1yZO2NAXCdl 7egBhxmvAVt4kvhoBgdQ9jDj/K/XBKIQz6v83Tv6S/HZvAs0kuSZ9zlK4FMoTVt9Gj37dx g2gFZGQlRbNp+rk6cOWtmlzYUnW+wsWiDlwasa2uqPK0TulI3ctZafM9YpTHzHqvoaTKON 2DieDE2O3SQfU7btegDSlHij3wVFO1L/zcfLVS58Zwfn4Mu2dPJBN5qxLYj3DRLXA/qcUt cvN9xN7+gYqJsxGI+s6zPMETkaFnxkWfMrDn8TDi1Htc4KkBpVzFxBPe0AwWfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664372680; a=rsa-sha256; cv=none; b=gsVgXa2BxvaabQi4FUReGhUEUvI5AaEKHI1kJ5dNuTLQgf4gajnGdtnt8arWcIrCkybEeh MdeZ6rd9WJEwUlDPJrmUEoN55awpAfwz24RCk5zxgWBdrM23JjoxuAAUaF2RvqP03XnPde 3wVDzNtfHLruMI/0HghfQDJnLhdYZCxgd1QT3L6nOooNFYKW0uX/qyVs2tIxGtKYo057k+ Pt6qQi4/Z2Tf2pQdmUDjEL8uWPa0EIaIyMnAm/c33WCE0FeF482dx+a3doMjOkiiaKqbzO q4oJnfyE8rN+N77zJq16NvnisvVeJKjGdzbQ/NsxkZ7d9/gBbep8wpmng2ekTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KtdwTQZx; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KtdwTQZx; dmarc=pass (policy=none) header.from=gmail.com; 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: 3BC633A323 X-Spam-Score: -3.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7+llG8ySgC+T On Wed, 28 Sept 2022 at 03:17, Jean Louis wrote: > (...) Hi Jean Louis, I am not sure how to interpret the tone of your message. Does it mean that you are not interested in a prototype that works in one case? I.e., that you are only interested in something that has all the flexibility that you need? > I would like to have non-Org links so that my function for links > interpolates into a button. It works now in the presentation mode. I > would like to make links descriptive or non descriptive just as in > Org, so that it works in editing mode. You're hiding the technical details, and I don't know how to think in these terms, sorry! =( 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". In this message https://lists.gnu.org/archive/html/emacs-orgmode/2022-09/msg00725.html I referred to those substrings as "subsegments", but I don't know what is the correct term. 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... I have the impression that the hard part _now_ is to write that function that produces that string with text properties. 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. By the way, I mentioned here https://lists.gnu.org/archive/html/emacs-orgmode/2022-09/msg00725.html that the simple Org link that I inspected had about 8 subsegments with different text properties... Org links need all that because they have to handle correctly insertions and deletions at several points, cutting and pasting, "following", conversion to fundamental mode, etc, etc... I have the impression that we can start with a prototype in which our prototype-ish non-Org links have only three subsegments, but you will have to accept that in that prototype the links won't have all the features that you want... Cheers, Eduardo Ochs http://angg.twu.net/#eev