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

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

[elpa] 19/52: fixing let in gtags annotation


From: Dmitry Gutov
Subject: [elpa] 19/52: fixing let in gtags annotation
Date: Tue, 01 Jul 2014 11:53:14 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 7cc35ffc56a694f45e77ffee7f8f6ee7cf2eab70
Author: ksjogo <address@hidden>
Date:   Tue Jun 3 22:43:37 2014 +0200

    fixing let in gtags annotation
---
 company-gtags.el |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/company-gtags.el b/company-gtags.el
index 41a8172..d3a5421 100644
--- a/company-gtags.el
+++ b/company-gtags.el
@@ -88,9 +88,9 @@
     (candidates (company-gtags-fetch-tags arg))
     (sorted t)
     (duplicates t)
-    (annotation (let (annotation)
-                  (when (string-match (concat arg "\\((.*)\\).*") 
(get-text-property 0 'meta arg))
-                    (match-string 1 (get-text-property 0 'meta arg)))))
+    (annotation (let ((meta (get-text-property 0 'meta arg)))
+                  (when (string-match (concat arg "\\((.*)\\).*") meta)
+                    (match-string 1 meta))))
     (meta (get-text-property 0 'meta arg))
     (location (get-text-property 0 'location arg))))
 



reply via email to

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