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 uHxBNK0EQWOUOQAAbAwnHQ (envelope-from ) for ; Sat, 08 Oct 2022 07:03:41 +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 eBVNNK0EQWPxlwAA9RJhRA (envelope-from ) for ; Sat, 08 Oct 2022 07:03:41 +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 6F65627487 for ; Sat, 8 Oct 2022 07:03:41 +0200 (CEST) Received: from localhost ([::1]:44994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh1zw-0003Zq-1n for larch@yhetil.org; Sat, 08 Oct 2022 01:03:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh1xL-00024L-T2 for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 01:00:59 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:46897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh1xJ-0008Is-A6 for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 01:00:58 -0400 Received: from localhost ([::ffff:154.225.55.149]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BBD16.0000000063410407.000060E8; Fri, 07 Oct 2022 22:00:55 -0700 Date: Sat, 8 Oct 2022 04:25:53 +0300 From: Jean Louis To: Eduardo Ochs Cc: Robert Weiner , emacs-org list Subject: Re: Org, Hyperbole, and eev Message-ID: Mail-Followup-To: Eduardo Ochs , Robert Weiner , emacs-org list References: <676C0C9B-D13B-4DB0-A082-F86E125A81D4@gnu.support> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, 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: , 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=1665205421; 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=FpOFePSa/zauPHpcmdc47Xvt2fvNkbm5PdBH/v+c2n8=; b=SYLEagNiySS/nnswwoF6iYKES19uiaj4Euoo7kIsZteoWgU8S4CIAWITIBdZ+Y3q2r9RtR iwaXk3UyE93ZvIeeRoGJAj/8RTq0ENHBdloycVOck6f5MpRFeMk+rDbsFXlVvggQxVSTKO VsDhGmSXojhgznWjZ/5xwVDBE8Tq6suvvbAkDyqpMhl7lBoNSURweUWFRZtxUrkGSwFuMH JS4eRDr+rR+CweFunWhjyEQ8sYfT5t1axpxCZsVPFKNur6/epTOpx1eSZTcgY4uxI6g9Je MK1FPZZZA1VJcNjkjpDAjasXrxK8Y/+ptVuxL/i95DFQlwzpv+VbTDMmGsD4hg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665205421; a=rsa-sha256; cv=none; b=LB0wsAtpWYVsKx4Gx0VDq+OIT9Ta5zq0lYRRG5fCv5JvHLk1O4fEgC1JyD0gfjJpi6YQUD 00LZMCxcT08U7cy3oP+O0OaOe4yOgXvC1RGEo9VJqL0Gd9jDNxxok02NUE8WUbNEw2bIwe 5yyUKHQ8wtncNAwg1IK0wM3ZKV/JRfOhvQJNEL3PH+wyB6lO6to9n4EDd4naToETeWNCwE rqhGwbECvZHtpQTQC9esUbqaGa75vkwvmNtmU3ihoEEP6iYOWYM5LDKgMTUa3zw33zpFMK M2NdhRqkUu6VE7wXnUCw4rm3NHigqptIJRLkY76i/zWbPLaQN1+WgapYTMuVQg== 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: -2.68 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: 6F65627487 X-Spam-Score: -2.68 X-Migadu-Scanner: scn1.migadu.com X-TUID: GkOgGrLKaK3u * Eduardo Ochs [2022-10-08 03:28]: > On Thu, 29 Sept 2022 at 06:22, Jean Louis wrote: > > > > I am definitely interested, make prototype please. Just can't answer properly on travel. > > Hi Jean Louis, > > Sorry, I will have to put that on hold until my holidays... I wrote a > very primitive prototype, but I never had to write much code that > generates text with text properties, my friends are not interested in > playing with that together with me, and I don't know where to borrow > ideas from, so adding each new small feature by myself is a > struggle... and right now writing code "whose inner details don't > matter" is exactly the opposite of my notion of fun... =( Fine, solution will come up with time. In the sense is similar to Org links, though just universal. With the RCD Template Interpolation System for Emacs: https://hyperscope.link/3/7/1/3/3/RCD-Template-Interpolation-System-for-Emacs.html and this function, I can easily replace such snippets as below to their values: ** Hello heading ⟦ (format "[[https://www.example.com][Hello there %s]]" user-full-name) ⟧ (defun rcd-org-interpolate () "Extrapolate Org buffer before dispatch." (interactive) (let ((my-org (buffer-substring (point-min) (point-max)))) (with-temp-buffer (insert (rcd-template-eval my-org)) (org-export-dispatch)))) (keymap-set org-mode-map "C-c C-e" 'rcd-org-interpolate) to get Org hyperlinks. Or any other type of a link? (defun hyperscope-hyperlink (id &optional markup) (let ((name (hyperscope-name id)) (link (hyperscope-hyperdocument-url id)) (markup (or markup (hyperscope-markup-type id)))) ;; (unless (or (eq (last-key-binding) 'newline) ;; (= (last-key) 13)) ;;(rcd-button-insert name (lambda (_) (hyperscope id)))) (cond ((or (eq major-mode 'markdown-mode) (and (not rcd-current-table-id) (or (= markup 2) (= markup 3) (= markup 6)))) (format "[%s](%s \"%s\")" name link name)) ((eq major-mode 'adoc-mode) (format "%s[%s]" (hyperscope-hyperdocument-url id) name)) ((eq major-mode 'org-mode) (format "[[%s][%s]]" link name))))) Same may be used to insert buttons: (defun rcd-button-insert (button-text action-function &optional how-many) "Insert button BUTTON-TEXT with ACTION-FUNCTION. Optional number HOW-MANY adds superscript digits to BUTTON-TEXT." (insert-text-button button-text 'action action-function 'follow-link t) (when how-many (insert (rcd-superscript-digits how-many)))) (rcd-button-insert "Hello" (lambda (_) (message "I said Hello"))) now if button can be inserted, it means ⟦ (could insert button as well) ⟧ and make the link invisible part of text. Once toggled, invisible part could become visible and saved as such link. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/