[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master cf2d50b 25/40: Change the overlay's "underlying face" in a
From: |
Dmitry Gutov |
Subject: |
[elpa] master cf2d50b 25/40: Change the overlay's "underlying face" in a better way |
Date: |
Thu, 2 Jan 2020 18:57:03 -0500 (EST) |
branch: master
commit cf2d50b81be361675a7ffec3b1854ff39c1942b0
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Change the overlay's "underlying face" in a better way
For compatibility with Emacs 27's :extend mechanics.
https://debbugs.gnu.org/38563#60
---
company.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/company.el b/company.el
index 80398a3..5350254 100644
--- a/company.el
+++ b/company.el
@@ -2545,6 +2545,7 @@ If SHOW-VERSION is non-nil, show the version in the echo
area."
right)))
(setq width (+ width margin (length right)))
+ ;; TODO: Use add-face-text-property in Emacs 24.4
(font-lock-append-text-property 0 width 'mouse-face
'company-tooltip-mouse
line)
@@ -2727,8 +2728,6 @@ If SHOW-VERSION is non-nil, show the version in the echo
area."
(let ((str (concat (when nl " \n")
(mapconcat 'identity (nreverse new) "\n")
"\n")))
- ;; Use add-face-text-property in Emacs 24.4
- (font-lock-append-text-property 0 (length str) 'face 'default str)
(when nl (put-text-property 0 1 'cursor t str))
str)))
@@ -2939,6 +2938,7 @@ Returns a negative number if the tooltip should be
displayed above point."
(overlay-put ov 'display disp)
(overlay-put ov 'after-string disp)
(overlay-put ov 'invisible t))
+ (overlay-put ov 'face 'default)
(overlay-put ov 'window (selected-window)))))
(defun company-pseudo-tooltip-guard ()
- [elpa] master 263438e 12/40: Merge pull request #930 from Zetagon/master, (continued)
- [elpa] master 263438e 12/40: Merge pull request #930 from Zetagon/master, Dmitry Gutov, 2020/01/02
- [elpa] master 3cd2b1a 13/40: Update copyright, Dmitry Gutov, 2020/01/02
- [elpa] master d943198 15/40: Add some clarification for the require-match 'never return value, Dmitry Gutov, 2020/01/02
- [elpa] master 67b6041 17/40: Merge pull request #934 from DamienCassou/typos, Dmitry Gutov, 2020/01/02
- [elpa] master 027d180 22/40: company--perform: Clarify the control flow a little bit, Dmitry Gutov, 2020/01/02
- [elpa] master 7287fa7 28/40: company-show-numbers-function: Improve the docstring, Dmitry Gutov, 2020/01/02
- [elpa] master 14f80ed 27/40: Move face definitions to a separate group, Dmitry Gutov, 2020/01/02
- [elpa] master 74b75eb 31/40: company-gtags--fetch-tags: Allow exit status 1, Dmitry Gutov, 2020/01/02
- [elpa] master 87c35d8 26/40: End group name with period, Dmitry Gutov, 2020/01/02
- [elpa] master a8d5d6f 24/40: company-files: Recognize file names right after [, Dmitry Gutov, 2020/01/02
- [elpa] master cf2d50b 25/40: Change the overlay's "underlying face" in a better way,
Dmitry Gutov <=
- [elpa] master 335eb42 30/40: Fix case when "underlying face" is from Flymake or Flycheck, Dmitry Gutov, 2020/01/02
- [elpa] master d5f3a95 29/40: add option to show number on the left, Dmitry Gutov, 2020/01/02
- [elpa] master 856c66a 32/40: company-gtags--annotation: Use regexp-quote, Dmitry Gutov, 2020/01/02
- [elpa] master c046847 33/40: Add a NEWS entry, Dmitry Gutov, 2020/01/02
- [elpa] master f3e0290 14/40: Merge branch 'master' of github.com:company-mode/company-mode, Dmitry Gutov, 2020/01/02
- [elpa] master b800fbd 23/40: company-enable-overriding-keymap: Make a defun, Dmitry Gutov, 2020/01/02
- [elpa] master 7fc6ad9 34/40: Merge pull request #941 from amosbird/master, Dmitry Gutov, 2020/01/02
- [elpa] master 0760e48 37/40: Move the entry to the proper position, Dmitry Gutov, 2020/01/02
- [elpa] master dbb4c74 35/40: Merge branch 'master' of github.com:company-mode/company-mode, Dmitry Gutov, 2020/01/02
- [elpa] master 1b00f8c 38/40: Update copyright notice, Dmitry Gutov, 2020/01/02