[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 034427006d 03/32: Rename the function that retur
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/denote 034427006d 03/32: Rename the function that returns an Org heading ID |
|
Date: |
Sat, 20 Jan 2024 00:57:40 -0500 (EST) |
branch: externals/denote
commit 034427006d62a7a7b73ae083a7a18061cced6dee
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Rename the function that returns an Org heading ID
---
denote.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index 8da25947cb..9bc4f91aef 100644
--- a/denote.el
+++ b/denote.el
@@ -3937,9 +3937,10 @@ interface by first selecting the `denote:' hyperlink
type."
(declare-function org-entry-get "org" (pom property &optional inherit
literal-nil))
(declare-function org-id-new "org-id" (&optional prefix))
-(defun denote--link-ol-id-get-create ()
- "Create a CUSTOM_ID for current entry under POSITION and return it.
-If the entry already has a CUSTOM_ID, return it as-is."
+(defun denote-link-ol-get-id ()
+ "Get the CUSTOM_ID of the current entry.
+If the entry already has a CUSTOM_ID, return it as-is, else
+create a new one."
(let* ((pos (point))
(id (org-entry-get pos "CUSTOM_ID")))
(if (and id (stringp id) (string-match-p "\\S-" id))
@@ -3959,8 +3960,8 @@ If the entry already has a CUSTOM_ID, return it as-is."
(org-link-store-props
:type "denote"
:description file-title
- (format "denote:%s::#%s" file-id
(denote--link-ol-id-get-create))
:link (if (and denote-link-to-org-headings (derived-mode-p 'org-mode))
+ (format "denote:%s::#%s" file-id (denote-link-ol-get-id))
(concat "denote:" file-id)))
org-store-link-plist))
- [elpa] externals/denote updated (76755e9a3c -> a4f11d3a77), ELPA Syncer, 2024/01/20
- [elpa] externals/denote ae11205800 01/32: Add user option and concomitant functionality to link to Org headings, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 034427006d 03/32: Rename the function that returns an Org heading ID,
ELPA Syncer <=
- [elpa] externals/denote 2ffc70bc29 06/32: Fix typo in the manual, ELPA Syncer, 2024/01/20
- [elpa] externals/denote c650b9901d 08/32: Add user option and concomitant functionality to link to Org headings, ELPA Syncer, 2024/01/20
- [elpa] externals/denote ad4532e2fc 09/32: Make links to Org headings only work for Org, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 4651a880d6 10/32: Rename the function that returns an Org heading ID, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 94168f2fd5 16/32: Add missing vindex for denote-org-store-link-to-heading, ELPA Syncer, 2024/01/20
- [elpa] externals/denote e026e60fd9 18/32: Update denote-org-store-link-to-heading doc to mention org-insert-link, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 158d94735f 19/32: Expand denote-org-link-to-heading doc string to explain some technicalities, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 6a1e7a11d1 22/32: Add denote--remove-dot-characters and denote--trim-right-token-characters and use them in denote-sluggify, ELPA Syncer, 2024/01/20
- [elpa] externals/denote eaa00f2fd4 24/32: Make denote-link-description-with-signature-and-title return the active region even if empty, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 524203e403 25/32: Make org-store-link also capture the heading text as part of the description, ELPA Syncer, 2024/01/20