nyan-mode
nyan-mode copied to clipboard
Enable scaling for nyan-mode
This solves #37 and #48.
Under Emacs 27:
-
-animation -wavy
-
-animation +wavy
-
+animation -wavy
-
+animation +wavy
After applying this patch I get below error:
Debugger entered--Lisp error: (void-function nyan-wavy-rainbow-ascent)
nyan-wavy-rainbow-ascent(0 t)
nyan-create-rainbow-frame-image(t (svg ((width . 8) (height . 15.0) (version . "1.1") (xmlns . "http://www.w3.org/2000/svg") (xmlns:xlink . "http://www.w3.org/1999/xlink") (stroke-width . 8)) (defs nil (linearGradient ((id . "gradient1") (x1 . 0) (x2 . 0) (y1 . 0) (y2 . 1)) (stop ((offset . "0.0%") (stop-color . "#522244"))) (stop ((offset . "7.142857142857142%") (stop-color . "#BF1119"))) (stop ((offset . "14.285714285714285%") (stop-color . "#F52A02"))) (stop ((offset . "21.428571428571427%") (stop-color . "#FC7800"))) (stop ((offset . "28.57142857142857%") (stop-color . "#FBA500"))) (stop ((offset . "35.714285714285715%") (stop-color . "#F0D300"))) (stop ((offset . "42.857142857142854%") (stop-color . "#B4BF00"))) (stop ((offset . "50.0%") (stop-color . "#4E9802"))) (stop ((offset . "57.14285714285714%") (stop-color . "#2CCB13"))) (stop ((offset . "64.28571428571429%") (stop-color . "#20D15C"))) (stop ((offset . "71.42857142857143%") (stop-color . "#0EA7CB"))) (stop ((offset . "78.57142857142857%") (stop-color . "#1E80F7"))) (stop ((offset . "85.71428571428571%") (stop-color . "#5247F7"))) (stop ((offset . "92.85714285714286%") (stop-color . "#5536D9"))) (stop ((offset . "100.0%") (stop-color . "#263498"))))) (rect ((width . 8) (height . 15.0) (x . 0) (y . 0) (x1 . 0) (x2 . 0) (y1 . 0) (y2 . 1) (fill . "url(#gradient1)") (stroke-width . 8)))) 0)
nyan-create-rainbow-images(t)
(defvar nyan-rainbow-animating-images (nyan-create-rainbow-images t))
(nyan-mode)
For reference, I am using Emacs master (29.0.50, updated 13th Dec 2021). Can you please suggest what could be done to fix this? I am not well versed in elisp.
After applying this patch I get below error:
Debugger entered--Lisp error: (void-function nyan-wavy-rainbow-ascent) nyan-wavy-rainbow-ascent(0 t) nyan-create-rainbow-frame-image(t (svg ((width . 8) (height . 15.0) (version . "1.1") (xmlns . "http://www.w3.org/2000/svg") (xmlns:xlink . "http://www.w3.org/1999/xlink") (stroke-width . 8)) (defs nil (linearGradient ((id . "gradient1") (x1 . 0) (x2 . 0) (y1 . 0) (y2 . 1)) (stop ((offset . "0.0%") (stop-color . "#522244"))) (stop ((offset . "7.142857142857142%") (stop-color . "#BF1119"))) (stop ((offset . "14.285714285714285%") (stop-color . "#F52A02"))) (stop ((offset . "21.428571428571427%") (stop-color . "#FC7800"))) (stop ((offset . "28.57142857142857%") (stop-color . "#FBA500"))) (stop ((offset . "35.714285714285715%") (stop-color . "#F0D300"))) (stop ((offset . "42.857142857142854%") (stop-color . "#B4BF00"))) (stop ((offset . "50.0%") (stop-color . "#4E9802"))) (stop ((offset . "57.14285714285714%") (stop-color . "#2CCB13"))) (stop ((offset . "64.28571428571429%") (stop-color . "#20D15C"))) (stop ((offset . "71.42857142857143%") (stop-color . "#0EA7CB"))) (stop ((offset . "78.57142857142857%") (stop-color . "#1E80F7"))) (stop ((offset . "85.71428571428571%") (stop-color . "#5247F7"))) (stop ((offset . "92.85714285714286%") (stop-color . "#5536D9"))) (stop ((offset . "100.0%") (stop-color . "#263498"))))) (rect ((width . 8) (height . 15.0) (x . 0) (y . 0) (x1 . 0) (x2 . 0) (y1 . 0) (y2 . 1) (fill . "url(#gradient1)") (stroke-width . 8)))) 0) nyan-create-rainbow-images(t) (defvar nyan-rainbow-animating-images (nyan-create-rainbow-images t)) (nyan-mode)
For reference, I am using Emacs master (29.0.50, updated 13th Dec 2021). Can you please suggest what could be done to fix this? I am not well versed in elisp.
Maybe move (defun nyan-wavy-rainbow-ascent ...)
block to before the function nyan-create-rainbow-frame-image
.
Actually, I suspect this patch makes Emacs 27 freeze after opening for several days. I am currently actively using it.