nix-community / emacs-overlay

Bleeding edge emacs overlay [maintainer=@adisbladis]
510 stars 168 forks source link

Unrecognized token error when using # #433

Closed nvimtor closed 1 month ago

nvimtor commented 2 months ago

I have this in my init.el:

(setq vertico-group-format
      #("%s" 0 2
        (face my-vertico-group-title)))

It evaluates fine within Emacs, but trying to use it in emacsWithPackagesFromUsePackage results in:

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'darwin-system-24.11.20240920.a1d9266+darwin5.bd7d1e3'
         whose name attribute is located at /nix/store/x76i82ichcxssszb5i0ppzlmffms9iyk-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'activationScript' of derivation 'darwin-system-24.11.20240920.a1d9266+darwin5.bd7d1e3'

         at /nix/store/3m75mdiiq4bkzm5qpx6arapz042na0vh-source/modules/system/default.nix:95:7:

           94|
           95|       activationScript = cfg.activationScripts.script.text;
             |       ^
           96|       activationUserScript = cfg.activationScripts.userScript.text;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: Unrecognized token on line 304: #("%s" 0 2
               (face my-vertico-group-title)))

I am new to both Emacs & Lisp so unsure of how to further debug this, or if this at all expected.

Seems to me that #164 is related?

leungbk commented 1 month ago

This seems like a problem with the Elisp reader we use, so please file a report there (https://github.com/talyz/fromElisp/issues/)