[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup c0937ea 053/184: Truncate summary first, then string
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup c0937ea 053/184: Truncate summary first, then string itself |
Date: |
Wed, 6 Oct 2021 00:01:05 -0400 (EDT) |
branch: elpa/popup
commit c0937eadd6018e05ec24a1d4cba504adf6587d34
Author: Takafumi Arakaki <aka.tkf@gmail.com>
Commit: Takafumi Arakaki <aka.tkf@gmail.com>
Truncate summary first, then string itself
---
popup.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/popup.el b/popup.el
index 8204ea9..703c1b9 100644
--- a/popup.el
+++ b/popup.el
@@ -404,10 +404,12 @@ 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)))
- [nongnu] branch elpa/popup created (now cf899f8), ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 93a6cce 005/184: Added commentary., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup efde704 002/184: Added README., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup cb51206 008/184: Add mouse support., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 6862a47 011/184: Fixed cascade menu corruption., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4212a36 021/184: Add tests/run-test.el, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup d669e38 025/184: Remove junk., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 6e467e2 026/184: Add Travis CI build status, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 13dbaf5 037/184: Change test helper spec, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup c0937ea 053/184: Truncate summary first, then string itself,
ELPA Syncer <=
- [nongnu] elpa/popup a49ffd0 081/184: Rename :initial-cursor keyword option to :cursor., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 5809969 041/184: Add test case for margin, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e5794f8 052/184: Truncate summary when it is too long, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 967cde1 067/184: Merge pull request #30 from tkf/summary-face, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e164f3b 098/184: fixed without ignore-errors, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 34be113 116/184: Merge pull request #78 from aki2o/fix-popup-delete, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup dcc9ee5 119/184: Merge pull request #80 from ancane/master, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 0bead7c 086/184: Use cl-lib functions instead of cl in tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 29c6db4 130/184: Pass filtering function as an argument to popup-menu*, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 5374e55 110/184: Merge pull request #73 from auto-complete/add-initial-index-test, ELPA Syncer, 2021/10/06