X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/7afffbc99040f50b032713276936511deaaf0568..7d0db9ea6232b0167d9d437fc72a9ee16a028747:/company-dabbrev-code.el diff --git a/company-dabbrev-code.el b/company-dabbrev-code.el index dcfe6ab53..9331087ab 100644 --- a/company-dabbrev-code.el +++ b/company-dabbrev-code.el @@ -42,8 +42,8 @@ In all these modes (and their derivatives) `company-dabbrev-code' will complete only symbols, not text in comments or strings. In other modes `company-dabbrev-code' will pass control to other backends \(e.g. `company-dabbrev'\). Value t means complete in all modes." - :type '(choice (repeat (symbol :tag "Major mode")) - (const tag "All modes" t))) + :type '(choice (repeat :tag "Some modes" (symbol :tag "Major mode")) + (const :tag "All modes" t))) (defcustom company-dabbrev-code-other-buffers t "Determines whether `company-dabbrev-code' should search other buffers. @@ -69,7 +69,7 @@ also `company-dabbrev-code-time-limit'." "Non-nil to ignore case when collecting completion candidates." :type 'boolean) -(defsubst company-dabbrev-code--make-regexp (prefix) +(defun company-dabbrev-code--make-regexp (prefix) (concat "\\_<" (if (equal prefix "") "\\([a-zA-Z]\\|\\s_\\)" (regexp-quote prefix))