[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-transclusion ac0c46c004 16/18: Merge branch 'pr216'
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-transclusion ac0c46c004 16/18: Merge branch 'pr216' |
Date: |
Sun, 21 Jan 2024 15:58:43 -0500 (EST) |
branch: externals/org-transclusion
commit ac0c46c00446ca91255a6741e2a37da268c1861a
Merge: dcc0a6ddd8 01dfc13a57
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
Merge branch 'pr216'
---
org-transclusion-src-lines.el | 6 +++---
org-transclusion.el | 26 +++++++++++++++-----------
test/things-at-point-dir/story.txt | 2 +-
text-clone.el | 8 ++++----
4 files changed, 23 insertions(+), 19 deletions(-)
diff --git a/org-transclusion-src-lines.el b/org-transclusion-src-lines.el
index e7511baa11..7559081420 100644
--- a/org-transclusion-src-lines.el
+++ b/org-transclusion-src-lines.el
@@ -52,7 +52,7 @@
(add-hook 'org-transclusion-keyword-plist-to-string-functions
#'org-transclusion-keyword-plist-to-string-src-lines)
-;; Transclusion content formating
+;; Transclusion content formatting
(add-hook 'org-transclusion-content-format-functions
#'org-transclusion-content-format-src-lines)
@@ -143,7 +143,7 @@ it means from line 10 to the end of file."
(save-excursion
(ignore-errors
;; FIXME `org-link-search' does not
- ;; return postion when eithher
+ ;; return position when eithher
;; ::/regex/ or ::number is used
(if (org-link-search search-option)
(line-beginning-position))))))
@@ -160,7 +160,7 @@ it means from line 10 to the end of file."
(save-excursion
(ignore-errors
;; FIXME `org-link-search' does not
- ;; return postion when either ::/regex/
+ ;; return position when either ::/regex/
;; or ::number is used
(when (org-link-search end-search-op)
(line-beginning-position))))))))
diff --git a/org-transclusion.el b/org-transclusion.el
index 61a149032a..a92590308d 100644
--- a/org-transclusion.el
+++ b/org-transclusion.el
@@ -177,7 +177,7 @@ a text content.
`org-transclusion-after-save-buffer' use this variable.")
(defvar-local org-transclusion-remember-window-config nil
- "Remember window config (the arrangment of windows) for the current buffer.
+ "Remember window config (the arrangement of windows) for the current buffer.
This is for live-sync. Analogous to
`org-edit-src-code'.")
@@ -284,7 +284,7 @@ specific keybindings; namely:
nil nil '(center t))
;;;; Macro
-;;;; Definining macros before they are used in the rest of package
+;;;; Defining macros before they are used in the rest of package
;;;; Flycheck warns with "macro X defined too late"
(defmacro org-transclusion-with-inhibit-read-only (&rest body)
"Run BODY with `'inhibit-read-only` t.
@@ -327,13 +327,15 @@ and variables."
(add-hook 'after-save-hook #'org-transclusion-after-save-buffer nil t)
(add-hook 'kill-buffer-hook #'org-transclusion-before-kill nil t)
(add-hook 'kill-emacs-hook #'org-transclusion-before-kill nil t)
- (add-hook 'org-export-before-processing-hook
+ (add-hook (if (version< org-version "9.6")
+ 'org-export-before-processing-hook
+ 'org-export-before-processing-functions)
#'org-transclusion-inhibit-read-only nil t)
(org-transclusion-yank-excluded-properties-set)
(org-transclusion-load-extensions-maybe))
(defun org-transclusion-deactivate ()
- "Dectivate Org-transclusion hooks and other setups in the current buffer.
+ "Deactivate Org-transclusion hooks and other setups in the current buffer.
This function also removes all the transclusions in the current buffer."
(interactive)
(org-transclusion-remove-all)
@@ -341,7 +343,9 @@ This function also removes all the transclusions in the
current buffer."
(remove-hook 'after-save-hook #'org-transclusion-after-save-buffer t)
(remove-hook 'kill-buffer-hook #'org-transclusion-before-kill t)
(remove-hook 'kill-emacs-hook #'org-transclusion-before-kill t)
- (remove-hook 'org-export-before-processing-hook
+ (remove-hook (if (version< org-version "9.6")
+ 'org-export-before-processing-hook
+ 'org-export-before-processing-functions)
#'org-transclusion-inhibit-read-only t)
(org-transclusion-yank-excluded-properties-remove))
@@ -725,7 +729,7 @@ a couple of org-transclusion specific keybindings; namely:
(defun org-transclusion-live-sync-exit ()
"Exit live-sync at point.
-It attemps to re-arrange the windows for the current buffer to
+It attempts to re-arrange the windows for the current buffer to
the state before live-sync started."
(interactive)
(if (not (org-transclusion-within-live-sync-p))
@@ -749,7 +753,7 @@ This is meant to be used within live-sync overlay as part of
;;;;---------------------------------------------------------------------------
;;;; Private Functions
-;;;; Functions for Activate / Deactiveate / save-buffer hooks
+;;;; Functions for Activate / Deactivate / save-buffer hooks
(defun org-transclusion-before-save-buffer ()
"Remove translusions in `before-save-hook'.
@@ -932,7 +936,7 @@ keyword. If not, returns nil."
"Return list of symbols from PLIST when applicable.
If PLIST does not have :exclude-elements, return nil.
-This function also attemps to remove empty string that gets
+This function also attempts to remove empty string that gets
inserted when more than one space is inserted between symbols."
(let ((str (plist-get plist :exclude-elements)))
(when str
@@ -1147,7 +1151,7 @@ This function is intended to be used for Org-ID. It
delates the
work to
`org-transclusion-content-org-buffer-or-element'."
(save-excursion
- ;; First visit the buffer and go to the relevant elelement if
+ ;; First visit the buffer and go to the relevant element if
;; search-option is present.
(let* ((path (org-element-property :path link))
(search-option (org-element-property :search-option link))
@@ -1438,7 +1442,7 @@ It is intended to be used for
`org-transclusion-open-source' and
This function relies on `org-transclusion-find-source-marker' to
locate the position in the source buffer; thus, the same
limitation applies. It depends on which org elements whether or
-not this function can identify the beginnning of the element at
+not this function can identify the beginning of the element at
point. If it cannot, it will return the beginning of the
transclusion, which can be far away from the element at point, if
the transcluded region is large."
@@ -1582,7 +1586,7 @@ transclusion in this structure:
(defun org-transclusion-live-sync-display-buffer (buffer)
"Display the source buffer upon entering live-sync edit.
-It rembembers the current arrangement of windows (window
+It remembers the current arrangement of windows (window
configuration), deletes the other windows, and displays
BUFFER (intended to be the source buffer being edited in
live-sync.)
diff --git a/test/things-at-point-dir/story.txt
b/test/things-at-point-dir/story.txt
index bec7eab5cd..226139a310 100644
--- a/test/things-at-point-dir/story.txt
+++ b/test/things-at-point-dir/story.txt
@@ -1,5 +1,5 @@
This is a story
-Once upon a time. This paragraph should be transcluded. This is a story. And
if I have a hard line break, I belive this line is still part of the paragraph
as defined by ... thing-at-point I think.
+Once upon a time. This paragraph should be transcluded. This is a story. And
if I have a hard line break, I believe this line is still part of the paragraph
as defined by ... thing-at-point I think.
This is a new paragraph and should not be included.
diff --git a/text-clone.el b/text-clone.el
index 966a449219..af2bb167ac 100644
--- a/text-clone.el
+++ b/text-clone.el
@@ -30,7 +30,7 @@
;;;; Credits
-;; It is an extention of text-clone functions written as part of GNU Emacs in
+;; It is an extension of text-clone functions written as part of GNU Emacs in
;; subr.el. The first adaption to extend text-clone functions to work across
;; buffers was published in StackExchange by the user named Tobias in March
;; 2020. It can be found at https://emacs.stackexchange.com/questions/56201/
@@ -48,7 +48,7 @@
overlays. Used primarily by `text-clone-delete-overlays'.")
(defvar text-clone-live-sync-in-progress nil
- "Global varible used by `text-clone-live-sync' function.")
+ "Global variable used by `text-clone-live-sync' function.")
;;;; Functions
@@ -70,7 +70,7 @@ which is primarily used to clean up text-clone overlays with
`text-clone-delete-overlays'.
This function does not explicitly differentiate overlays for the
-orginal text region and its clones. Where such distinction is
+original text region and its clones. Where such distinction is
important, use the sequence of OVERLAYS list; for example, the
first element of the list can be the overlay for the original and
rest, clones.
@@ -150,7 +150,7 @@ This is used on the `modification-hooks' property of text
clones.
AFTER, BEG, and END are the fixed args for `modification-hooks'
and friends in an overlay.
-It's a simplified version of the orignal `text-clone--maintain'.
+It's a simplified version of the original `text-clone--maintain'.
This function does not use SPREADP or SYNTAX (both defined in
`text-clone-create').
- [elpa] externals/org-transclusion e1c68d113d 08/18: Use org-export-before-processing-functions if available, (continued)
- [elpa] externals/org-transclusion e1c68d113d 08/18: Use org-export-before-processing-functions if available, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 92b91d02c5 03/18: style: Use and instead of if in org-transclusion-content-org-link, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion eb29beb1a2 10/18: copyright 2024, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion da4576da34 11/18: test: minor change, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 3024fe5716 13/18: Merge branch 'pr211', ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion dcc0a6ddd8 15/18: Merge branch 'pr214', ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 18b81641e6 01/18: docs: Update docstring for org-transclusion-with-inhibit-read-only, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion e65cd19167 18/18: admin: copyright 2024, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 2d9290554e 12/18: Merge branch 'pr210', ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion f49e6b5098 14/18: Merge branch 'pr209', ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion ac0c46c004 16/18: Merge branch 'pr216',
ELPA Syncer <=
- [elpa] externals/org-transclusion b93eaadd05 17/18: Merge branch 'pr213', ELPA Syncer, 2024/01/21