Re: notmuch-emacs and Emacs26 (master)
I fixed this by applying the following patch. TBH, I didn't check that everything is still working as expected, but the compilation succeeds. --- emacs/notmuch.el | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index d8d3afe..ab58fcb 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -411,13 +411,13 @@ the region between points BEG and END. As a special case, if (= BEG END), FUNCTION will be applied to the result containing point BEG." - (lexical-let ((pos (notmuch-search-result-beginning beg)) - ;; End must be a marker in case function changes the - ;; text. - (end (copy-marker end)) - ;; Make sure we examine at least one result, even if - ;; (= beg end). - (first t)) + (let ((pos (notmuch-search-result-beginning beg)) + ;; End must be a marker in case function changes the + ;; text. + (end (copy-marker end)) + ;; Make sure we examine at least one result, even if + ;; (= beg end). + (first t)) ;; We have to be careful if the region extends beyond the results. ;; In this case, pos could be null or there could be no result at ;; pos. -- 2.9.3 On Thu, Apr 6, 2017 at 1:12 PM,wrote: > Hi, > > in 23.7+ version of notmuch, when building notmuch emacs part against > Emacs master, the following error pops up: > > In toplevel form: > emacs/notmuch.el:405:1:Error: Wrong type argument: listp, > cl--function-convert > > The same error reveals in all mentioned versions, ranging only in line > numbers. > > Is there any way to work it around? Or fix it in some easy way? > > regards, > Alex > > ___ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch > > ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH] test: swap order of arguments of test_expect_equal
Tomi Ollilawrites: > On Thu, Apr 06 2017, David Bremner wrote: > >> For some reason (probably inherited from git), the order arguments for >> test_expect_equal was "$output $expected"; this again matters when >> generating diffs. >> --- > > IMO these both of these should use expected - output argument order. > > But more important than that is to get > id:20170405003630.15104-1-da...@tethera.net merged soon so confusion > of output ends and if someone(tm) is doing near-future test changes > risk of collisions can be avoided. OK, pushed the first two to master. d ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH] test: swap order of arguments of test_expect_equal
On Thu, Apr 06 2017, David Bremnerwrote: > For some reason (probably inherited from git), the order arguments for > test_expect_equal was "$output $expected"; this again matters when > generating diffs. > --- IMO these both of these should use expected - output argument order. But more important than that is to get id:20170405003630.15104-1-da...@tethera.net merged soon so confusion of output ends and if someone(tm) is doing near-future test changes risk of collisions can be avoided. Tomi > > I'm less sure about this one so I didn't go through and update all of > the tests. The existing use of test_expect_equal is mostly "$output" > "$expected", which is natural enough, except that it's the opposite of > the convention for test_expect_equal_file that I thought was obvious > (I guess the latter motivated by the arguments to diff). > > test/T000-basic.sh | 4 ++-- > test/test-lib.sh | 5 +++-- > test/test.expected-output/test-verbose-no | 4 ++-- > test/test.expected-output/test-verbose-yes | 4 ++-- > 4 files changed, 9 insertions(+), 8 deletions(-) > > diff --git a/test/T000-basic.sh b/test/T000-basic.sh > index 36a7ca4c..0d6a2081 100755 > --- a/test/T000-basic.sh > +++ b/test/T000-basic.sh > @@ -52,7 +52,7 @@ suppress_diff_date() { > test_begin_subtest "Ensure that test output is suppressed unless the test > fails" > output=$(cd $TEST_DIRECTORY; NOTMUCH_TEST_QUIET= ./test-verbose 2>&1 | > suppress_diff_date) > expected=$(cat $EXPECTED/test-verbose-no | suppress_diff_date) > -test_expect_equal "$output" "$expected" > +test_expect_equal "$expected" "$output" > > test_begin_subtest "Ensure that -v does not suppress test output" > output=$(cd $TEST_DIRECTORY; NOTMUCH_TEST_QUIET= ./test-verbose -v 2>&1 | > suppress_diff_date) > @@ -60,7 +60,7 @@ expected=$(cat $EXPECTED/test-verbose-yes | > suppress_diff_date) > # Do not include the results of test-verbose in totals > rm $TEST_DIRECTORY/test-results/test-verbose > rm -r $TEST_DIRECTORY/tmp.test-verbose > -test_expect_equal "$output" "$expected" > +test_expect_equal "$expected" "$output" > > > > diff --git a/test/test-lib.sh b/test/test-lib.sh > index 988b00af..374f6da5 100644 > --- a/test/test-lib.sh > +++ b/test/test-lib.sh > @@ -566,8 +566,9 @@ test_expect_equal () > test "$#" = 2 || > error "bug in the test script: not 2 parameters to test_expect_equal" > > - output="$1" > - expected="$2" > + expected="$1" > + output="$2" > + > if ! test_skip "$test_subtest_name" > then > if [ "$output" = "$expected" ]; then > diff --git a/test/test.expected-output/test-verbose-no > b/test/test.expected-output/test-verbose-no > index 1a2ff619..07004182 100644 > --- a/test/test.expected-output/test-verbose-no > +++ b/test/test.expected-output/test-verbose-no > @@ -14,8 +14,8 @@ hello stderr > --- test-verbose.4.expected 2010-11-14 21:41:12.738189710 + > +++ test-verbose.4.output 2010-11-14 21:41:12.738189710 + > @@ -1 +1 @@ > - -b > - +a > + -a > + +b > hello stdout > hello stderr > > diff --git a/test/test.expected-output/test-verbose-yes > b/test/test.expected-output/test-verbose-yes > index d25466e9..639b7fa7 100644 > --- a/test/test.expected-output/test-verbose-yes > +++ b/test/test.expected-output/test-verbose-yes > @@ -20,6 +20,6 @@ hello stderr > --- test-verbose.4.expected 2010-11-14 21:41:06.650023289 + > +++ test-verbose.4.output 2010-11-14 21:41:06.650023289 + > @@ -1 +1 @@ > - -b > - +a > + -a > + +b > > -- > 2.11.0 > > ___ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
notmuch-emacs and Emacs26 (master)
Hi, in 23.7+ version of notmuch, when building notmuch emacs part against Emacs master, the following error pops up: In toplevel form: emacs/notmuch.el:405:1:Error: Wrong type argument: listp, cl--function-convert The same error reveals in all mentioned versions, ranging only in line numbers. Is there any way to work it around? Or fix it in some easy way? regards, Alex signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch