Error: user-error ("Input and output must be different files") user-error("Input and output must be different files") (progn (user-error "Input and output must be different files")) (if (or (equal input output) (file-equal-p input output)) (progn (user-error "Input and output must be different files"))) (let ((input (expand-file-name input)) (output (expand-file-name output)) (inhibit-message t) (warning-function (symbol-function 'display-warning)) (enable-local-variables nil) (enable-local-eval nil) (org-export-time-stamp-file nil) (reference-counter 0) (org-export-use-babel nil)) (if (file-readable-p input) nil (user-error "Cannot read input: %s" input)) (if (or (equal input output) (file-equal-p input output)) (progn (user-error "Input and output must be different files"))) (let* ((vnew #'(lambda (references) (setq reference-counter (+ reference-counter 1)) (while (or (rassq reference-counter references) (assoc (org-export-format-reference reference-counter) references)) (setq reference-counter (+ reference-counter 1))) reference-counter)) (vnew #'(lambda (&rest args) (let ((inhibit-message nil)) (apply warning-function args)))) (old (symbol-function 'display-warning)) (old (symbol-function 'org-export-new-reference))) (unwind-protect (progn (fset 'display-warning vnew) (fset 'org-export-new-reference vnew) (save-current-buffer (set-buffer (find-file-noselect input)) (org-export-to-file 'stardust-html output))) (fset 'display-warning old) (fset 'org-export-new-reference old)))) stardust-org-build-file("source/input file.org" "source/input file.org") apply(stardust-org-build-file ("source/input file.org" "source/input file.org")) (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail))) (while tail (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail)))) (let ((tail files)) (while tail (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail))))) (let ((files (let* ((val (length command-line-args-left))) (cond ((eql val 0) (let nil '(("EPSILON.org" "EPSILON.html") ("DUST.org" "DUST.html") ("README.org" "index.html")))) ((eql val 2) (let nil (list command-line-args-left))) (t (let nil (user-error "Usage: build-org [ ]"))))))) (setq command-line-args-left nil) (let ((tail files)) (while tail (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail)))))) stardust-org-build-batch() command-line-1(("-L" "/build/tmp.CDABiBXbmI/vendor/emacs-dust-mode" "-L" "/build/tmp.CDABiBXbmI/org" "--eval" "(setq user-full-name \"Casey Link\" treesit-extra-load-path (list \"/nix/store/ky9kwfd72dqlwahfp275rh7sbwsamyfh-tree-sitter-dust-0.1.0/lib\"))" "--load" "build-org" "--funcall" "stardust-org-build-batch" "source/input file.org" "source/input file.org")) command-line() normal-top-level() Input and output must be different files Error: user-error ("Cannot read input: /build/tmp.CDABiBXbmI/missing.org") user-error("Cannot read input: %s" "/build/tmp.CDABiBXbmI/missing.org") (if (file-readable-p input) nil (user-error "Cannot read input: %s" input)) (let ((input (expand-file-name input)) (output (expand-file-name output)) (inhibit-message t) (warning-function (symbol-function 'display-warning)) (enable-local-variables nil) (enable-local-eval nil) (org-export-time-stamp-file nil) (reference-counter 0) (org-export-use-babel nil)) (if (file-readable-p input) nil (user-error "Cannot read input: %s" input)) (if (or (equal input output) (file-equal-p input output)) (progn (user-error "Input and output must be different files"))) (let* ((vnew #'(lambda (references) (setq reference-counter (+ reference-counter 1)) (while (or (rassq reference-counter references) (assoc (org-export-format-reference reference-counter) references)) (setq reference-counter (+ reference-counter 1))) reference-counter)) (vnew #'(lambda (&rest args) (let ((inhibit-message nil)) (apply warning-function args)))) (old (symbol-function 'display-warning)) (old (symbol-function 'org-export-new-reference))) (unwind-protect (progn (fset 'display-warning vnew) (fset 'org-export-new-reference vnew) (save-current-buffer (set-buffer (find-file-noselect input)) (org-export-to-file 'stardust-html output))) (fset 'display-warning old) (fset 'org-export-new-reference old)))) stardust-org-build-file("missing.org" "output/missing.html") apply(stardust-org-build-file ("missing.org" "output/missing.html")) (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail))) (while tail (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail)))) (let ((tail files)) (while tail (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail))))) (let ((files (let* ((val (length command-line-args-left))) (cond ((eql val 0) (let nil '(("EPSILON.org" "EPSILON.html") ("DUST.org" "DUST.html") ("README.org" "index.html")))) ((eql val 2) (let nil (list command-line-args-left))) (t (let nil (user-error "Usage: build-org [ ]"))))))) (setq command-line-args-left nil) (let ((tail files)) (while tail (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail)))))) stardust-org-build-batch() command-line-1(("-L" "/build/tmp.CDABiBXbmI/vendor/emacs-dust-mode" "-L" "/build/tmp.CDABiBXbmI/org" "--eval" "(setq user-full-name \"Casey Link\" treesit-extra-load-path (list \"/nix/store/ky9kwfd72dqlwahfp275rh7sbwsamyfh-tree-sitter-dust-0.1.0/lib\"))" "--load" "build-org" "--funcall" "stardust-org-build-batch" "missing.org" "output/missing.html")) command-line() normal-top-level() Cannot read input: /build/tmp.CDABiBXbmI/missing.org Error: user-error ("Usage: build-org [ ]") user-error("Usage: build-org [ ]") (let nil (user-error "Usage: build-org [ ]")) (cond ((eql val 0) (let nil '(("EPSILON.org" "EPSILON.html") ("DUST.org" "DUST.html") ("README.org" "index.html")))) ((eql val 2) (let nil (list command-line-args-left))) (t (let nil (user-error "Usage: build-org [ ]")))) (let* ((val (length command-line-args-left))) (cond ((eql val 0) (let nil '(("EPSILON.org" "EPSILON.html") ("DUST.org" "DUST.html") ("README.org" "index.html")))) ((eql val 2) (let nil (list command-line-args-left))) (t (let nil (user-error "Usage: build-org [ ]"))))) (let ((files (let* ((val (length command-line-args-left))) (cond ((eql val 0) (let nil '(("EPSILON.org" "EPSILON.html") ("DUST.org" "DUST.html") ("README.org" "index.html")))) ((eql val 2) (let nil (list command-line-args-left))) (t (let nil (user-error "Usage: build-org [ ]"))))))) (setq command-line-args-left nil) (let ((tail files)) (while tail (let ((pair (car tail))) (apply #'stardust-org-build-file pair) (setq tail (cdr tail)))))) stardust-org-build-batch() command-line-1(("-L" "/build/tmp.CDABiBXbmI/vendor/emacs-dust-mode" "-L" "/build/tmp.CDABiBXbmI/org" "--eval" "(setq user-full-name \"Casey Link\" treesit-extra-load-path (list \"/nix/store/ky9kwfd72dqlwahfp275rh7sbwsamyfh-tree-sitter-dust-0.1.0/lib\"))" "--load" "build-org" "--funcall" "stardust-org-build-batch" "missing.org")) command-line() normal-top-level() debug-early-backtrace...done Usage: build-org [ ]