Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Minor tidying up #269

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions org-transclusion.el
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ Org mode's caching relies upon modification hooks to function."
:global nil
:keymap (let ((map (make-sparse-keymap)))
map)
(cond
(org-transclusion-mode
(org-transclusion-activate)
(when org-transclusion-add-all-on-activate
(org-transclusion-add-all)))
(t (org-transclusion-deactivate))))
(if org-transclusion-mode
(progn
(org-transclusion-activate)
(when org-transclusion-add-all-on-activate
(org-transclusion-add-all)))
(org-transclusion-deactivate)))

;;;###autoload
(defun org-transclusion-activate ()
Expand Down Expand Up @@ -377,7 +377,6 @@ so on) or `universal-argument' (\\[universal-argument]).
If you pass a positive number 1-9 with `digit-argument', this
function automatically puts the :level property to the resultant
transclusion keyword."

(interactive "P")
(let* ((context (org-element-lineage
(org-element-context)'(link) t))
Expand Down Expand Up @@ -513,7 +512,7 @@ function to work only on the narrowed region you are in, leaving
the rest of the buffer unchanged."
(interactive "P")
(save-restriction
(let ((marker (move-marker (make-marker) (point))))
(let ((marker (point-marker)))
(unless narrowed (widen))
(goto-char (point-min))
(let ((regexp "^[ \t]*#\\+TRANSCLUDE:"))
Expand Down
Loading