We use various things that were not available in earlier versions.
---
emacs/notmuch-pkg.el.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/emacs/notmuch-pkg.el.tmpl b/emacs/notmuch-pkg.el.tmpl
index de97baac..3eb0e04e 100644
--- a/emacs/notmuch-pkg.el.tmpl
+++
Starting with Emacs 27 the old `cl' implementation is finally
considered obsolete. Previously its use was strongly discouraged
at run-time but one was still allowed to use it at compile-time.
For the most part the transition is very simple and boils down to
adding the "cl-" prefix to some
controversial, but am limiting this initial patch series to just
the cl-lib commit and a few harmless fixes.
Jonas Bernoulli (4):
gitignore: Ignore generated python-cffi files
emacs: Declare function notmuch-show-get-message-id
emacs: Explicitly depend on Emacs 24
emacs: Use `cl-lib
---
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index 468b660a..1c8705ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ tags
/releases
/.stamps
*.stamp
+/bindings/python-cffi/build/
--
2.26.0
---
emacs/notmuch-crypto.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el
index 4035ee37..30425fbc 100644
--- a/emacs/notmuch-crypto.el
+++ b/emacs/notmuch-crypto.el
@@ -24,6 +24,8 @@
(require 'epg)
(require 'notmuch-lib)
Nice to run into you.
Do you contribute to *all* the killer apps? ;D
Kyle Meyer writes:
> [ in case it's useful in the future ]
> I've recently set up a public-inbox archive of notmuch
Absolutely! In fact I already had a bookmark about that somewhere.
> From there, you can easily download an
Starting with Emacs 27 the old `cl' implementation is finally
considered obsolete. Previously its use was strongly discouraged
at run-time but one was still allowed to use it at compile-time.
For the most part the transition is very simple and boils down to
adding the "cl-" prefix to some
David Bremner writes:
> A quick git grep suggests there are still cl-isms in the test-harness.
I've fixed that now, see v2.
> I get 3 test failures
I am having issues running the tests. Currently
notmuch-mua-send-and-exit in emacs_deliver_message from test-lib.sh
just hangs for me. I
Starting with Emacs 27 the old `cl' implementation is finally
considered obsolete. Previously its use was strongly discouraged
at run-time but one was still allowed to use it at compile-time.
For the most part the transition is very simple and boils down to
adding the "cl-" prefix to some
As recommended by the byte-compiler.
---
test/emacs-attachment-warnings.el | 23 +++
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/test/emacs-attachment-warnings.el
b/test/emacs-attachment-warnings.el
index a23692d7..8f4918ef 100644
---
---
test/Makefile.local | 4
1 file changed, 4 insertions(+)
diff --git a/test/Makefile.local b/test/Makefile.local
index 47244e8f..3c043717 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -78,6 +78,10 @@ endif
check: test
+compile-elisp-tests:
+ $(EMACS) --batch -L
I have fixed the remaining issues and added two small commits.
See v3.
> Or of course you can/should get the tests running locally.
The problem was that there are incompatible changes in Emacs 27.
I am using Emacs 26 for the time being but will look into these
breaking changes later. The
> As of Emacs 27, Emacs will start issuing deprecation warnings for
> packages that load cl.el. I _think_ it's just a matter of replacing
> functions and macros from cl.el with cl- prefixed ones, but I
> haven't really investigated.
> If someone is looking for an easy way to contribute, this
David Bremner writes:
> Jonas Bernoulli writes:
>
>> +compile-elisp-tests:
>> +$(EMACS) --batch -L emacs -L test -l notmuch.el -l test-lib.el -f \
>> +batch-byte-compile test/*.el
>> +
>
> Can you explain a bit (perhaps in an updated commit message) w
David Bremner writes:
> Applied v3 to master.
Thanks.
Cheers!
Jonas
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org
Tomi Ollila writes:
> On Sun, Jul 26 2020, Jonas Bernoulli wrote:
>> @@ -473,7 +473,7 @@ (defun notmuch-mua-new-forward-messages (messages
>> prompt-for-sender)
>>(when (or prompt-for-sender notmuch-always-prompt-for-sender)
>> (list (cons 'From (no
Tomi Ollila writes:
> Series looks good to me (as far as I can tell). That one comment
> indentation in id:20200726165818.400-4-jo...@bernoul.li is what popped up
> in my review (I did review only diff patch, and don't know how that
> actually look -- like in those spaces after do in my previous
It's shorter. That's it pretty much.
---
emacs/notmuch-hello.el | 2 +-
emacs/notmuch-lib.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 89e03c36..1c084bf7 100644
--- a/emacs/notmuch-hello.el
+++
It's a bit weird to avoid having to write the "(setq ... )" more than
once, just because we can. In a language that uses '=' for the same
purpose we also happily use that once per assignment.
While there are no benefit to using just one 'setq' there are some
drawbacks. It is not always clear on
---
emacs/coolj.el | 16 ++---
emacs/notmuch-address.el | 18 +++---
emacs/notmuch-compat.el| 86 -
emacs/notmuch-draft.el | 18 +++---
emacs/notmuch-hello.el | 24 +++
emacs/notmuch-lib.el | 56
---
emacs/notmuch-tag.el | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el
index e71de041..1cef17e1 100644
--- a/emacs/notmuch-tag.el
+++ b/emacs/notmuch-tag.el
@@ -32,9 +32,10 @@ (require 'crm)
(require 'notmuch-lib)
I have addressed the feedback from v1, making a change
to commit (1), leading to a minor conflict in commit (2).
Otherwise this is unchanged.
Cheers,
Jonas
Jonas Bernoulli (23):
emacs: Shorten long lines
emacs: Remove excess empty lines
1 emacs: Fix indentation
emacs: Closing
---
emacs/notmuch-lib.el | 6 ++
emacs/notmuch-show.el | 19 ---
emacs/notmuch-tree.el | 4 ++--
emacs/notmuch.el | 6 ++
4 files changed, 14 insertions(+), 21 deletions(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 7994d5ad..f8958a91 100644
Putting the COND and THEN parts on the same line but ELSE on a
separate line makes it harder to determine if there actually is
an ELSE part.
---
emacs/notmuch-lib.el | 6 --
emacs/notmuch-tag.el | 3 ++-
emacs/notmuch-tree.el | 3 ++-
3 files changed, 8 insertions(+), 4 deletions(-)
diff
---
emacs/coolj.el | 2 +-
emacs/notmuch-address.el | 38 +++--
emacs/notmuch-company.el | 17 --
emacs/notmuch-crypto.el | 16 +++---
emacs/notmuch-draft.el | 12 ++--
emacs/notmuch-hello.el | 43 ++-
emacs/notmuch-jump.el
Doing that is better than using an `autoload' form because the latter
may result in dependencies getting hidden and indeed it turns out we
have to declare `notmuch-jump' in "notmuch-tag.el".
---
emacs/notmuch-jump.el | 1 +
emacs/notmuch-tag.el | 3 +--
2 files changed, 2 insertions(+), 2
It was defined as such for a decade; ever since
a56010ac8b89a2489eee5c78469f05cee85ec858 but there
wasn't a reason to do that then nor is there now.
---
emacs/notmuch-hello.el | 1 -
1 file changed, 1 deletion(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index
Also do so for some 'if' forms that lack an ELSE part.
Even go as far as using 'and' and 'not' instead of 'unless'.
---
emacs/coolj.el | 12 +++---
emacs/notmuch-address.el | 72 ++--
emacs/notmuch-crypto.el | 2 +-
emacs/notmuch-draft.el
Most people who write lots of lisp tend to only sparsely use empty
"separator" lines within forms. In lisp they feel unnecessary and
since most files stick to this convention we get a bit confused
when there are extra empty lines. It feels like the s-expressions
are falling into pieces.
All of
- The first sentence should fit on the first line in full. This is
even the case when that causes the line to get a bit long. If it
gets very long, then it should be made shorter.
- Even even the second sentence would fit on the first line, if it
just provides some details, then it
Also use 'unless' in a few cases where previously 'if' was used with
'not' but without an ELSE part.
---
emacs/notmuch-hello.el | 6 +++---
emacs/notmuch-mua.el| 4 ++--
emacs/notmuch-parser.el | 2 +-
emacs/notmuch-show.el | 3 +--
emacs/notmuch-tag.el| 4 ++--
emacs/notmuch-tree.el
The major mode used for shell scripts is named 'sh-mode'.
'shell-mode' on the other hand implements an interactive
shell in emacs-lisp.
---
.dir-locals.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.dir-locals.el b/.dir-locals.el
index fc75ae61..b3ddffe8 100644
---
Fix it to consistently match the style we have configured in
".dir-locals.el".
---
test/test-lib.sh | 36 ++--
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 31c858d1..167fa621 100644
--- a/test/test-lib.sh
---
emacs/notmuch-company.el | 36 +++--
emacs/notmuch-compat.el | 15 ++
emacs/notmuch-crypto.el | 2 +-
emacs/notmuch-lib.el | 2 --
emacs/notmuch-maildir-fcc.el | 39 ++--
emacs/notmuch-print.el
---
emacs/make-deps.el | 3 ++-
emacs/notmuch-lib.el| 8 +++-
emacs/notmuch-parser.el | 9 +++--
emacs/notmuch-show.el | 18 +++---
emacs/rstdoc.el | 9 -
test/test-lib.el| 31 +++
6 files changed, 34
---
NEWS | 2 +-
bindings/python-cffi/notmuch2/__init__.py | 2 +-
bindings/python-cffi/notmuch2/_base.py | 6 +++---
bindings/python-cffi/notmuch2/_database.py | 8
bindings/python-cffi/notmuch2/_message.py | 4 ++--
---
emacs/notmuch-address.el | 8 ++--
emacs/notmuch-compat.el | 6 +--
emacs/notmuch-hello.el | 8 ++--
emacs/notmuch-jump.el| 54 ++---
emacs/notmuch-lib.el | 10 ++--
emacs/notmuch-mua.el | 24 +-
emacs/notmuch-query.el | 4 +-
This function is being autoloaded using an autoload cookie, so it
shouldn't additionally be autoloaded using an `autoload' form.
When building libraries we don't actually load the autoloads file and
dropping the `autoload' form results in an error, which reveals a so
far unspecified dependency:
It is done synchronously and it can take a while,
so we should let the user know what is going on.
---
emacs/notmuch-lib.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index fc76fd67..069a19e9 100644
--- a/emacs/notmuch-lib.el
Use `makefile-gmake-mode' instead of `makefile-mode' because the
former also highlights ifdef et al. while the latter does not.
"./Makefile.global" and one "Makefile.local" failed to specify any
major mode at all but doing so is necessary because Emacs does not
automatically figure out that these
Since Emacs 27 each face has to be explicitly configured to "extend
to the edge of the window". Without doing that the face used for
the newline character only has an effect that spans "one character"
(i.e. it looks like there is a single trailing space character).
We don't want that so extend
Use `cl-letf*' instead.
---
test/T310-emacs.sh | 14 --
test/test-lib.el | 8
2 files changed, 8 insertions(+), 14 deletions(-)
diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh
index 5f74305d..78ac19a8 100755
--- a/test/T310-emacs.sh
+++ b/test/T310-emacs.sh
@@ -40,12
- Since Emacs 25 comes with `load-prefer-newer' we can remove the
complicated variant of the advice, which implemented a poorman's
version of that.
- Since Emacs 25 comes with the new advice mechanism, we can use
that now for the simple variant of the advice, which just informs
about the
Also because we now only support Emacs >= 25,
we can remove the check for Emacs >= 24.
---
emacs/notmuch-lib.el | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 91c94781..118faf1e 100644
--- a/emacs/notmuch-lib.el
+++
---
emacs/notmuch-mua.el | 14 --
test/test-lib.el | 17 -
2 files changed, 31 deletions(-)
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index f321e0c6..dcddca76 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -425,20 +425,6 @@
It's shorter. That's it pretty much.
---
emacs/notmuch-hello.el | 2 +-
emacs/notmuch-lib.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 876d8ef1..c127bba9 100644
--- a/emacs/notmuch-hello.el
+++
Just use `read-char-choice', which existed since Emacs 24.1.
---
emacs/notmuch-compat.el | 56
emacs/notmuch-maildir-fcc.el | 4 +--
2 files changed, 2 insertions(+), 58 deletions(-)
diff --git a/emacs/notmuch-compat.el b/emacs/notmuch-compat.el
index
Most people who write lots of lisp tend to only sparsely use empty
"separator" lines within forms. In lisp they feel unnecessary and
since most files stick to this convention we get a bit confused
when there are extra empty lines. It feels like the s-expressions
are falling into pieces.
All of
Doing that is better than using an `autoload' form because the latter
may result in dependencies getting hidden and indeed it turns out we
have to declare `notmuch-jump' in "notmuch-tag.el".
---
emacs/notmuch-jump.el | 1 +
emacs/notmuch-tag.el | 3 +--
2 files changed, 2 insertions(+), 2
---
emacs/coolj.el | 2 +-
emacs/notmuch-address.el | 38 +++--
emacs/notmuch-company.el | 17 --
emacs/notmuch-crypto.el | 16 +++---
emacs/notmuch-draft.el | 12 ++--
emacs/notmuch-hello.el | 43 ++-
emacs/notmuch-jump.el
---
emacs/notmuch-address.el | 8 ++--
emacs/notmuch-compat.el | 6 +--
emacs/notmuch-hello.el | 8 ++--
emacs/notmuch-jump.el| 54 ++---
emacs/notmuch-lib.el | 10 ++--
emacs/notmuch-mua.el | 24 +-
emacs/notmuch-query.el | 4 +-
It was defined as such for a decade; ever since
a56010ac8b89a2489eee5c78469f05cee85ec858 but there
wasn't a reason to do that then nor is there now.
---
emacs/notmuch-hello.el | 1 -
1 file changed, 1 deletion(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index
This function is being autoloaded using an autoload cookie, so it
shouldn't additionally be autoloaded using an `autoload' form.
When building libraries we don't actually load the autoloads file and
dropping the `autoload' form results in an error, which reveals a so
far unspecified dependency:
---
emacs/coolj.el | 16 ++---
emacs/notmuch-address.el | 18 +++---
emacs/notmuch-compat.el| 86 -
emacs/notmuch-draft.el | 18 +++---
emacs/notmuch-hello.el | 24 +++
emacs/notmuch-lib.el | 56
- The first sentence should fit on the first line in full. This is
even the case when that causes the line to get a bit long. If it
gets very long, then it should be made shorter.
- Even even the second sentence would fit on the first line, if it
just provides some details, then it
The major mode used for shell scripts is named 'sh-mode'.
'shell-mode' on the other hand implements an interactive
shell in emacs-lisp.
---
.dir-locals.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.dir-locals.el b/.dir-locals.el
index fc75ae61..b3ddffe8 100644
---
It's a bit weird to avoid having to write the "(setq ... )" more than
once, just because we can. In a language that uses '=' for the same
purpose we also happily use that once per assignment.
While there are no benefit to using just one 'setq' there are some
drawbacks. It is not always clear on
It is done synchronously and it can take a while,
so we should let the user know what is going on.
---
emacs/notmuch-lib.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 4496ecd2..6ff351d7 100644
--- a/emacs/notmuch-lib.el
---
emacs/notmuch-tag.el | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el
index e71de041..1cef17e1 100644
--- a/emacs/notmuch-tag.el
+++ b/emacs/notmuch-tag.el
@@ -32,9 +32,10 @@ (require 'crm)
(require 'notmuch-lib)
Also do so for some 'if' forms that lack an ELSE part.
Even go as far as using 'and' and 'not' instead of 'unless'.
---
emacs/coolj.el | 12 +++---
emacs/notmuch-address.el | 72 ++--
emacs/notmuch-crypto.el | 2 +-
emacs/notmuch-draft.el
---
emacs/make-deps.el | 3 ++-
emacs/notmuch-lib.el| 8 +++-
emacs/notmuch-parser.el | 9 +++--
emacs/notmuch-show.el | 18 +++---
emacs/rstdoc.el | 9 -
test/test-lib.el| 31 +++
6 files changed, 34
Fix it to consistently match the style we have configured in
".dir-locals.el".
---
test/test-lib.sh | 36 ++--
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 527c9e8b..c23a0d20 100644
--- a/test/test-lib.sh
---
emacs/make-deps.el| 2 +-
emacs/notmuch-company.el | 37 +++--
emacs/notmuch-compat.el | 22 +---
emacs/notmuch-crypto.el | 2 +-
emacs/notmuch-lib.el | 2 --
emacs/notmuch-maildir-fcc.el | 39
Features should nearly always be provided at the very end of their
libraries. This feature isn't one of the rare exceptions.
---
emacs/rstdoc.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs/rstdoc.el b/emacs/rstdoc.el
index 41390bbe..63fa2794 100644
---
---
emacs/notmuch-compat.el | 2 ++
emacs/notmuch-tag.el| 2 ++
2 files changed, 4 insertions(+)
diff --git a/emacs/notmuch-compat.el b/emacs/notmuch-compat.el
index 9d82a729..370cafa1 100644
--- a/emacs/notmuch-compat.el
+++ b/emacs/notmuch-compat.el
@@ -107,3 +107,5 @@ (if (fboundp
---
NEWS | 2 +-
bindings/python-cffi/notmuch2/__init__.py | 2 +-
bindings/python-cffi/notmuch2/_base.py | 6 +++---
bindings/python-cffi/notmuch2/_database.py | 8
bindings/python-cffi/notmuch2/_message.py | 4 ++--
Putting the COND and THEN parts on the same line but ELSE on a
separate line makes it harder to determine if there actually is
an ELSE part.
---
emacs/notmuch-lib.el | 6 --
emacs/notmuch-tag.el | 3 ++-
emacs/notmuch-tree.el | 3 ++-
3 files changed, 8 insertions(+), 4 deletions(-)
diff
Also use 'unless' in a few cases where previously 'if' was used with
'not' but without an ELSE part.
---
emacs/notmuch-hello.el | 6 +++---
emacs/notmuch-mua.el| 4 ++--
emacs/notmuch-parser.el | 2 +-
emacs/notmuch-show.el | 3 +--
emacs/notmuch-tag.el| 4 ++--
emacs/notmuch-tree.el
).
That resulted in a few new commits of course, marked with * below.
And since I had to add some commit anyway, I also added three other
minor commits, marked with ^ below.
Cheers,
Jonas
Jonas Bernoulli (34):
emacs: Shorten long lines
emacs: Remove excess empty lines
emacs:
---
emacs/notmuch-lib.el | 6 ++
emacs/notmuch-show.el | 19 ---
emacs/notmuch-tree.el | 4 ++--
emacs/notmuch.el | 6 ++
4 files changed, 14 insertions(+), 21 deletions(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 7994d5ad..f8958a91 100644
Since Emacs 27 each face has to be explicitly configured to "extend
to the edge of the window". Without doing that the face used for
the newline character only has an effect that spans "one character"
(i.e. it looks like there is a single trailing space character).
We don't want that so extend
---
.gitignore | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/.gitignore b/.gitignore
index 8f3ebec0..3edd1768 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,20 +1,20 @@
-/.first-build-message
-/Makefile.config
-/sh.config
-/version.stamp
-TAGS
Use `makefile-gmake-mode' instead of `makefile-mode' because the
former also highlights ifdef et al. while the latter does not.
"./Makefile.global" and one "Makefile.local" failed to specify any
major mode at all but doing so is necessary because Emacs does not
automatically figure out that these
---
NEWS | 3 +++
1 file changed, 3 insertions(+)
diff --git a/NEWS b/NEWS
index 9f0db031..3790204b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+Notmuch 0.31 (UNRELEASED)
+=
+
Notmuch 0.30 (2020-07-10)
=
--
2.28.0
Some backward incompatible changes follow in the next few commits
and going forward contributors don't have to worry about Emacs 24
at all anymore.
---
NEWS | 5 +
emacs/notmuch-pkg.el.tmpl | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/NEWS
Just use setq-local, which existed since Emacs 24.3.
---
emacs/notmuch-address.el | 4 ++--
emacs/notmuch-company.el | 2 +-
emacs/notmuch-compat.el | 8
3 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
index
Tomi Ollila writes:
> I made a quick check of release dates of emacs 25.1, gmime 3 and xapian 1.4
> -- gmime 3 released early 2017, xapian 1.4 middle of 2016 and emacs 25.1
> sept 2016 -- so requiring emacs 25.1 is pretty much aligned to those
> releases and therefore dropping emacs 24 support
Đoàn Trần Công Danh writes:
> On 2020-08-09 09:09:39-0300, David Bremner wrote:
>> Jonas Bernoulli writes:
>> >
>> > Jonas Bernoulli (34):
>> > emacs: Shorten long lines
>> > emacs: Remove excess empty lines
>>
>>
>> These
David Bremner writes:
> A short term fix would be to fetch a ref from somewhere.
You can fetch it with:
git fetch https://github.com/tarsiiformes/notmuch.git cleanup
Jonas
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send
David Bremner writes:
> "cl-incf is a Lisp macro in ‘aquamacs-tools.el’."
>
> What the actual heck?
Indeed. Did you follow the link to the definition to figure out what's
going on?
Ah... I found this: https://github.com/dholm/tabbar/commit/6d5a6935879.
IMO it's wrong to do that, but that is of
David Bremner writes:
> I don't think the patch dos what you think it does?
Indeed. I'll post the correct commit in v2 but will
wait for the rest of the review before posting that.
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe
Without these changes many tests fail on upcoming Emacs 27.1.
The details are in the commit messages.
Cheers,
Jonas Bernoulli (3):
gitignore: Ignore generated sphinx.config
test: Deal with Emacs 27 switching to lexical scope by default
test: Explicitly state that we want to sign
Since Emacs 27 'mml-secure-epg-sign' errors out if we don't opt-in to
signing as the sender using 'mml-secure-openpgp-sign-with-sender'.
---
test/test-lib.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 8c331b88..90e26639 100644
Starting with Emacs 27 undeclared variables in evaluated interactive
code uses lexical scope. This includes code passed with '--eval' as
we do in the Emacs tests, which also happen to assume dynamic scope.
This can affect variables defined by libraries that we use. We let-
bind such variables
---
sphinx.config | 4
1 file changed, 4 insertions(+)
create mode 100644 sphinx.config
diff --git a/sphinx.config b/sphinx.config
new file mode 100644
index ..207614b4
--- /dev/null
+++ b/sphinx.config
@@ -0,0 +1,4 @@
+# Generated by configure, run from doc/conf.py
It's shorter. That's it pretty much.
---
emacs/notmuch-hello.el | 2 +-
emacs/notmuch-lib.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 89e03c36..1c084bf7 100644
--- a/emacs/notmuch-hello.el
+++
It's a bit weird to avoid having to write the "(setq ... )" more than
once, just because we can. In a language that uses '=' for the same
purpose we also happily use that once per assignment.
While there are no benefit to using just one 'setq' there are some
drawbacks. It is not always clear on
---
emacs/coolj.el | 2 +-
emacs/notmuch-address.el | 38 +++--
emacs/notmuch-company.el | 17 --
emacs/notmuch-crypto.el | 16 +++---
emacs/notmuch-draft.el | 12 ++--
emacs/notmuch-hello.el | 43 ++-
emacs/notmuch-jump.el
Putting the COND and THEN parts on the same line but ELSE on a
separate line makes it harder to determine if there actually is
an ELSE part.
---
emacs/notmuch-lib.el | 6 --
emacs/notmuch-tag.el | 3 ++-
emacs/notmuch-tree.el | 3 ++-
3 files changed, 8 insertions(+), 4 deletions(-)
diff
---
emacs/coolj.el | 16 ++---
emacs/notmuch-address.el | 18 +++---
emacs/notmuch-compat.el| 86 -
emacs/notmuch-draft.el | 18 +++---
emacs/notmuch-hello.el | 24 +++
emacs/notmuch-lib.el | 56
---
emacs/notmuch-lib.el | 6 ++
emacs/notmuch-show.el | 19 ---
emacs/notmuch-tree.el | 4 ++--
emacs/notmuch.el | 6 ++
4 files changed, 14 insertions(+), 21 deletions(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 7994d5ad..f8958a91 100644
,
Jonas
Jonas Bernoulli (23):
emacs: Shorten long lines
emacs: Remove excess empty lines
emacs: Fix indentation
emacs: Closing parenthesis go on the same line
emacs: Only set one variable per setq form
emacs: Use cl-incf where appropriate
emacs: Use 'and' instead of 'when' when
Also use 'unless' in a few cases where previously 'if' was used with
'not' but without an ELSE part.
---
emacs/notmuch-hello.el | 6 +++---
emacs/notmuch-mua.el| 4 ++--
emacs/notmuch-parser.el | 2 +-
emacs/notmuch-show.el | 3 +--
emacs/notmuch-tag.el| 4 ++--
emacs/notmuch-tree.el
Since Emacs 27 each face has to be explicitly configured to "extend
to the edge of the window". Without doing that the face used for
the newline character only has an effect that spans "one character"
(i.e. it looks like there is a single trailing space character).
We don't want that so extend
This function is being autoloaded using an autoload cookie, so it
shouldn't additionally be autoloaded using an `autoload' form.
When building libraries we don't actually load the autoloads file and
dropping the `autoload' form results in an error, which reveals a so
far unspecified dependency:
It was defined as such for a decade; ever since
a56010ac8b89a2489eee5c78469f05cee85ec858 but there
wasn't a reason to do that then nor is there now.
---
emacs/notmuch-hello.el | 1 -
1 file changed, 1 deletion(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index
It is done synchronously and it can take a while,
so we should let the user know what is going on.
---
emacs/notmuch-lib.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index fc76fd67..069a19e9 100644
--- a/emacs/notmuch-lib.el
The major mode used for shell scripts is named 'sh-mode'.
'shell-mode' on the other hand implements an interactive
shell in emacs-lisp.
---
.dir-locals.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.dir-locals.el b/.dir-locals.el
index fc75ae61..b3ddffe8 100644
---
Doing that is better than using an `autoload' form because the latter
may result in dependencies getting hidden and indeed it turns out we
have to declare `notmuch-jump' in "notmuch-tag.el".
---
emacs/notmuch-jump.el | 1 +
emacs/notmuch-tag.el | 3 +--
2 files changed, 2 insertions(+), 2
Most people who write lots of lisp tend to only sparsely use empty
"separator" lines within forms. In lisp they feel unnecessary and
since most files stick to this convention we get a bit confused
when there are extra empty lines. It feels like the s-expressions
are falling into pieces.
All of
1 - 100 of 284 matches
Mail list logo