From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tyler Grinn Newsgroups: gmane.emacs.devel Subject: [ELPA] New package: org-real Date: Tue, 05 Oct 2021 15:46:58 -0400 Message-ID: <871r4zjlu5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23111"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 05 21:50:16 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXqS8-0005os-Fk for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 21:50:16 +0200 Original-Received: from localhost ([::1]:37866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXqS7-0005eI-Gd for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 15:50:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXqP1-0002n1-Re for emacs-devel@gnu.org; Tue, 05 Oct 2021 15:47:03 -0400 Original-Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]:43860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXqOz-0000ZX-Q0 for emacs-devel@gnu.org; Tue, 05 Oct 2021 15:47:03 -0400 Original-Received: by mail-qv1-xf2c.google.com with SMTP id k3so389825qve.10 for ; Tue, 05 Oct 2021 12:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=yIZWvZcpbsWRowefiXdXAXxfoMfVhOcGEuBUWp6riUg=; b=av8bchNNu7PFJX6cBRKpZcwPTfwxbjaWaNsucqv2qeeQVVVAdlIZOFg2xycMjWVWWR HLeFqfBJG2T8BP8ijtQcxkXMjL16Zto7ykjgKI+g0syQNGhzm+5shFKeKoJE/68PCabo 7bwz00hGn8uH7h/OKsaGg6I09wXiF21Mh7oyiqLHvk3Rb5cTyv6h8YcIZEk0bo5mQV0w 9m8oO6jZbIa7ftzgpO+JE0vtiLCTT5m/FvwmbbitLX50k1npOT86Aiu4ueEb2caiUtIx rzxWkPW7ENte1T0uXOk1jOuhz8SvWGZN//RC9A8KP/RCk7DYxpzt+FFcAchZk0bn72Mn tUgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=yIZWvZcpbsWRowefiXdXAXxfoMfVhOcGEuBUWp6riUg=; b=0YLFAbjhZW+Fmxs2uOIPeg9e5Aiqx8J0gUqZ6KDjUkcPHaMx2GUCMYSGY3+kJRsl3h VpataUELDLW3kwlzDdCwXvf+5qU9+Vddahd35MXP6FwLd9vntccZhpgRN/912OXosxnM wTD7rUHGG6IEzAbBbqYjnIO4BU08OhU3Fy96iEURQOv5K8Xsvfa7XshICbeVh/pMZQLZ TKvVGbA9ImTOgkdsSxJGvuL59HntAnqOd15f2pOc7UHaurKtFgx9rXra1Qujt9ClPTPj wpFNBgZ+coxGgN2MF2687mtmywb7aY8jfWGFfr67bSZemlHlF/S3gQkPxuKAc5EnSomJ k04g== X-Gm-Message-State: AOAM531cjcX8eeS9H4jjTobkWAW3jbn4yQY5Z4SyfgMBwm+6s1Qp7HUs uj/vhe2uRaobtCoSwfLYDuj7O6+rIyVOqw== X-Google-Smtp-Source: ABdhPJwdvfWb4cVBIF9QDYiz3v/x7nLpvCe2EZyknljOzY40hoq+WEWDYXYUUANLNC72L/kwA33ZKQ== X-Received: by 2002:a0c:8b02:: with SMTP id q2mr9496470qva.59.1633463219987; Tue, 05 Oct 2021 12:46:59 -0700 (PDT) Original-Received: from tyler-hp ([2601:410:4301:3e90::7c4]) by smtp.gmail.com with ESMTPSA id l22sm9480884qke.39.2021.10.05.12.46.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 12:46:59 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=tylergrinn@gmail.com; helo=mail-qv1-xf2c.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-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:276381 Archived-At: --=-=-= Content-Type: text/plain I would like to propose that org-real be added to ELPA. Org real allows you to keep track of real things as org-mode links. A real link looks like this: real://mouth/nose?rel=below . Following a real link pops up a boxy.el diagram which shows where the thing is. The command org-real-world will combine all real links in the current buffer and display it as a boxy.el diagram. You can use it to map a physical filing system to your org-mode workflow or sprinkle real links throughout an existing org file to create a alternate hierarchy to navigate with org-real-world. https://gitlab.com/tygrdev/org-real I have some implementation questions for anyone willing to take a look. https://gitlab.com/tygrdev/org-real/-/blob/19711cb1362f8fb21ee6ab1d4f71dfc2adc4c798/org-real.el#L464-496 In order to support editing existing real links with the org-real custom completion mechanism, I temporarily advise read-string, during the org-insert-link process, to look out for real links. In that same section, I shadow org-link-make-description-function in order to suggest a description if both the existing description and org-link-make-description-function are unset. I call org-real-apply after inserting a link to check that the new link does not conflict with any other real link in the buffer, if it is real. https://gitlab.com/tygrdev/org-real/-/blob/19711cb1362f8fb21ee6ab1d4f71dfc2adc4c798/org-real.el#L561-580 The function org-link-make-string is not available in Emacs 26, so I've copied the implementation from Emacs 27 for backwards compatibility. https://gitlab.com/tygrdev/org-real/-/blob/19711cb1362f8fb21ee6ab1d4f71dfc2adc4c798/org-real.el#L641-656 I've copied the args construction from ispell-start-process. I assume copying existing Emacs code is OK, I just wanted to be sure and see if I needed any attribution. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=grinn-2.diff Content-Description: Add org-real to elpa-packages diff --git a/elpa-packages b/elpa-packages index 480f7dd2a8..280f48650b 100644 --- a/elpa-packages +++ b/elpa-packages @@ -288,6 +288,9 @@ :shell-command "make autoloads info; mv doc/org.info org.info; mv doc/orgguide.info orgguide.info" :doc ("org.info" "orgguide.info") :auto-sync t) + ("org-real" + :url "https://gitlab.com/tygrdev/org-real" + :auto-sync t) ("org-translate" :url nil) ("orgalist" :url nil) ("org-edna" :url "bzr::https://bzr.savannah.gnu.org/r/org-edna-el") ;URL? --=-=-= Content-Type: text/plain Best, Tyler --=-=-=--