From: Ingo Lohmar Date: Sun, 23 Mar 2014 10:25:59 +0000 (+0100) Subject: New option company-etags-ignore-case X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/a221c4b86ac05ed3a4da27aa4660243eb6b922eb New option company-etags-ignore-case When t, find tags candidates case-insensitively --- diff --git a/company-etags.el b/company-etags.el index 270e3a255..437faad5e 100644 --- a/company-etags.el +++ b/company-etags.el @@ -40,6 +40,12 @@ buffer automatically." :type '(choice (const :tag "off" nil) (const :tag "on" t))) +(defcustom company-etags-ignore-case nil + "Ignore case for `company-etags'. This implies that candidates are +searched case-insensitively." + :type '(choice (const :tag "off" nil) + (const :tag "on" t))) + (defvar company-etags-modes '(prog-mode c-mode objc-mode c++-mode java-mode jde-mode pascal-mode perl-mode python-mode)) @@ -61,7 +67,7 @@ buffer automatically." (defun company-etags--candidates (prefix) (let ((tags-table-list (company-etags-buffer-table)) - (completion-ignore-case nil)) + (completion-ignore-case company-etags-ignore-case)) (and (or tags-file-name tags-table-list) (fboundp 'tags-completion-table) (save-excursion @@ -83,7 +89,8 @@ buffer automatically." (when (fboundp 'find-tag-noselect) (save-excursion (let ((buffer (find-tag-noselect arg))) - (cons buffer (with-current-buffer buffer (point)))))))))) + (cons buffer (with-current-buffer buffer (point)))))))) + (ignore-case company-etags-ignore-case))) (provide 'company-etags) ;;; company-etags.el ends here