Mercurial > emacs
view test/ChangeLog @ 107653:bfde3c2dbef5
Make occur handle multi-line matches cleanly with context.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01280.html
* replace.el (occur-accumulate-lines): Add optional arg `pt'.
(occur-engine): Add local variables `ret', `prev-after-lines',
`prev-lines'. Use more arguments for `occur-context-lines'.
Set first elem of its returned list to `data', and the second elem
to `prev-after-lines'. Don't print the separator line.
In the end, print remaining context after-lines.
(occur-context-lines): Add new arguments `begpt', `endpt',
`lines', `prev-lines', `prev-after-lines'. Rewrite to combine
after-lines of the previous match with before-lines of the
current match and not overlap them. Return a list with two
values: the output line and the list of context after-lines.
* search.texi (Other Repeating Search): Remove line that `occur'
can not handle multiline matches.
* occur-testsuite.el (occur-tests): Add tests for context lines.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Tue, 30 Mar 2010 19:03:08 +0300 |
parents | 1039cde2a81b |
children | 6db4a0b4404d |
line wrap: on
line source
2010-03-30 Juri Linkov <juri@jurta.org> * occur-testsuite.el (occur-tests): Add tests for context lines. 2010-03-23 Juri Linkov <juri@jurta.org> * occur-testsuite.el: New file. 2010-03-10 Chong Yidong <cyd@stupidchicken.com> * Branch for 23.2. 2010-02-19 Ulf Jasper <ulf.jasper@web.de> * icalendar-testsuite.el (icalendar-testsuite--run-function-tests): Added new tests. (icalendar-testsuite--test-diarytime-to-isotime): Added another testcase. (icalendar-testsuite--test-convert-ordinary-to-ical): New. (icalendar-testsuite--test-convert-weekly-to-ical): New. (icalendar-testsuite--test-convert-yearly-to-ical): New. (icalendar-testsuite--test-convert-block-to-ical): New. (icalendar-testsuite--test-convert-cyclic-to-ical): New. (icalendar-testsuite--test-convert-anniversary-to-ical): New. 2010-01-18 Juanma Barranquero <lekktu@gmail.com> * cedet/semantic-tests.el (semanticdb-test-gnu-global) (semantic-lex-test-full-depth, semantic-symref-test-count-hits-in-tag): Fix typos in docstrings and error messages. (semanticdb-ebrowse-run-tests): Fix typos in error messages. 2010-01-14 Juanma Barranquero <lekktu@gmail.com> * cedet/cedet-utests.el (cedet-utest-log-shutdown, pulse-test): * cedet/semantic-ia-utest.el (semantic-ia-utest-error-log-list) (semantic-ia-utest-buffer-refs): Fix typos in docstrings. 2009-12-18 Ulf Jasper <ulf.jasper@web.de> * icalendar-testsuite.el (icalendar-testsuite--run-function-tests): Added icalendar-testsuite--test-parse-vtimezone. (icalendar-testsuite--test-parse-vtimezone): New. (icalendar-testsuite--do-test-cycle): Doc changes. (icalendar-testsuite--run-real-world-tests): Removed trailing whitespace -- see change of icalendar--add-diary-entry in icalendar.el. (icalendar-testsuite--run-cycle-tests): Re-enabled all tests. 2009-09-30 Glenn Morris <rgm@gnu.org> * cedet/semantic-utest-c.el: Relicense under GPLv3+. 2009-06-26 Eric Ludlam <zappo@gnu.org> * cedet/*: New unit tests, from CEDET repository. 2009-06-26 Chong Yidong <cyd@stupidchicken.com> * redisplay-testsuite.el: New file. 2009-06-21 Chong Yidong <cyd@stupidchicken.com> * Branch for 23.1. 2009-01-25 Ulf Jasper <ulf.jasper@web.de> * icalendar-testsuite.el (icalendar-testsuite--run-function-tests): Added icalendar-testsuite--test-diarytime-to-isotime. (icalendar-testsuite--test-parse-summary-and-rest): Adjusted to recent icalendar fixes. (icalendar-testsuite--test-diarytime-to-isotime): New. (icalendar-testsuite--test-create-uid): Adjusted to recent icalendar changes. 2008-11-30 Shigeru Fukaya <shigeru.fukaya@gmail.com> * bytecomp-testsuite.el: New file. 2008-10-31 Ulf Jasper <ulf.jasper@web.de> * icalendar-testsuite.el (icalendar-testsuite--run-function-tests): Added `icalendar-testsuite--test-create-uid'. (icalendar-testsuite--test-create-uid): New. 2008-06-14 Ulf Jasper <ulf.jasper@web.de> * newsticker-testsuite.el: New file. 2008-05-24 Ulf Jasper <ulf.jasper@web.de> * icalendar-testsuite.el (icalendar-testsuite--run-function-tests): Add icalendar-testsuite--test-datestring-to-isodate, icalendar-testsuite--test-datetime-to-diary-date, and icalendar-testsuite--test-calendar-style. (icalendar-testsuite--test-format-ical-event): (icalendar-testsuite--test-parse-summary-and-rest): Doc fix. Remove european-calendar-style. (icalendar-testsuite--get-ical-event): Doc fix. (icalendar-testsuite--test-first-weekday-of-year): (icalendar-testsuite--run-cycle-tests): Add doc string. (icalendar-testsuite--test-datestring-to-isodate): (icalendar-testsuite--test-datetime-to-diary-date): (icalendar-testsuite--test-calendar-style): New functions. (icalendar-testsuite--test-export): Handle iso date style. New arg INPUT-ISO. Use calendar-date-style. (icalendar-testsuite--test-import): Handle iso date style. New arg EXPECTED-ISO. Use calendar-date-style. (icalendar-testsuite--test-cycle): Handle iso date style. (icalendar-testsuite--run-import-tests): (icalendar-testsuite--run-export-tests): (icalendar-testsuite--run-real-world-tests): Add iso style tests. 2008-02-29 Glenn Morris <rgm@gnu.org> * README: New file. 2008-02-29 Ulf Jasper <ulf.jasper@web.de> * icalendar-testsuite.el: New file. ;; Local Variables: ;; coding: utf-8 ;; add-log-time-zone-rule: t ;; End: Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. ;;; arch-tag: 6f0d1c86-c141-46da-b387-cf17e38c7bf7