emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 33f7bbc 077/173: Fix some compilation warnings


From: Dmitry Gutov
Subject: [elpa] master 33f7bbc 077/173: Fix some compilation warnings
Date: Thu, 23 Jun 2016 00:28:39 +0000 (UTC)

branch: master
commit 33f7bbcfc5e5bea982e2a408c4048162936c365f
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Fix some compilation warnings
    
    Closes #415
---
 company-semantic.el |    5 +++--
 company.el          |    3 +++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/company-semantic.el b/company-semantic.el
index 7445390..1680a60 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 c1af40b..e52cc66 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.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]