1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
emacs/test/lisp/progmodes
Dmitry Gutov 8e103ebef1 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.
2021-03-08 04:25:15 +02:00
..
cperl-mode-resources cperl-mode: Improve detection of index entries for imenu 2021-02-17 00:54:38 +01:00
flymake-resources
js-resources Convert manual js indent tests to unit tests 2020-10-18 02:28:22 +02:00
ruby-mode-resources ruby-syntax-propertize: Fix certain cases following :: 2021-02-02 03:48:04 +02:00
xref-resources Speed up xref rendering for matches on very long lines 2021-03-08 04:25:15 +02:00
asm-mode-tests.el Fix fill-paragraph in asm-mode 2021-01-28 07:34:10 +01:00
autoconf-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
bat-mode-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-mode-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
compile-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cperl-mode-tests.el cperl-mode: Improve detection of index entries for imenu 2021-02-17 00:54:38 +01:00
elisp-mode-tests.el Make unused `Buffer-menu-sort' alias obsolete 2021-02-17 20:20:49 +01:00
etags-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
f90-tests.el ; * test/lisp/progmodes/f90-tests.el: Remove stale comment. 2021-02-26 17:11:49 +01:00
flymake-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
gdb-mi-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
glasses-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
js-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
opascal-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pascal-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
perl-mode-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ps-mode-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
python-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ruby-mode-tests.el ruby-add-log-current-method: Support methods with symbolic names 2021-01-04 21:13:53 +02:00
scheme-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sql-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
subword-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
tcl-tests.el Fix tcl-mode indentation of namespaced code 2021-02-08 07:33:49 +01:00
xref-tests.el Speed up xref rendering for matches on very long lines 2021-03-08 04:25:15 +02:00