Closed yanghaoxie closed 4 years ago
Please try newest version
I have tested in my machine in newest company-posframe, not found this problem
Sorry, I did not explain the issue rightly.
The error only occurs when you hit space
while there is a list of candidates showing up. If you hit a number to select on candidate, there is no error.
I still have this issue with the newest version.
hit "space" to insert space? you can try:
(defun my-space ()
(interactive)
(company-abort)
(self-insert-command 1))
(let ((map company-active-map))
(mapc (lambda (x) (define-key map (format "%d" x) 'ora-company-number))
(number-sequence 0 9))
(define-key map " " 'my-space)
(define-key map (kbd "<return>") nil))
Thank you very much! It works.
It seems like the problem is due to the lambda
function?
yes, argument require symbol, while lambda form is not symbol
Sounds cool although I do not really know what is going on (不明觉厉). Thanks again!. :smiley:
I have nice code borrows from abo-abo that makes it possible to use numbers to select candidates, however recent code seems "break" it. I tried to resolve this issue, but failed. Could you please have a look at this?
The error message is as follows,