[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup 51b3f59 133/184: Fix for Emacs 24.5 issue
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup 51b3f59 133/184: Fix for Emacs 24.5 issue |
Date: |
Wed, 6 Oct 2021 00:01:28 -0400 (EDT) |
branch: elpa/popup
commit 51b3f591fe68f77d1b883bb460ef446fdb0405ca
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Fix for Emacs 24.5 issue
On Emacs 24.5 or higher, string in 'after-string' of overlay which sets
'display'
property at same time does not display in some cases.
(However I don't understand well this issue.)
---
popup.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/popup.el b/popup.el
index d197f8c..392833b 100644
--- a/popup.el
+++ b/popup.el
@@ -378,16 +378,15 @@ usual."
(put-text-property start (length content) 'face face content))
(when mouse-face
(put-text-property 0 (length content) 'mouse-face mouse-face content))
- (unless (overlay-get overlay 'dangle)
- (overlay-put overlay 'display (concat prefix (substring content 0 1)))
- (setq prefix nil
- content (concat (substring content 1))))
- (overlay-put overlay
- 'after-string
- (concat prefix
- content
- scroll-bar-char
- postfix))))
+ (let ((prop (if (overlay-get overlay 'dangle)
+ 'after-string
+ 'display)))
+ (overlay-put overlay
+ prop
+ (concat prefix
+ content
+ scroll-bar-char
+ postfix)))))
(cl-defun popup-create-line-string (popup
string
- [nongnu] elpa/popup d655fd2 057/184: Merge pull request #25 from tkf/truncated-summary, (continued)
- [nongnu] elpa/popup d655fd2 057/184: Merge pull request #25 from tkf/truncated-summary, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup a33775f 047/184: Add test case:popup-menu*, popup-cascade-menu, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 6f00052 072/184: Introduce version number, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 5a892e5 063/184: Do not use summary-face for selected item, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup d1dd7c4 124/184: Merge pull request #81 from auto-complete/fix-readme-about-installation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 1f1f7a0 120/184: refactoring #80, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup bb51a53 107/184: Merge branch 'add-initial-index', ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup f06712a 125/184: Merge pull request #74 from kenbeese/fixed-display-with-invisible-overlays, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup b8874a4 121/184: bump up version, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 477649c 103/184: remove .gitmodules, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 51b3f59 133/184: Fix for Emacs 24.5 issue,
ELPA Syncer <=
- [nongnu] elpa/popup 795df55 150/184: Merge pull request #106 from auto-complete/issue-105, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup ee81f54 149/184: Fix faces propertized by under popup tooltip, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup c832145 145/184: Debian and Ubuntu installation instructions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 38156f0 182/184: Don’t use ‘mapcar’ for side effect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8a5d215 181/184: Add a LICENSE file., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 0200b53 176/184: Add br, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup cf899f8 184/184: Merge pull request #125 from phst/license, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2808cc8 001/184: Import from auto-complete repository., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 7743199 075/184: Remove meaningless let., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup b5e13a8 044/184: update README.md to tweak typos and grammar, ELPA Syncer, 2021/10/06