summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/xref-resources/file3.txt
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2021-03-08 04:25:15 +0200
committerDmitry Gutov <dgutov@yandex.ru>2021-03-08 04:25:15 +0200
commit8e103ebef12bb723723c7e6ec8e1053e86878a5b (patch)
treef553abbbcbd46b28e81b5fb3693b49c419e74e1c /test/lisp/progmodes/xref-resources/file3.txt
parent05adcefa1f615a6e944322755ce35b75c0dfe24d (diff)
downloademacs-8e103ebef12bb723723c7e6ec8e1053e86878a5b.tar.gz
Speed up xref rendering for matches on very long lines
* lisp/progmodes/xref.el (xref--insert-xrefs): Cut up the current line into pieces here for multiple matches's summaries, so that xref--insert-xrefs can do less work (bug#46859). (xref--insert-xrefs): Do less work. (xref--outdated-p): Update accordingly to how the summary creation logic changed. (xref--buf-pairs-iterator): Update to the new calling convention. (xref-location-column): Effectively rename back to xref-file-location-column since the generic version is now unused. * test/lisp/progmodes/xref-tests.el (xref-matches-in-directory-finds-two-matches-on-the-same-line) (xref-matches-in-directory-finds-an-empty-line-regexp-match): Adjust to the xref-location-column change. (xref-matches-in-files-trims-summary-for-matches-on-same-line): New test. * test/lisp/progmodes/xref-resources/file1.txt: Change contents slightly to test the new xref--outdated-p code.
Diffstat (limited to 'test/lisp/progmodes/xref-resources/file3.txt')
-rw-r--r--test/lisp/progmodes/xref-resources/file3.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/progmodes/xref-resources/file3.txt b/test/lisp/progmodes/xref-resources/file3.txt
new file mode 100644
index 00000000000..6283185910d
--- /dev/null
+++ b/test/lisp/progmodes/xref-resources/file3.txt
@@ -0,0 +1 @@
+ match some words match more match ends here