Skip to content

Commit

Permalink
docs: Note missing asynchronous functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmturner authored and nobiot committed Apr 5, 2024
1 parent 614ea13 commit 19f6da9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/org-transclusion-manual.org
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#+title: Org-transclusion User Manual
#+author: Noboru Ota <me@nobiot.com>
#+macro: version 1.3.x
#+macro: modified 22 February 2024
#+macro: modified 05 April 2024

#+language: en
#+export_file_name: org-transclusion.texi
Expand Down Expand Up @@ -195,7 +195,7 @@ It is generally assumed that the =paragraph-id= is placed after its content, but

For the =:only-contents= property, refer to sub-section [[#filtering-org-elements-per-transclusion][Filtering Org elements per transclusion]].

** Links with hyper://, http://, and other protocols
** Links with ~hyper://~, ~http://~, and other protocols
:PROPERTIES:
:CUSTOM_ID: other-protocols
:END:
Expand Down
13 changes: 10 additions & 3 deletions org-transclusion.el
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ the rest of the buffer unchanged."
list)))

(defun org-transclusion-refresh (&optional detach)
"Refresh the transcluded text at point."
"Refresh the transcluded text at point.
TODO: Support asynchronous transclusions (set point correctly)."
(interactive "P")
(when (org-transclusion-within-transclusion-p)
(let ((pos (point)))
Expand All @@ -631,7 +633,10 @@ the rest of the buffer unchanged."
(defun org-transclusion-open-source (&optional arg)
"Open the source buffer of transclusion at point.
When ARG is non-nil (e.g. \\[universal-argument]), the point will
remain in the source buffer for further editing."
remain in the source buffer for further editing.
TODO: Support asynchronous transclusions when source buffer
doesn't exist."
(interactive "P")
(unless (overlay-buffer (get-text-property (point) 'org-transclusion-pair))
(org-transclusion-refresh))
Expand Down Expand Up @@ -687,7 +692,9 @@ a couple of org-transclusion specific keybindings; namely:
- `org-transclusion-live-sync-paste'
- `org-transclusion-live-sync-exit'
\\{org-transclusion-live-sync-map}"
\\{org-transclusion-live-sync-map}
TODO: Support asynchronous transclusions."
(interactive)
(if (not (org-transclusion-within-transclusion-p))
(progn (message (format "Nothing done. Not a translusion at %d" (point)))
Expand Down

0 comments on commit 19f6da9

Please sign in to comment.