X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/a73cbc5c6f456d875d18e232998a2d0767747dc0..fae643a95ed3ba2cefbe70c94d16da7b17877dca:/packages/company/company-gtags.el diff --git a/packages/company/company-gtags.el b/packages/company/company-gtags.el index d98b04f44..6b4e39942 100644 --- a/packages/company/company-gtags.el +++ b/packages/company/company-gtags.el @@ -1,6 +1,6 @@ -;;; company-gtags.el --- a company-mode completion back-end for GNU Global +;;; company-gtags.el --- company-mode completion back-end for GNU Global -;; Copyright (C) 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 2009-2011 Free Software Foundation, Inc. ;; Author: Nikolaj Schumacher @@ -19,16 +19,23 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . + +;;; Commentary: +;; + ;;; Code: (require 'company) (eval-when-compile (require 'cl)) +(defgroup company-gtags nil + "Completion back-end for GNU Global." + :group 'company) + (defcustom company-gtags-executable (executable-find "global") - "*Location of GNU global executable" - :type 'string - :group 'company) + "Location of GNU global executable." + :type 'string) (define-obsolete-variable-alias 'company-gtags-gnu-global-program-name @@ -66,18 +73,18 @@ ;;;###autoload (defun company-gtags (command &optional arg &rest ignored) - "A `company-mode' completion back-end for GNU Global." + "`company-mode' completion back-end for GNU Global." (interactive (list 'interactive)) (case command - ('interactive (company-begin-backend 'company-gtags)) - ('prefix (and company-gtags-executable - (memq major-mode company-gtags-modes) - (not (company-in-string-or-comment)) - (company-gtags--tags-available-p) - (or (company-grab-symbol) 'stop))) - ('candidates (company-gtags-fetch-tags arg)) - ('sorted t) - ('location (company-gtags-location arg)))) + (interactive (company-begin-backend 'company-gtags)) + (prefix (and company-gtags-executable + (memq major-mode company-gtags-modes) + (not (company-in-string-or-comment)) + (company-gtags--tags-available-p) + (or (company-grab-symbol) 'stop))) + (candidates (company-gtags-fetch-tags arg)) + (sorted t) + (location (company-gtags-location arg)))) (provide 'company-gtags) ;;; company-gtags.el ends here