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

company-complete results in (evil-repeat-post-hook): (wrong-type-argument number-or-marker-p nil) #1850

Open
milanglacier opened this issue Dec 17, 2023 · 0 comments

Comments

@milanglacier
Copy link

milanglacier commented Dec 17, 2023

Issue type

  • Bug report

Environment

Emacs version:
29.1.5
Operating System:
macos ventura 13.4
Evil version:
1.15.0
Evil installation type:
MELPA
Graphical/Terminal:
graphical
Tested in a make emacs session (see CONTRIBUTING.md):
No

Reproduction steps

  • Start Emacs
  1. starting with emacs -Q -nw -l ~/.emacs.d/minimal-init.el
  2. the content of ~/.emacs.d/minimal-init.el is as following:
(progn
    (require 'package)

    (setq package-list '(evil company))
    (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
    (package-initialize)

    (unless package-archive-contents
        (package-refresh-contents))

    (dolist (package package-list)
        (unless (package-installed-p package)
            (package-install package)))

    (setq warning-minimum-level :error)

    (dolist (fun '(menu-bar-mode tool-bar-mode scroll-bar-mode))
        (when (fboundp fun)
            (funcall fun -1)))

    (unless (display-graphic-p)
        (xterm-mouse-mode 1))

    (setq scroll-step 1)
    (setq scroll-conservatively 10000)
    (setq auto-window-vscroll nil)

    (evil-mode 1)
    (global-company-mode)
    (setq company-frontends '(company-pseudo-tooltip-frontend company-echo-metadata-frontend))
    ;; set M-i as company-complete
    (define-key company-mode-map (kbd "M-i") 'company-complete)
    )
  1. In the scratch buffer, type thi and enter the normal state.
  2. Entert insert state again, then type M-i.
  3. C-x b *Messages*, see the following error: Error in post-command-hook (evil-repeat-post-hook): (wrong-type-argument number-or-marker-p nil)`

Expected behavior

the error should not appear

Actual behavior

get the error: Error in post-command-hook (evil-repeat-post-hook): (wrong-type-argument number-or-marker-p nil)

Further notes

Here is a reproduction video

Screen.Recording.2023-12-17.at.17.25.42.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant