kiwanami / emacs-calfw

A calendar framework for Emacs
1.17k stars 103 forks source link

Can't open calendar buffer #157

Open hochata opened 1 year ago

hochata commented 1 year ago

Hi!

Previously I used this package on Emacs 28 and I loved.

I've moved to compiling the master branch, and I tried to install it, but it fails to open.

This is the stacktrace when running cfw:open-calendar-buffer

Debugger entered--Lisp error: (wrong-type-argument cfw:component #s(cfw:component :dest #s(cfw:dest :type buffer :buffer #<buffer *cfw-calendar*> :min-func point-min :max-func point-max :width 147 :height 39 :clear-func (lambda (&rest --cl-rest--) (apply #'#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_5> '--dest-- '--window-- '--buffer-- --cl-rest--)) :before-update-func nil :after-update-func nil :select-ol nil :today-ol nil) :model ((init-date 2 27 2023) (contents-sources) (annotation-sources) (sorter . string-lessp)) :selected (2 27 2023) :view month :update-hooks nil :selection-change-hooks nil :click-hooks nil))
  signal(wrong-type-argument (cfw:component #s(cfw:component :dest #s(cfw:dest :type buffer :buffer #<buffer *cfw-calendar*> :min-func point-min :max-func point-max :width 147 :height 39 :clear-func (lambda (&rest --cl-rest--) (apply #'#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_5> '--dest-- '--window-- '--buffer-- --cl-rest--)) :before-update-func nil :after-update-func nil :select-ol nil :today-ol nil) :model ((init-date 2 27 2023) (contents-sources) (annotation-sources) (sorter . string-lessp)) :selected (2 27 2023) :view month :update-hooks nil :selection-change-hooks nil :click-hooks nil)))
  cfw:cp-get-buffer(#s(cfw:component :dest #s(cfw:dest :type buffer :buffer #<buffer *cfw-calendar*> :min-func point-min :max-func point-max :width 147 :height 39 :clear-func (lambda (&rest --cl-rest--) (apply #'#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_5> '--dest-- '--window-- '--buffer-- --cl-rest--)) :before-update-func nil :after-update-func nil :select-ol nil :today-ol nil) :model ((init-date 2 27 2023) (contents-sources) (annotation-sources) (sorter . string-lessp)) :selected (2 27 2023) :view month :update-hooks nil :selection-change-hooks nil :click-hooks nil))
  cfw:cp-update(#s(cfw:component :dest #s(cfw:dest :type buffer :buffer #<buffer *cfw-calendar*> :min-func point-min :max-func point-max :width 147 :height 39 :clear-func (lambda (&rest --cl-rest--) (apply #'#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_5> '--dest-- '--window-- '--buffer-- --cl-rest--)) :before-update-func nil :after-update-func nil :select-ol nil :today-ol nil) :model ((init-date 2 27 2023) (contents-sources) (annotation-sources) (sorter . string-lessp)) :selected (2 27 2023) :view month :update-hooks nil :selection-change-hooks nil :click-hooks nil))
  cfw:cp-new(#s(cfw:dest :type buffer :buffer #<buffer *cfw-calendar*> :min-func point-min :max-func point-max :width 147 :height 39 :clear-func (lambda (&rest --cl-rest--) (apply #'#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_5> '--dest-- '--window-- '--buffer-- --cl-rest--)) :before-update-func nil :after-update-func nil :select-ol nil :today-ol nil) ((init-date 2 27 2023) (contents-sources) (annotation-sources) (sorter . string-lessp)) nil nil)
  cfw:create-calendar-component-buffer(:date nil :buffer nil :custom-map nil :contents-sources nil :annotation-sources nil :view nil :sorter nil)
  cfw:open-calendar-buffer()
  funcall-interactively(cfw:open-calendar-buffer)
  command-execute(cfw:open-calendar-buffer record)
  execute-extended-command(nil "cfw:open-calendar-buffer" nil)
  funcall-interactively(execute-extended-command nil "cfw:open-calendar-buffer" nil)
  command-execute(execute-extended-command)

I'll try to reproduce with Emacs 29 and I'll check again with Emacs 28.3