[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-transclusion 2053106e73 23/29: style(org-transclusi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-transclusion 2053106e73 23/29: style(org-transclusion.el): indentation |
Date: |
Mon, 8 May 2023 06:59:10 -0400 (EDT) |
branch: externals/org-transclusion
commit 2053106e739315baeec87ab594d328f3aacacc33
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
style(org-transclusion.el): indentation
No functional change. Only indentation
---
org-transclusion.el | 60 ++++++++++++++++++++++++++---------------------------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/org-transclusion.el b/org-transclusion.el
index 213834f153..6b6d0a85f1 100644
--- a/org-transclusion.el
+++ b/org-transclusion.el
@@ -17,7 +17,7 @@
;; Author: Noboru Ota <me@nobiot.com>
;; Created: 10 October 2020
-;; Last modified: 06 May 2023
+;; Last modified: 08 May 2023
;; URL: https://github.com/nobiot/org-transclusion
;; Keywords: org-mode, transclusion, writing
@@ -979,19 +979,19 @@ based on the following arguments:
(delay-mode-hooks (org-mode))
(insert content)
(org-with-point-at 1
- (let* ((to-level (plist-get keyword-values :level))
- (level
(org-transclusion-content-highest-org-headline))
- (diff (when (and level to-level) (- level
to-level))))
- (when diff
- (cond ((< diff 0) ; demote
- (org-map-entries (lambda ()
- (dotimes (_ (abs
diff))
- (org-do-demote)))))
- ((> diff 0) ; promote
- (org-map-entries (lambda ()
- (dotimes (_ diff)
-
(org-do-promote))))))))
- (setq content (buffer-string)))))
+ (let* ((to-level (plist-get keyword-values :level))
+ (level (org-transclusion-content-highest-org-headline))
+ (diff (when (and level to-level) (- level to-level))))
+ (when diff
+ (cond ((< diff 0) ; demote
+ (org-map-entries (lambda ()
+ (dotimes (_ (abs diff))
+ (org-do-demote)))))
+ ((> diff 0) ; promote
+ (org-map-entries (lambda ()
+ (dotimes (_ diff)
+ (org-do-promote))))))))
+ (setq content (buffer-string)))))
(insert
(run-hook-with-args-until-success
'org-transclusion-content-format-functions
@@ -1053,22 +1053,22 @@ This function is the default for org-transclusion-type
(TYPE)
\"org-*\". Currently it only re-aligns table with links in the
content."
(when (org-transclusion-type-is-org type)
- (with-temp-buffer
- (let ((org-inhibit-startup t))
- (delay-mode-hooks (org-mode))
- (insert content)
- ;; Fix table alignment
- (let ((point (point-min)))
- (while point
- (goto-char (1+ point))
- (when (org-at-table-p)
- (org-table-align)
- (goto-char (org-table-end)))
- (setq point (search-forward "|" (point-max) t))))
- ;; Fix indentation when `org-adapt-indentation' is non-nil
- (org-indent-region (point-min) (point-max))
- ;; Return the temp-buffer's string
- (buffer-string)))))
+ (with-temp-buffer
+ (let ((org-inhibit-startup t))
+ (delay-mode-hooks (org-mode))
+ (insert content)
+ ;; Fix table alignment
+ (let ((point (point-min)))
+ (while point
+ (goto-char (1+ point))
+ (when (org-at-table-p)
+ (org-table-align)
+ (goto-char (org-table-end)))
+ (setq point (search-forward "|" (point-max) t))))
+ ;; Fix indentation when `org-adapt-indentation' is non-nil
+ (org-indent-region (point-min) (point-max))
+ ;; Return the temp-buffer's string
+ (buffer-string)))))
(defun org-transclusion-content-format (_type content indent)
"Format text CONTENT from source before transcluding.
- [elpa] externals/org-transclusion updated (ed141838d0 -> c44071dfb5), ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 6c0352f33a 01/29: Feature: select end via n things at point., ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 35ea926477 03/29: Merge branch 'main' into feature--things-at-point, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 4881798b9d 05/29: Nil Safety, ELPA Syncer, 2023/05/08
- [elpa] externals/org-transclusion 134c8a645f 04/29: Namespace bounds-of-n-things-at-point, ELPA Syncer, 2023/05/08
- [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 <=
- [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, 2023/05/08
- [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