[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup 52059d6 055/184: Merge pull request #24 from tkf/sum
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup 52059d6 055/184: Merge pull request #24 from tkf/summary-overflow |
Date: |
Wed, 6 Oct 2021 00:01:06 -0400 (EDT) |
branch: elpa/popup
commit 52059d698494b0a0e48350aa98fb5e81d7bc8eed
Merge: 4e8824e b8c1cb4
Author: Tomohiro Matsuyama <tomo@cx4a.org>
Commit: Tomohiro Matsuyama <tomo@cx4a.org>
Merge pull request #24 from tkf/summary-overflow
Summary overflow
---
popup.el | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/popup.el b/popup.el
index 34d3ad8..e4c79a7 100644
--- a/popup.el
+++ b/popup.el
@@ -404,17 +404,22 @@ usual."
(defun* popup-create-line-string (popup string &key margin-left margin-right
symbol summary)
(let* ((popup-width (popup-width popup))
(summary-width (string-width summary))
- (content-width (- popup-width
- (if (> summary-width 0)
- (+ summary-width 2)
- 0)))
+ (content-width (max
+ (min popup-width (string-width string))
+ (- popup-width
+ (if (> summary-width 0)
+ (+ summary-width 2)
+ 0))))
(string (car (popup-substring-by-width string content-width)))
(string-width (string-width string))
- (spacing (max (- popup-width string-width summary-width) 0)))
+ (spacing (max (- popup-width string-width summary-width)
+ (if (> popup-width string-width) 1 0))))
(concat margin-left
string
(make-string spacing ? )
- summary
+ (car
+ (popup-substring-by-width
+ summary (max (- popup-width string-width spacing) 0)))
symbol
margin-right)))
- [nongnu] elpa/popup 47008e1 135/184: Allow the user to specify a custom function to build the regexp in isearch, (continued)
- [nongnu] elpa/popup 47008e1 135/184: Allow the user to specify a custom function to build the regexp in isearch, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 3d62f15 161/184: Merge pull request #112 from PuercoWork/patch-1, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup cf2cefe 166/184: Fixed compile warning, free variable from display line numbers., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 51f4430 171/184: Fixed to not use emacs 26.1 as dep., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 28762fc 138/184: Improve definition, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 88efff5 010/184: Not to insert newlines., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup bb4bb26 019/184: git mv popup-test.el tests/popup-interactive-test.el, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 07901c6 023/184: Merge pull request #15 from tkf/travis-ci, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 31779da 028/184: Fix test case bug when batch mode., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4a31175 033/184: Split setup macro to support extra setup, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 52059d6 055/184: Merge pull request #24 from tkf/summary-overflow,
ELPA Syncer <=
- [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