Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(wrong-type-argument integer-or-marker-p nil) #28

Closed
raxod502 opened this issue Mar 19, 2020 · 0 comments
Closed

(wrong-type-argument integer-or-marker-p nil) #28

raxod502 opened this issue Mar 19, 2020 · 0 comments

Comments

@raxod502
Copy link
Member

In my configuration, when I type M-: <up> immediately after startup, I get this backtrace:

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  #<subr make-overlay>(nil nil nil t t)
  apply(#<subr make-overlay> nil nil (nil t t))
  make-overlay(7 7 nil t t)
  #f(compiled-function (message &rest args) "Temporarily display MESSAGE at the end of the minibuffer.\nThe text is displayed for `minibuffer-message-timeout' seconds,\nor until the next input event arrives, whichever comes first.\nEnclose MESSAGE in [...] if this is not yet the case.\nIf ARGS are provided, then pass MESSAGE through `format-message'." #<bytecode 0x35c0f27603e626d>)(#(" [Beginning of history; no preceding item]" 0 42 (read-only t face minibuffer-prompt)))
  apply(#f(compiled-function (message &rest args) "Temporarily display MESSAGE at the end of the minibuffer.\nThe text is displayed for `minibuffer-message-timeout' seconds,\nor until the next input event arrives, whichever comes first.\nEnclose MESSAGE in [...] if this is not yet the case.\nIf ARGS are provided, then pass MESSAGE through `format-message'." #<bytecode 0x35c0f27603e626d>) #(" [Beginning of history; no preceding item]" 0 42 (read-only t face minibuffer-prompt)))
  selectrum--fix-minibuffer-message(#f(compiled-function (message &rest args) "Temporarily display MESSAGE at the end of the minibuffer.\nThe text is displayed for `minibuffer-message-timeout' seconds,\nor until the next input event arrives, whichever comes first.\nEnclose MESSAGE in [...] if this is not yet the case.\nIf ARGS are provided, then pass MESSAGE through `format-message'." #<bytecode 0x35c0f27603e626d>) #(" [Beginning of history; no preceding item]" 0 42 (read-only t face minibuffer-prompt)))
  apply(selectrum--fix-minibuffer-message #f(compiled-function (message &rest args) "Temporarily display MESSAGE at the end of the minibuffer.\nThe text is displayed for `minibuffer-message-timeout' seconds,\nor until the next input event arrives, whichever comes first.\nEnclose MESSAGE in [...] if this is not yet the case.\nIf ARGS are provided, then pass MESSAGE through `format-message'." #<bytecode 0x35c0f27603e626d>) #(" [Beginning of history; no preceding item]" 0 42 (read-only t face minibuffer-prompt)))
  minibuffer-message(#(" [Beginning of history; no preceding item]" 0 42 (read-only t face minibuffer-prompt)))
  minibuffer-error-function((user-error "Beginning of history; no preceding item") "" user-error)
  #<subr read-from-minibuffer>("Eval: " nil (keymap (9 . completion-at-point) (27 keymap (9 . completion-at-point)) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the min...") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuf...") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\15" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) nil read-expression-history)
  apply(#<subr read-from-minibuffer> "Eval: " nil (keymap (9 . completion-at-point) (27 keymap (9 . completion-at-point)) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the min...") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuf...") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\15" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) nil read-expression-history)
  (let ((input (apply func prompt initial-contents keymap nil args))) (if read (progn (let ((result (read-from-string input))) (if (string-match-p "\\`[ \11\n]*\\'" (substring input (cdr result))) nil (signal 'invalid-read-syntax '("Trailing garbage following expression"))) (setq input (car result))))) input)
  radian--advice-eval-expression-save-garbage(#<subr read-from-minibuffer> "Eval: " nil (keymap (9 . completion-at-point) (27 keymap (9 . completion-at-point)) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the min...") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuf...") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\15" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) t read-expression-history)
  apply(radian--advice-eval-expression-save-garbage #<subr read-from-minibuffer> ("Eval: " nil (keymap (9 . completion-at-point) (27 keymap (9 . completion-at-point)) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the min...") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuf...") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\15" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) t read-expression-history))
  read-from-minibuffer("Eval: " nil (keymap (9 . completion-at-point) (27 keymap (9 . completion-at-point)) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the min...") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuf...") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\15" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) t read-expression-history)
  read--expression("Eval: ")
  byte-code("\301\302!\303\10!B\207" [current-prefix-arg read--expression "Eval: " eval-expression-get-print-arguments] 3)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)

I suspect that this is because Selectrum's advice on minibuffer-message fails to work correctly in the case that Selectrum wasn't loaded before the invocation of the advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant