smart-mode-line icon indicating copy to clipboard operation
smart-mode-line copied to clipboard

Receiving `wrong-number-of-arguments` on the emacs' git installation

Open hjpotter92 opened this issue 3 years ago • 0 comments

The function define-obsolete-variable-alias was updated to make the when argument mandatory now. This is leading to and error because of the following call in the smart-mode-line source:

  (define-obsolete-variable-alias 'sml/time-format 'display-time-format)

The full traceback is below:

Debugger entered--Lisp error: (wrong-number-of-arguments (3 . 4) 2)
  #f(compiled-function (obsolete-name current-name when &optional docstring) "Make OBSOLETE-NAME a variable alias for CURRENT-NAME and mark it obsolete.\n\nWHEN should be a string indicating when the variable was first\nmade obsolete, for example a date or a release number.\n\nThis macro evaluates all its parameters, and both OBSOLETE-NAME\nand CURRENT-NAME should be symbols, so a typical usage would look like:\n\n  (define-obsolete-variable-alias 'foo-thing 'bar-thing \"27.1\")\n\nThis macro uses `defvaralias' and `make-obsolete-variable' (which see).\nSee the Info node `(elisp)Variable Aliases' for more details.\n\nIf CURRENT-NAME is a defcustom or a defvar (more generally, any variable\nwhere OBSOLETE-NAME may be set, e.g. in an init file, before the\nalias is defined), then the define-obsolete-variable-alias\nstatement should be evaluated before the defcustom, if user\ncustomizations are to be respected.  The simplest way to achieve\nthis is to place the alias statement before the defcustom (this\nis not necessary for aliases that are autoloaded, or in files\ndumped with Emacs).  This is so that any user customizations are\napplied before the defcustom tries to initialize the\nvariable (this is due to the way `defvaralias' works).\n\nFor the benefit of Customize, if OBSOLETE-NAME has\nany of the following properties, they are copied to\nCURRENT-NAME, if it does not already have them:\n`saved-value', `saved-variable-comment'." #<bytecode 0x1e7e89fa3bf3fc56>)('sml/time-format 'display-time-format)
  (define-obsolete-variable-alias 'sml/time-format 'display-time-format)
  eval-buffer(#<buffer  *load*-484512> nil "/home/hjpotter92/.emacs.d/elpa-28.0.50/smart-mode-..." nil t)  ; Reading at buffer position 20450
  load-with-code-conversion("/home/hjpotter92/.emacs.d/elpa-28.0.50/smart-mode-..." "/home/hjpotter92/.emacs.d/elpa-28.0.50/smart-mode-..." nil t)
  require(smart-mode-line nil nil)
  eval-buffer(#<buffer  *load*-461620> nil "/home/hjpotter92/.emacs.d/lisp/init-theme.el" nil t)  ; Reading at buffer position 2558
  load-with-code-conversion("/home/hjpotter92/.emacs.d/lisp/init-theme.el" "/home/hjpotter92/.emacs.d/lisp/init-theme.el" nil t)
  require(init-theme)
  eval-buffer(#<buffer  *load*> nil "/home/hjpotter92/.emacs.d/init.el" nil t)  ; Reading at buffer position 384
  load-with-code-conversion("/home/hjpotter92/.emacs.d/init.el" "/home/hjpotter92/.emacs.d/init.el" t t)
  load("/home/hjpotter92/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x1461542a1276d79e>) #f(compiled-function () #<bytecode -0x1f3c692ddc0ebc75>) t)
  command-line()
  normal-top-level()

hjpotter92 avatar Apr 01 '21 12:04 hjpotter92