0

I'm trying to load this on Emacs on Android.

  (defvar bootstrap-version)
  (setq straight-repository-branch "develop") ; Need this for new org-contrib location
  (let ((bootstrap-file
     (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
    (bootstrap-version 5))
    (unless (file-exists-p bootstrap-file)
      (with-current-buffer
    (url-retrieve-synchronously
     "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
     'silent 'inhibit-cookies)
    (goto-char (point-max))
    (eval-print-last-sexp)))
    (load bootstrap-file nil 'nomessage))
  (straight-use-package 'use-package)

, but I get:

error: invalid format character: `%t`

Not really sure how to debug this;)

EDIT: Found this bug, so I guess it's not supported on Android https://github.com/radian-software/straight.el/issues/1118

2
  • 1
    (setq debug-on-error t), then show the backtrace.
    – Drew
    Commented Dec 12, 2023 at 1:26
  • 1
    Presumably, it happens when the bootstrap file is loaded, so the error in the backtrace you will produce after toggling debug-on-error as @Drew recommends, will point to some place in that file.
    – NickD
    Commented Dec 12, 2023 at 7:57

1 Answer 1

0

straight.el is not supported for the native port of Emacs for Android.

I have found some references to Emacs GUI being launched from termux, where it indeed does work, but I haven't dug into that yet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.