Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-04-07 Thread Skip Collins
On Thu, Mar 30, 2017 at 6:50 AM, Nicolas Goaziou wrote: > Thank you. Unfortunately, there is not much to do with this. Could you > do some debugging when running the faulty test? It may come from > something in your configuration. I think I figured it out. During the

Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-30 Thread Nicolas Goaziou
Hello, Skip Collins writes: > Test test-org/fuzzy-links backtrace: > (if (unwind-protect (setq value-10839 (let ((file (make-temp-file "o > (let (form-description-10840) (if (unwind-protect (setq value-10839 > (let ((value-10839 (cl-gensym

Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-29 Thread Skip Collins
Test test-org/fuzzy-links backtrace: (if (unwind-protect (setq value-10839 (let ((file (make-temp-file "o (let (form-description-10840) (if (unwind-protect (setq value-10839 (let ((value-10839 (cl-gensym "ert-form-evaluation-aborted-"))) (let (lambda nil (let ((value-10802 (cl-gensym

Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-29 Thread Nicolas Goaziou
Hello, Matt Lundin writes: > Thanks Nicolas. Yes, it now works with multi-line searches that do not > contain blank lines. > > I think there are some instances in which one might want to search > across blank lines, such as when one captures a region that contains one > or

Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-29 Thread Nicolas Goaziou
Hello, Skip Collins writes: > 1 unexpected results: > >FAILED test-org/fuzzy-links This is not the case at http://www.randomsample.de:4457/waterfall The error report would help. Regards, -- Nicolas Goaziou

Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-28 Thread Skip Collins
On Mon, Mar 27, 2017 at 7:37 AM, Nicolas Goaziou wrote: > Fixed, hopefully. Ran 718 tests, 717 results as expected, 1 unexpected (2017-03-28 17:27:55-0400) 9 expected failures 1 unexpected results: FAILED test-org/fuzzy-links

Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-27 Thread Matt Lundin
Nicolas Goaziou writes: >> The problem, I think, is the regexp construction in org-link-search. >> This was introduced back in August of 2015 with commit >> cfe5bc97f8b18ccbf49d0764746c7563ce8d29da. >> >> The problematic line in org.el is 10951: >> >> (s-multi-re

Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-27 Thread Nicolas Goaziou
Hello, Matt Lundin writes: > Matt Lundin writes: > >> >> Create an active region covering the third sentence and select the >> org-capture "n" template, which creates the following link: >> >> * Test >> >>

Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-26 Thread Matt Lundin
Matt Lundin writes: > > Create an active region covering the third sentence and select the > org-capture "n" template, which creates the following link: > > * Test > >

[O] [BUG] org-link-search fails if search string contains new lines

2017-03-26 Thread Matt Lundin
Following links fails to locate the appropriate location in text files if the search string in the link contains new lines. Steps to reproduce: /usr/bin/emacs -Q ~/config/minimal.el where minimal.el contains... --8<---cut here---start->8--- (add-to-list