TeMPOraL / nyan-mode

Nyan Cat for Emacs! Nyanyanyanyanyanyanyanyanyan!
GNU General Public License v3.0
800 stars 67 forks source link

Duplicate nyans after reload init file #40

Open suzuki11109 opened 6 years ago

suzuki11109 commented 6 years ago

This is my setting.

    (use-package nyan-mode
      :init
      (setq nyan-animate-nyancat t)
      (setq nyan-wavy-trail t)
      (setq nyan-minimum-window-width 80)
      (setq nyan-bar-length 20)
      (nyan-mode))

This is what happen.

screen shot 2018-06-03 at 13 37 25

Thanks!

novoid commented 6 years ago

I do have the same issue of nyan cats that got schizo but it doesn't need reloading my init file. The issue occurred a couple of weeks ago. Unfortunately, I don't have an idea what was changed before the issue appeared. I don't know how to debug the issue.

Version 1.1.2 from Melpa stable with setup:

(use-package nyan-mode
  :ensure t
  :init
  (when (my-system-type-is-windows)
    (setq nyan-bar-length 20);; reduce length on narrow upward/tilted display
  )
  :config
  (nyan-mode t)
)

The issue persists on Windows and non-Windows machines (referring to the switch above) with different Emacs versions: 25.1.1 Linux, 26 Windows, 27.0.50 Linux

My temporal workaround is to M-x nyan-mode RET once after starting Emacs in order to get rid of the second one.

TeMPOraL commented 4 years ago

Please try it with the current versions. I have two theories as to why this happens, but the current solution only addresses one of them. The relevant code is in need of slight overhaul anyway, so I hope to solve it soon-ish.

novoid commented 4 years ago

I do not run the Windows machine any more. On my current machines (Emacs 26.3, 27.0.50, 28.0.50) on Debian 10 and Xubuntu with nyan-mode-20170423.740 the issue is gone.

getong commented 1 month ago

In Macbook , intel and M1 cpu, this bug appears.