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

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

[elpa] externals/company a90beffc8b 2/2: Fix byte-compilation warnings


From: ELPA Syncer
Subject: [elpa] externals/company a90beffc8b 2/2: Fix byte-compilation warnings
Date: Fri, 6 Sep 2024 12:57:53 -0400 (EDT)

branch: externals/company
commit a90beffc8b8961154a265a05ba18de6598c5503a
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    Fix byte-compilation warnings
---
 company.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index fb55f89024..cd31a07d3a 100644
--- a/company.el
+++ b/company.el
@@ -3275,6 +3275,8 @@ from the candidates list.")
                 (kill-local-variable 'face-remapping-alist)
                 (kill-local-variable 'buffer-display-table)))))))
 
+(declare-function buffer-text-pixel-size "xdisp.c")
+
 (defun company--string-pixel-width (string)
   (if (zerop (length string))
       0
@@ -3289,7 +3291,7 @@ from the candidates list.")
       (delete-region (point-min) (point-max))
       (insert string)
       (if (fboundp #'buffer-text-pixel-size)
-          ;; Emacs 29
+          ;; Emacs 29.1+
           (car (buffer-text-pixel-size nil nil t))
         (let ((wb (window-buffer))
               (hscroll (window-hscroll))



reply via email to

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