[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup 5e9043e 032/184: Bug fix for test helper
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup 5e9043e 032/184: Bug fix for test helper |
Date: |
Wed, 6 Oct 2021 00:01:01 -0400 (EDT) |
branch: elpa/popup
commit 5e9043ebea8c1873e08f786bc8754f990fc8a96e
Author: yuuki arisawa <yuuki.ari@gmail.com>
Commit: yuuki arisawa <yuuki.ari@gmail.com>
Bug fix for test helper
Change to return position instead of slice
---
tests/popup-test.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/tests/popup-test.el b/tests/popup-test.el
index b3b12ba..480c7d6 100644
--- a/tests/popup-test.el
+++ b/tests/popup-test.el
@@ -51,11 +51,13 @@ into real text. Return *text* buffer"
(defun popup-test-helper-match-points (contents)
"Return list of start of first match"
- (if (listp contents)
- (mapcar (lambda (content)
- (string-match content
- (popup-test-helper-overlays-to-text)))
- contents)))
+ (when (listp contents)
+ (let ((text (buffer-string)))
+ (mapcar
+ (lambda (content)
+ (let ((pos (string-match content text)))
+ (if (null pos) pos (1+ pos))))
+ contents))))
(defun popup-test-helper-points-to-column (points)
(mapcar
- [nongnu] elpa/popup 33dac62 127/184: Fix MELPA stable link, (continued)
- [nongnu] elpa/popup 33dac62 127/184: Fix MELPA stable link, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 982f4ec 108/184: Untabify, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8ca9644 091/184: Delete trailing spaces, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2af1c6c 129/184: Update copyright, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 730b408 113/184: Ignore byte-compiled files, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 46632ab 134/184: Merge pull request #93 from auto-complete/fix-for-24.5, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 91285c2 140/184: Update document about customize variables, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 441ee40 152/184: Merge pull request #107 from danrharms/master, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8eee9c5 148/184: Merge pull request #101 from auto-complete/needless-quote, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4265237 164/184: Fixed compatible to display line numbers mode in Emacs 26.1 or after., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 5e9043e 032/184: Bug fix for test helper,
ELPA Syncer <=
- [nongnu] elpa/popup a651fa0 090/184: Merge pull request #59 from auto-complete/add-unstrip-parameter, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup de70ea8 088/184: Merge pull request #56 from ryantm/cl-lib, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 140f12d 122/184: Update Installation section, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 80829dd 154/184: Fix for newer Cask directory hierarchy, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup df4b147 159/184: Removed looking for new maintainer., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 0eeb16d 160/184: Merge pull request #113 from EdwardBetts/spelling, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2d3226a 169/184: Comment indentation., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup fa96fe6 155/184: Count only visible lines for popup direction, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 24619f5 183/184: Merge pull request #126 from phst/mapcar, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 416049d 179/184: Fix non displayable character, ELPA Syncer, 2021/10/06