Skip to content

Commit ffecfda

Browse files
committed
code: fix global flag
1 parent 27d5d33 commit ffecfda

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lisp/_prepare.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,9 @@ other scripts internally. See function `eask-call'.")
466466
"Execute BODY with workspace setup."
467467
(declare (indent 0) (debug t))
468468
`(eask--batch-mode
469-
(let (alist)
469+
(let ((default-directory (if (eask-global-p) user-emacs-directory
470+
default-directory))
471+
(alist))
470472
(dolist (cmd eask--command-list)
471473
(push (cons cmd '(lambda (&rest _))) alist))
472474
(setq command-switch-alist (append command-switch-alist alist))

0 commit comments

Comments
 (0)