From: Dmitry Gutov Date: Sat, 24 Oct 2015 00:54:00 +0000 (+0300) Subject: Fix some compilation warnings X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/33f7bbcfc5e5bea982e2a408c4048162936c365f Fix some compilation warnings Closes #415 --- diff --git a/company-semantic.el b/company-semantic.el index 7445390d3..1680a60f9 100644 --- a/company-semantic.el +++ b/company-semantic.el @@ -38,6 +38,7 @@ (declare-function semantic-tag-start "semantic/tag") (declare-function semantic-tag-buffer "semantic/tag") (declare-function semantic-active-p "semantic") +(declare-function semantic-format-tag-prototype "semantic/format") (defgroup company-semantic nil "Completion backend using Semantic." @@ -113,7 +114,7 @@ Symbols are chained by \".\" or \"->\"." (save-excursion (let ((pos (point))) (goto-char (- (point) prefix-length)) - (while (looking-back "->\\|\\.") + (while (looking-back "->\\|\\." (- (point) 2)) (goto-char (match-beginning 0)) (skip-syntax-backward "w_")) (- pos (point))))) @@ -136,7 +137,7 @@ Symbols are chained by \".\" or \"->\"." (not (company-in-string-or-comment)) (or (company-semantic--grab) 'stop))) (candidates (if (and (equal arg "") - (not (looking-back "->\\|\\."))) + (not (looking-back "->\\|\\." (- (point) 2)))) (company-semantic-completions-raw arg) (company-semantic-completions arg))) (meta (funcall company-semantic-metadata-function diff --git a/company.el b/company.el index c1af40bc6..e52cc66b2 100644 --- a/company.el +++ b/company.el @@ -2212,6 +2212,9 @@ Example: \(company-begin-with '\(\"foo\" \"foobar\" \"foobarbaz\"\)\)" require-match))) callback))) +(declare-function find-library-name "find-func") +(declare-function lm-version "lisp-mnt") + (defun company-version (&optional show-version) "Get the Company version as string.