Coder Social home page Coder Social logo

Comments (9)

seagle0128 avatar seagle0128 commented on August 16, 2024

Are you using official GNU Emacs 26.1? I think you should use x64 build.

image

Can you evel when-let and frame-selected-window in your env?

from doom-modeline.

hello-code avatar hello-code commented on August 16, 2024
  1. The same thing with GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) ;
Debugger entered--Lisp error: (invalid-function (win (frame-selected-window)))
  (win (frame-selected-window))()
  doom-modeline-set-selected-window()
  run-hooks(focus-in-hook)
  handle-focus-in((focus-in #<frame *Backtrace* 0000000400a69a50>))
  funcall-interactively(handle-focus-in (focus-in #<frame *Backtrace* 0000000400a69a50>))
  call-interactively(handle-focus-in nil [(focus-in #<frame *Backtrace* 0000000400a69a50>)])
  command-execute(handle-focus-in nil [(focus-in #<frame *Backtrace* 0000000400a69a50>)] t)
  1. (when-let)
    Debugger entered--Lisp error: (void-function when-let) (when-let) eval((when-let) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp)

    (frame-selected-window)
    #<window 3 on *scratch*>

from doom-modeline.

seagle0128 avatar seagle0128 commented on August 16, 2024

Wired! In Emacs 26.1 when-let function is defined. Did you download from official website https://ftp.gnu.org/gnu/emacs/windows/emacs-26/emacs-26.1-x86_64.zip? I tested on Windows 10 and it works well.

Otherwise, please try this

(use-package doom-modeline
  :ensure t
  :defer t
  :preface (defalias 'when-let 'when-let*)
  :hook (after-init . doom-modeline-init)
)

from doom-modeline.

hello-code avatar hello-code commented on August 16, 2024

Yes on Windows 10 is works well,But on Windows 7 is not!
I download from official website;
I tried your :
(use-package doom-modeline
:ensure t
:defer t
:preface (defalias 'when-let 'when-let*)
:hook (after-init . doom-modeline-init)
)

But still not working...

Debugger entered--Lisp error: (invalid-function (win (frame-selected-window)))
(win (frame-selected-window))()
doom-modeline-set-selected-window()
run-hooks(focus-in-hook)
handle-focus-in((focus-in #<frame Backtrace 0000000400a69a50>))
funcall-interactively(handle-focus-in (focus-in #<frame Backtrace 0000000400a69a50>))
call-interactively(handle-focus-in nil [(focus-in #<frame Backtrace 0000000400a69a50>)])
command-execute(handle-focus-in nil [(focus-in #<frame Backtrace 0000000400a69a50>)] t)

from doom-modeline.

seagle0128 avatar seagle0128 commented on August 16, 2024

Please check if when-let exists in ./lisp/emacs-lisp/subr-x.el. If YES, try this:

(use-package doom-modeline
:ensure t
:defer t
:hook (after-init . doom-modeline-init)
:config (require 'subr-x)
)

Otherwise try:

(use-package doom-modeline
:ensure t
:defer t
:preface (defalias 'when-let 'let)
:hook (after-init . doom-modeline-init)
)

from doom-modeline.

hello-code avatar hello-code commented on August 16, 2024

subr-x.el in here: C:\Emacs\share\emacs\26.1\lisp\emacs-lisp\subr-x.el

still not working...
Windows 7 BUG?

from doom-modeline.

seagle0128 avatar seagle0128 commented on August 16, 2024

I tested on Windows7 and there is no such issue. Please test with the bare Emacs emacs -Q. I think the issue exists in your configurations.

image

from doom-modeline.

hello-code avatar hello-code commented on August 16, 2024

The same issue even install doom-modeline on bare Emacs. Anyway,thank you very much!

from doom-modeline.

seagle0128 avatar seagle0128 commented on August 16, 2024

If when-let is not defined, many packages will not work. So you should ensure when-let is defined in your environment, or file a bug for Emacs. But please make sure 100% before filing the issue, because in my laptop it does work well.

from doom-modeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.