djliden / paper-planner

An emacs org-mode planner based on a paper planner format
4 stars 0 forks source link

Wrong type argument: number-or-marker-p, nil #5

Open yibie opened 6 months ago

yibie commented 6 months ago

System: Mac OS 14.2.1 Emacs Version: 29.2 Doom Emacs Org Version: 9.6.7

When I M-x paper-planner-generate-file, it wents wrong.

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  paper-planner-generate-file()
  funcall-interactively(paper-planner-generate-file)
  call-interactively(paper-planner-generate-file record nil)
  command-execute(paper-planner-generate-file record)
  helm-M-x-execute-command(paper-planner-generate-file)
  helm-execute-selection-action-1()
  helm-execute-selection-action()
  helm-internal((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1b351061f447e84f>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (33554448 . helm-previous-source) (33554446 . helm-next-source) (33554438 . helm-previous-page) (remap keymap ... ...) (insert-state keymap ... ... "Auxiliary keymap for Insert stat...") (33554443 . helm-previous-source) (33554442 . helm-next-source) (21 . helm-delete-minibuffer-contents) (1 . move-beginning-of-line) (escape . abort-recursive-edit) (f12 . #f(compiled-function () ... #<bytecode 0x19815d1eaad680>)) (f11 . #f(compiled-function () ... #<bytecode 0x19815d1eabc680>)) (f10 . #f(compiled-function () ... #<bytecode 0x19815d1ea7f680>)) (f9 . #f(compiled-function () ... #<bytecode 0x19815d1ea6e680>)) (f8 . #f(compiled-function () ... #<bytecode 0x19815d1ea31680>)) (f7 . #f(compiled-function () ... #<bytecode 0x19815d1ea20680>)) (f6 . #f(compiled-function () ... #<bytecode 0x19815d1ea43680>)) (f5 . #f(compiled-function () ... #<bytecode 0x19815d1ea52680>)) (f4 . #f(compiled-function () ... #<bytecode 0x19815d1e615680>)) (f3 . #f(compiled-function () ... #<bytecode 0x19815d1e604680>)) (f2 . #f(compiled-function () ... #<bytecode 0x19815d1ea07680>)) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("TAB: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0xcff429f5b978e30>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode -0x1d26b5a6b35adfc9>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (33554448 . helm-previous-source) (33554446 . helm-next-source) (33554438 . helm-previous-page) (remap keymap ... ...) (insert-state keymap ... ... "Auxiliary keymap for Insert stat...") (33554443 . helm-previous-source) (33554442 . helm-next-source) (21 . helm-delete-minibuffer-contents) (1 . move-beginning-of-line) (escape . abort-recursive-edit) (f12 . #f(compiled-function () ... #<bytecode 0x19815d1eaad680>)) (f11 . #f(compiled-function () ... #<bytecode 0x19815d1eabc680>)) (f10 . #f(compiled-function () ... #<bytecode 0x19815d1ea7f680>)) (f9 . #f(compiled-function () ... #<bytecode 0x19815d1ea6e680>)) (f8 . #f(compiled-function () ... #<bytecode 0x19815d1ea31680>)) (f7 . #f(compiled-function () ... #<bytecode 0x19815d1ea20680>)) (f6 . #f(compiled-function () ... #<bytecode 0x19815d1ea43680>)) (f5 . #f(compiled-function () ... #<bytecode 0x19815d1ea52680>)) (f4 . #f(compiled-function () ... #<bytecode 0x19815d1e615680>)) (f3 . #f(compiled-function () ... #<bytecode 0x19815d1e604680>)) (f2 . #f(compiled-function () ... #<bytecode 0x19815d1ea07680>)) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("TAB: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1274bb58d4630ca5>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history)
  apply(helm-internal ((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1b351061f447e84f>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . ...) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0xcff429f5b978e30>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode -0x1d26b5a6b35adfc9>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . ...) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1274bb58d4630ca5>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history))
  helm((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1b351061f447e84f>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (33554448 . helm-previous-source) (33554446 . helm-next-source) (33554438 . helm-previous-page) (remap keymap ... ...) (insert-state keymap ... ... "Auxiliary keymap for Insert stat...") (33554443 . helm-previous-source) (33554442 . helm-next-source) (21 . helm-delete-minibuffer-contents) (1 . move-beginning-of-line) (escape . abort-recursive-edit) (f12 . #f(compiled-function () ... #<bytecode 0x19815d1eaad680>)) (f11 . #f(compiled-function () ... #<bytecode 0x19815d1eabc680>)) (f10 . #f(compiled-function () ... #<bytecode 0x19815d1ea7f680>)) (f9 . #f(compiled-function () ... #<bytecode 0x19815d1ea6e680>)) (f8 . #f(compiled-function () ... #<bytecode 0x19815d1ea31680>)) (f7 . #f(compiled-function () ... #<bytecode 0x19815d1ea20680>)) (f6 . #f(compiled-function () ... #<bytecode 0x19815d1ea43680>)) (f5 . #f(compiled-function () ... #<bytecode 0x19815d1ea52680>)) (f4 . #f(compiled-function () ... #<bytecode 0x19815d1e615680>)) (f3 . #f(compiled-function () ... #<bytecode 0x19815d1e604680>)) (f2 . #f(compiled-function () ... #<bytecode 0x19815d1ea07680>)) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("TAB: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0xcff429f5b978e30>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode -0x1d26b5a6b35adfc9>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (33554448 . helm-previous-source) (33554446 . helm-next-source) (33554438 . helm-previous-page) (remap keymap ... ...) (insert-state keymap ... ... "Auxiliary keymap for Insert stat...") (33554443 . helm-previous-source) (33554442 . helm-next-source) (21 . helm-delete-minibuffer-contents) (1 . move-beginning-of-line) (escape . abort-recursive-edit) (f12 . #f(compiled-function () ... #<bytecode 0x19815d1eaad680>)) (f11 . #f(compiled-function () ... #<bytecode 0x19815d1eabc680>)) (f10 . #f(compiled-function () ... #<bytecode 0x19815d1ea7f680>)) (f9 . #f(compiled-function () ... #<bytecode 0x19815d1ea6e680>)) (f8 . #f(compiled-function () ... #<bytecode 0x19815d1ea31680>)) (f7 . #f(compiled-function () ... #<bytecode 0x19815d1ea20680>)) (f6 . #f(compiled-function () ... #<bytecode 0x19815d1ea43680>)) (f5 . #f(compiled-function () ... #<bytecode 0x19815d1ea52680>)) (f4 . #f(compiled-function () ... #<bytecode 0x19815d1e615680>)) (f3 . #f(compiled-function () ... #<bytecode 0x19815d1e604680>)) (f2 . #f(compiled-function () ... #<bytecode 0x19815d1ea07680>)) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("TAB: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1274bb58d4630ca5>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history)
  apply(helm ((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1b351061f447e84f>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . ...) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0xcff429f5b978e30>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode -0x1d26b5a6b35adfc9>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . ...) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1274bb58d4630ca5>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history))
  helm(:sources (((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1b351061f447e84f>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (33554448 . helm-previous-source) (33554446 . helm-next-source) (33554438 . helm-previous-page) (remap keymap ... ...) (insert-state keymap ... ... "Auxiliary keymap for Insert stat...") (33554443 . helm-previous-source) (33554442 . helm-next-source) (21 . helm-delete-minibuffer-contents) (1 . move-beginning-of-line) (escape . abort-recursive-edit) (f12 . #f(compiled-function () ... #<bytecode 0x19815d1eaad680>)) (f11 . #f(compiled-function () ... #<bytecode 0x19815d1eabc680>)) (f10 . #f(compiled-function () ... #<bytecode 0x19815d1ea7f680>)) (f9 . #f(compiled-function () ... #<bytecode 0x19815d1ea6e680>)) (f8 . #f(compiled-function () ... #<bytecode 0x19815d1ea31680>)) (f7 . #f(compiled-function () ... #<bytecode 0x19815d1ea20680>)) (f6 . #f(compiled-function () ... #<bytecode 0x19815d1ea43680>)) (f5 . #f(compiled-function () ... #<bytecode 0x19815d1ea52680>)) (f4 . #f(compiled-function () ... #<bytecode 0x19815d1e615680>)) (f3 . #f(compiled-function () ... #<bytecode 0x19815d1e604680>)) (f2 . #f(compiled-function () ... #<bytecode 0x19815d1ea07680>)) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("TAB: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0xcff429f5b978e30>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode -0x1d26b5a6b35adfc9>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (33554448 . helm-previous-source) (33554446 . helm-next-source) (33554438 . helm-previous-page) (remap keymap ... ...) (insert-state keymap ... ... "Auxiliary keymap for Insert stat...") (33554443 . helm-previous-source) (33554442 . helm-next-source) (21 . helm-delete-minibuffer-contents) (1 . move-beginning-of-line) (escape . abort-recursive-edit) (f12 . #f(compiled-function () ... #<bytecode 0x19815d1eaad680>)) (f11 . #f(compiled-function () ... #<bytecode 0x19815d1eabc680>)) (f10 . #f(compiled-function () ... #<bytecode 0x19815d1ea7f680>)) (f9 . #f(compiled-function () ... #<bytecode 0x19815d1ea6e680>)) (f8 . #f(compiled-function () ... #<bytecode 0x19815d1ea31680>)) (f7 . #f(compiled-function () ... #<bytecode 0x19815d1ea20680>)) (f6 . #f(compiled-function () ... #<bytecode 0x19815d1ea43680>)) (f5 . #f(compiled-function () ... #<bytecode 0x19815d1ea52680>)) (f4 . #f(compiled-function () ... #<bytecode 0x19815d1e615680>)) (f3 . #f(compiled-function () ... #<bytecode 0x19815d1e604680>)) (f2 . #f(compiled-function () ... #<bytecode 0x19815d1ea07680>)) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode -0x129311af04954f0b>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("TAB: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1274bb58d4630ca5>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) :prompt "M-x " :buffer "*helm M-x*" :history helm-M-x-input-history :truncate-lines t)
  helm-M-x-read-extended-command([evil-collection-magit-toggle-text-minor-mode test-rmail-mime-bulk-handler vc-src-responsible-p soap-xs-complex-type-is-group--cmacro make-rxt-char-category c-ts-mode--anchor-prev-sibling archive--file-desc-mode org-clock-get-sum-start python-nav-beginning-of-defun-regexp Reduce\ To:\ to\ Cc: ob-session-async-R-indicator magit-revision-filter-files-on-follow idlwave-check-abbrev yas-x-prompt news-inews soap-operation-namespace-tag link-name magit-xref-insert-button js--find-newline-backward racket-insert-closing-bracket eglot--CompletionParams smiley-directory message-expand-name-databases transient:magit-diff-refresh:--irreversible-delete org-get-and-remove-property c-make-ml-string-opener-re-function traversed magit-list-modified-modules ada-set-environment ada-cd-command python-syntax--context-compiler-macro byte-condition-case org-export-highlight-first-table-line xref--push-markers mhtml--submode-keymap About allout-post-undo-hook org-agenda-regexp-filter-preset int-file-name xesam-engine pages-directory-mode-hook emacs-lock--set-mode ibuffer-delete-alist org-man-center-block zoo tramp-adb-connection-local-default-shell-variables erc-sasl--scram-sha-512-authenticate-server transient:magit-log:--dense sp-ignore-modes-list double-mode-hook ...])
  helm-M-x(nil)
  funcall-interactively(helm-M-x nil)
  call-interactively(helm-M-x nil nil)
  command-execute(helm-M-x)
djliden commented 5 months ago

Does it work if you launch emacs with emacs -Q, install paper-planner in a clean environment, and then try it? Just want to rule out undesired interaction with another package. What does yourpaper-planner configuration look like?

Full disclosure—this is a small project, mostly intended for my own use, working fine on my system. I can't promise to spend a lot of time debugging this. But I'm happy to look a little further if you want to provide some more details!

yibie commented 5 months ago

hi, I launch emacs with emacs -Q, and tried to install paper-planner in a clean environment.

And somthing went wrong, the warning messages shows:

⛔ Error (use-package): Cannot load paper-planner
⛔ Error (use-package): paper-planner/:catch: Symbol’s value as variable is void: org-mode-map