## Next
+* `company-complete-number` can be bound to keypad numbers directly, with or
+ without modifiers.
* `company-cmake` supports expansion of `<LANG>` and `<CONFIG>` placeholders
inside of variable names.
`company-show-numbers'. When called interactively, uses the last typed
character, stripping the modifiers. That character must be a digit."
(interactive
- (list (let ((n (- (event-basic-type last-command-event) ?0)))
+ (list (let* ((type (event-basic-type last-command-event))
+ (char (if (characterp type)
+ ;; Number on the main row.
+ type
+ ;; Keypad number, if bound directly.
+ (car (last (string-to-list (symbol-name type))))))
+ (n (- char ?0)))
(if (zerop n) 10 n))))
(when (company-manual-begin)
(and (or (< n 1) (> n company-candidates-length))