jcsalomon / smarttabs

Emacs smart tabs - indent with tabs, align with spaces!
http://www.emacswiki.org/emacs/SmartTabs
114 stars 20 forks source link

Eager macro-expansion failure #53

Open Zeta611 opened 2 years ago

Zeta611 commented 2 years ago

I get the following error in GNU Emacs 29.0.50 on macOS 12.5.1.

Debugger entered--Lisp error: (error "Eager macro-expansion failure: (error \"Eager macro...")
  error("Eager macro-expansion failure: %S" (error "Eager macro-expansion skipped due to cycle:\n  … =>..."))
  internal-macroexpand-for-load((prog1 (defalias 'smart-tabs-when (cons 'macro #'(lambda (condition advice-list) `(when ... ...)))) (function-put 'smart-tabs-when 'lisp-indent-function 1)) t)
  load-with-code-conversion("/Users/jay/.emacs.d/elpa/smart-tabs-mode-20200907...." "/Users/jay/.emacs.d/elpa/smart-tabs-mode-20200907...." nil t)
  require(smart-tabs-mode nil nil)
  load-with-code-conversion("/Users/jay/.emacs.d/config.el" "/Users/jay/.emacs.d/config.el" nil nil)
  load-file("/Users/jay/.emacs.d/config.el")
  org-babel-load-file("/Users/jay/.emacs.d/config.org")
  load-with-code-conversion("/Users/jay/.emacs" "/Users/jay/.emacs" t t)
  load("~/.emacs" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x15528775b63385>) #f(compiled-function () #<bytecode -0x1f3c6feddc0c3735>) t)
  command-line()
  normal-top-level()

I am using the Emacs Plus distribution using native compilation (if relevant).

Any help or guide is appreciated!

chep commented 1 year ago

I get this error too (Emacs 30.0.50) I "fixed" it by changing macro order, see PR but I've no idea what I'm doing.

zcjava commented 1 year ago

I get this error too (Emacs 30.0.50) I "fixed" it by changing macro order, see PR but I've no idea what I'm doing.

but author not merge it. i have too

jg110 commented 1 year ago

Getting this error too on Emacs 29.0.90. It last worked for me on Emacs 28. Hopefully the author comes back to this repo (or someone forks it to implement fixes), looks like he's still active on Github but hasn't interacted with this package since 2020.