[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-transclusion 364cb5bf3f 28/29: docs: NEWS and user
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/org-transclusion 364cb5bf3f 28/29: docs: NEWS and user manual to mention thing-at-point |
|
Date: |
Mon, 8 May 2023 06:59:11 -0400 (EDT) |
branch: externals/org-transclusion
commit 364cb5bf3fa78217ac3f777601d13fc35908c279
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
docs: NEWS and user manual to mention thing-at-point
---
NEWS | 4 ++++
docs/org-transclusion-manual.org | 40 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index 9fe7d840d1..ff1f1d5c3f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,8 @@
* Current development version
+
+ - feat: add :things-at-point property for transcluding source and
+ other non-org text files
+
- feat: add org-block-live-sync
- Command 'org-transclusion-live-sync-start' now can start live sync
diff --git a/docs/org-transclusion-manual.org b/docs/org-transclusion-manual.org
index 8100ff41ec..f3d3c4afb8 100644
--- a/docs/org-transclusion-manual.org
+++ b/docs/org-transclusion-manual.org
@@ -1,7 +1,7 @@
#+title: Org-transclusion User Manual
#+author: Noboru Ota <me@nobiot.com>
#+macro: version 1.3.x
-#+macro: modified 29 March 2023
+#+macro: modified 08 May 2023
#+language: en
#+export_file_name: org-transclusion.texi
@@ -484,6 +484,42 @@ Example 3:
#+transclude: [[file:../../test/python-1.py::id-1234]] :lines 2- :src python
:end "id-1234 end here"
#+end_example
+*** =:thing-at-point= property to specify a "thing" to transclude from the
source.
+
+#+cindex: Property - :thing-at-point
+
+You can add =:thing-at-point= property to transclude a certain "thing" at
point to be transcluded. The following text elements have been tested to work:
+
+- sentence
+- paragraph
+- defun
+- sexp
+
+#+ATTR_TEXINFO: :tag Note
+#+begin_quote
+As it stands now, you cannot use :thing-at-point to specify the precise
beginning of the thing within a line -- it is always the beginning of the line.
+#+end_quote
+
+See Example 4. When you have a text file for prose, you can use paragraph or
sentence as a "thing" to transclude. In this example, the beginning of the
source of transclude is specified by the search option with "::Once upon a
time". The two colons "::" immediately following the file name denote the
search option, which is a built-in Org syntax. Then the paragraph or sentence
beginning "Once upon a time" is transcluded. When the source file contains
multiple occurrences of "Once upon a [...]
+
+Example 4:
+#+begin_example
+#+transclude: [[./things-at-point-dir/story.txt::Once upon a time][story]]
:thing-at-point paragraph
+
+#+transclude: [[./things-at-point-dir/story.txt::Once upon a time][story]]
:thing-at-point sentence
+#+end_example
+
+You can combine =:thing-at=point= with =:src= property so that the transcluded
text is wrapped in Org's source block. Example 5 shows a way to do so.
"id:123456789" is assumed to be present as comment in the source file.
+
+Example 5:
+#+begin_example
+#+transclude: [[./things-at-point-dir/baz.el::id:1234567890][barz-baz-fuzz]]
:src elisp
+
+#+transclude: [[./things-at-point-dir/baz.el::foo][barz-baz-fuzz]] :src elisp
:thing-at-point sexp
+
+#+transclude: [[./things-at-point-dir/baz.el::id:1234567890][barz-baz-fuzz]]
:src elisp :thing-at-point defun
+#+end_example
+
** Extensions
:PROPERTIES:
:CUSTOM_ID: extensions
@@ -685,6 +721,8 @@ Note this section is still incomplete, not exhaustive for
"known" limitations.
- Undo detach does not add the overlay back on the source ::
This should not break any feature. You can safely refresh the transclusion
and recover the source overlay. You can also safely open or moved to the source
while the source overlay is not present.
+- For =:thing-at-point, you cannot use :thing-at-point to specify the precise
beginning of the thing within a line -- it is always the beginning of the line.
+
* Credits
** Original idea by John Kitchin
:PROPERTIES:
- [elpa] externals/org-transclusion 310bd28b10 14/29: Augment only needed for magical enter in thing-at-point branch., (continued)
- [elpa] externals/org-transclusion 310bd28b10 14/29: Augment only needed for magical enter in thing-at-point branch., ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 2bade767cb 15/29: Adapt to magic enter., ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 01a8367387 07/29: Move new-line guarentee to cover all content sources, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 2053106e73 23/29: style(org-transclusion.el): indentation, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 51cac54fed 11/29: Need newline guarentee also in content-src-lines, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 9db0791c07 18/29: refactor: remove unused let variable, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 1146293107 26/29: Merge pull request #157 from devcarbon-com/feature--things-at-point, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion b6091cdcaa 19/29: doc: update manual for the new feature for live-sync org src block, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion b3e59a7b0a 25/29: refactor(thing-at-point): contain within src-lines.el #157, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion e4f96e114b 27/29: Merge branch 'dev/feature--things-at-point', ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 364cb5bf3f 28/29: docs: NEWS and user manual to mention thing-at-point,
ELPA Syncer <=
- [elpa] externals/org-transclusion 2cb719e80f 02/29: Add support for handling identations when using :thing-at-point sexp, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 8317ec94fa 09/29: Fixup, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 654c1a83f9 17/29: feat: suggestion for live-sync-buffers-src-lines, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 28737e1b5c 08/29: Need newline guarentee also in content-src-lines, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 1b5f428e58 10/29: Move new-line guarentee to cover all content sources, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion b9d73ad7fd 16/29: Typo., ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion f0e8240695 20/29: doc: mention the live-sync to be in the next stable rel for ELPA, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 1695f306e6 22/29: refactor: reverted changes to org-transclusion.el, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion d66e4b1f7d 24/29: test: remove spurflous bracket, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 1d6fb83578 21/29: fix: (unit-tests.el) require org-transclusion, ELPA Syncer, 2023/05/08