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

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

[elpa] externals/company 934a525112 09/24: Add a FIXME


From: ELPA Syncer
Subject: [elpa] externals/company 934a525112 09/24: Add a FIXME
Date: Mon, 6 Nov 2023 09:57:37 -0500 (EST)

branch: externals/company
commit 934a525112ec979c20f90c8fec22745dd2198700
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Add a FIXME
---
 company.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/company.el b/company.el
index 14631b269a..21ccb33d8b 100644
--- a/company.el
+++ b/company.el
@@ -2816,6 +2816,9 @@ from the candidates list.")
     (string-width str)))
 
 ;; TODO: Add a bunch of tests!
+;;
+;; FIXME: Could work better with text-scale-mode.  But that requires copying
+;; face-remapping-alist into " *string-pixel-width*" and using 
default-font-width.
 (defun company-safe-pixel-substring (str from &optional to)
   (let ((from-chars (ceiling (/ from (frame-char-width))))
         (to-chars (and to (ceiling (/ to (frame-char-width)))))



reply via email to

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