help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setq-local: Wrong number of arguments


From: Christopher Dimech
Subject: setq-local: Wrong number of arguments
Date: Mon, 3 May 2021 23:30:03 +0200

I am gutting an error saying

setq-local: Wrong number of arguments: (2 . 2), 4

Have no idea what it means.  Been trying to enable a typeface using a
cycle mechanism

(defvar-local crucibulum-sweep-kondor 1
  "Keeps track of the cycle state in `crucibulum-sweep'.")

(defun crucibulum-sweep ()
  "Cycles supinf and ideograms functionality."
   (interactive)

   (pcase crucibulum-sweep-kondor
      (1 (enable-ricci-notation)
         (message "Enabled: ricci notation")
         (setq-local crucibulum-sweep-kondor (1+ crucibulum-sweep-kondor)))
      (2 (enable-ideogram-vision)
         (message "Enabled: ricci notation & ideogram vision")
         (setq-local crucibulum-sweep-kondor (1+ crucibulum-sweep-kondor)))
      (_ (disable-ricci-notation)
         (disable-ideogram-vision)
         (message "Disabled: ricci notation & ideogram vision")
         (setq-local crucibulum-sweep-kondor 1)) ))







reply via email to

[Prev in Thread] Current Thread [Next in Thread]