minad / org-modern

:unicorn: Modern Org Style
GNU General Public License v3.0
1.56k stars 48 forks source link

redisplay--pre-redisplay-functions: (void-function static-if) [5 times] #228

Closed JoshTRN closed 3 months ago

JoshTRN commented 3 months ago

org-modern has been giving me this error lately:

Debugger entered--Lisp error: (void-function static-if)
  static-if(t (-1 . -2) -2)
  org-modern--update-label-face()
  org-modern-mode()
  run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks change-major-mode-after-body-hook (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  funcall-interactively(org-mode)
  command-execute(org-mode record)
  helm-M-x-execute-command(org-mode)
  helm-execute-selection-action-1()
  helm-execute-selection-action()
  helm-internal((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode -0x1c3312e1290a9ebd>)) (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 (C-iso-lefttab . helm-follow-action-backward) (tab . helm-execute-persistent-action) (33554440 . describe-key) (33554443 . helm-follow-action-backward) (33554442 . helm-follow-action-forward) (17 . ace-jump-helm-line) (f12 . #f(compiled-function () ... #<bytecode 0x1980e91bff9680>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980e91bfe8680>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980e91bfcf680>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980e91bfde680>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980e91bfbd680>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980e91bfac680>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980e91b823680>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980e91b832680>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980e91b851680>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980e91b840680>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980e91b867680>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980e91b876680>)) (8 . helm-next-source) ...) (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 #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_21> 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 -0xc9053054e676430>)) (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 -0x3a6a150902ce650>)) (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 (C-iso-lefttab . helm-follow-action-backward) (tab . helm-execute-persistent-action) (33554440 . describe-key) (33554443 . helm-follow-action-backward) (33554442 . helm-follow-action-forward) (17 . ace-jump-helm-line) (f12 . #f(compiled-function () ... #<bytecode 0x1980e91bff9680>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980e91bfe8680>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980e91bfcf680>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980e91bfde680>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980e91bfbd680>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980e91bfac680>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980e91b823680>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980e91b832680>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980e91b851680>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980e91b840680>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980e91b867680>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980e91b876680>)) (8 . helm-next-source) ...) (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 #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_21> 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 0x1a4710d6615d36bc>)) (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 -0x1c3312e1290a9ebd>)) (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 (C-iso-lefttab . helm-follow-action-backward) (tab . helm-execute-persistent-action) (33554440 . describe-key) (33554443 . helm-follow-action-backward) (33554442 . helm-follow-action-forward) (17 . ace-jump-helm-line) (f12 . #f(compiled-function () ... #<bytecode 0x1980e91bff9680>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980e91bfe8680>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980e91bfcf680>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980e91bfde680>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980e91bfbd680>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980e91bfac680>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980e91b823680>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980e91b832680>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980e91b851680>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980e91b840680>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980e91b867680>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980e91b876680>)) (8 . helm-next-source) ...) (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 #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_21> 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 -0xc9053054e676430>)) (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 -0x3a6a150902ce650>)) (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 (C-iso-lefttab . helm-follow-action-backward) (tab . helm-execute-persistent-action) (33554440 . describe-key) (33554443 . helm-follow-action-backward) (33554442 . helm-follow-action-forward) (17 . ace-jump-helm-line) (f12 . #f(compiled-function () ... #<bytecode 0x1980e91bff9680>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980e91bfe8680>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980e91bfcf680>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980e91bfde680>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980e91bfbd680>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980e91bfac680>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980e91b823680>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980e91b832680>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980e91b851680>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980e91b840680>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980e91b867680>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980e91b876680>)) (8 . helm-next-source) ...) (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 #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_21> 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 0x1a4710d6615d36bc>)) (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 -0x1c3312e1290a9ebd>)) (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 (C-iso-lefttab . helm-follow-action-backward) (tab . helm-execute-persistent-action) (33554440 . describe-key) (33554443 . helm-follow-action-backward) (33554442 . helm-follow-action-forward) (17 . ace-jump-helm-line) (f12 . #f(compiled-function () ... #<bytecode 0x1980e91bff9680>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980e91bfe8680>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980e91bfcf680>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980e91bfde680>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980e91bfbd680>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980e91bfac680>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980e91b823680>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980e91b832680>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980e91b851680>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980e91b840680>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980e91b867680>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980e91b876680>)) (8 . helm-next-source) ...) (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 #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_21> 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 -0xc9053054e676430>)) (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 -0x3a6a150902ce650>)) (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 (C-iso-lefttab . helm-follow-action-backward) (tab . helm-execute-persistent-action) (33554440 . describe-key) (33554443 . helm-follow-action-backward) (33554442 . helm-follow-action-forward) (17 . ace-jump-helm-line) (f12 . #f(compiled-function () ... #<bytecode 0x1980e91bff9680>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980e91bfe8680>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980e91bfcf680>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980e91bfde680>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980e91bfbd680>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980e91bfac680>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980e91b823680>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980e91b832680>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980e91b851680>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980e91b840680>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980e91b867680>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980e91b876680>)) (8 . helm-next-source) ...) (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 #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_21> 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 0x1a4710d6615d36bc>)) (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([lazy-helm/describe-char lsp-make-signature-help-options :closed-icon lsp:omnisharp-run-tests-in-class-request-column tramp-sudoedit-file-name-handler tramp-completion-handle-file-name-all-completions Set\ Slice lsp-watch-kind? python-nav-beginning-of-defun-regexp Reduce\ To:\ to\ Cc: curr-btn spacemacs-whitespace-cleanup-mode-off-hook helm-completing-read-inbuffer-default-handler yas-x-prompt gnus-article-nndoc-name &error rng-parse-validate-file C-c gnus-mime-security-details-buffer gnus-agent-group-covered-p tramp-compat-string-equal-ignore-case edebug-mode-on-hook message-expand-name-databases :EndLineNumber treemacs--button-symbol-switch nnoo-map-functions gnus-try-warping-via-registry rule-regexp ns-l-compact-sequence *table--cell-kill-paragraph python-syntax--context-compiler-macro gdb-thread-number perspectives org-table-get-range inactive? About lsp:set-rename-params-uri? nnimap-status-message gnus-summary-limit-to-marks treemacs-button nnmail-message-id-cache-file treemacs-python-executable article-fill-long-lines smime-buffer-as-string-region no-truncate lsp-inlay-hint-face org-at-keyword-p image-dired-list-tags bibtex-text-in-string helm-debug-output-function ...])
  helm-M-x(nil)
  funcall-interactively(helm-M-x nil)
  call-interactively(helm-M-x)
  (let ((completion-styles completion-styles)) (add-to-list 'completion-styles 'flex t) (call-interactively 'helm-M-x))
  spacemacs/helm-M-x-fuzzy-matching()
  funcall-interactively(spacemacs/helm-M-x-fuzzy-matching)
  command-execute(spacemacs/helm-M-x-fuzzy-matching)

I'm not sure if it's because of some conflicting packages exactly or what. I'm on Emacs 30. Any guidance would be much appreciated.

Thank you.

JoshTRN commented 3 months ago

Update:

I renamed the static-if to just if and everything seems to be working fine. Does anyone know what happened to the static-if function?

Context:

(defun org-modern--update-label-face ()
  "Update border of the `org-modern-label' face."
  (set-face-attribute
   'org-modern-label nil
   :box
   (when org-modern-label-border
     (let ((border (if (eq org-modern-label-border 'auto)
                       (max 2 (cond
                               ((integerp line-spacing)
                                line-spacing)
                               ((floatp line-spacing)
                                (ceiling (* line-spacing (frame-char-height))))
                               (t (/ (frame-char-height) 10))))
                     org-modern-label-border)))
       (list :color (face-attribute 'default :background nil t)
             :line-width
             ;; Emacs 28 supports different line horizontal and vertical line widths
             (if (>= emacs-major-version 28) ;; Changed this line
                 (cons -1 (- border))
               (- border)))))))