branch: externals/org-transclusion
commit eb9e73d43991811567c54134fe35615f35234640
Author: Noboru Ota <m...@nobiot.com>
Commit: Noboru Ota <m...@nobiot.com>

    fix(make-from-link): limit the effect of previous commit
    
    The reversal of auto-transclude behaviour in the previous commit would
    affect the way `digit-argument` behaves too. This would surprise the
    users if they use it.  Now the effect is limited only to
    `universal-argument`.
---
 org-transclusion.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-transclusion.el b/org-transclusion.el
index bb8dea01f8..e0ff4a8e75 100644
--- a/org-transclusion.el
+++ b/org-transclusion.el
@@ -363,7 +363,7 @@ transclusion keyword."
   (let* ((context (org-element-lineage
                    (org-element-context)'(link) t))
          (type (org-element-property :type context))
-         (auto-transclude-p (if (not arg) org-transclusion-mode
+         (auto-transclude-p (if (not (equal arg '(4))) org-transclusion-mode
                               ;; if `universal-argument' is passed,
                               ;; reverse nil/t when
                               (if org-transclusion-mode nil t))))

Reply via email to