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

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

[elpa] master ab2937a 04/78: Fix the warnings


From: Dmitry Gutov
Subject: [elpa] master ab2937a 04/78: Fix the warnings
Date: Sun, 18 Feb 2018 07:40:10 -0500 (EST)

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

    Fix the warnings
    
    Closes #695
---
 company-nxml.el | 2 +-
 company.el      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/company-nxml.el b/company-nxml.el
index 9c180e9..5afa00e 100644
--- a/company-nxml.el
+++ b/company-nxml.el
@@ -103,7 +103,7 @@
     (prefix (and (derived-mode-p 'nxml-mode)
                  rng-validate-mode
                  (and (memq (char-after) '(?' ?\" ?\  ?\t ?\n)) ;; outside word
-                      (looking-back company-nxml-in-attribute-value-regexp)
+                      (looking-back company-nxml-in-attribute-value-regexp nil)
                       (or (match-string-no-properties 4)
                           (match-string-no-properties 5)
                           ""))))
diff --git a/company.el b/company.el
index 233a1d1..7cf0da4 100644
--- a/company.el
+++ b/company.el
@@ -835,6 +835,7 @@ means that `company-mode' is always turned on except in 
`message-mode' buffers."
     (cons (+ col (window-hscroll)) row)))
 
 (defun company--col-row (&optional pos)
+  (defvar display-line-numbers) ; For Emacs < 26.
   (let (display-line-numbers)
     (company--posn-col-row (posn-at-point pos))))
 



reply via email to

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