unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Test breakage on EPEL 8 with tree-outline-mode
@ 2023-02-20 19:29 Michael J Gruber
  2023-02-21 11:49 ` [PATCH] emacs/tree: use two argument form of setq-local David Bremner
  0 siblings, 1 reply; 4+ messages in thread
From: Michael J Gruber @ 2023-02-20 19:29 UTC (permalink / raw)
  To: notmuch

Hi there,

the test suite started to fail on EPEL 8 with the new tree-outline-mode:
```
EMACS emacs/notmuch-tree.elc

In notmuch-tree-mode:
emacs/notmuch-tree.el:1088:9:Warning: reference to free variable
    `notmuch-tree-outline-enabled'

In notmuch-tree-outline--set-visibility:
emacs/notmuch-tree.el:1322:14:Warning: reference to free variable
    `notmuch-tree-outline-mode'
emacs/notmuch-tree.el:1415:20:Error: Wrong number of arguments: (2 . 2), 4
make: *** [emacs/Makefile.local:87: emacs/notmuch-tree.elc] Error 1
```
Does the implementation require a specific emacs version?
EPEL 8 has emacs 26.1.

I am not going to update official notmuch packages for EPEL 8 anyways,
but others might care about older emacs. (I do provide notmuch-git
test packages for EPEL 8 so far.)

Cheers
Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] emacs/tree: use two argument form of setq-local
  2023-02-20 19:29 Test breakage on EPEL 8 with tree-outline-mode Michael J Gruber
@ 2023-02-21 11:49 ` David Bremner
  2023-02-21 14:53   ` Michael J Gruber
  2023-02-21 14:58   ` David Bremner
  0 siblings, 2 replies; 4+ messages in thread
From: David Bremner @ 2023-02-21 11:49 UTC (permalink / raw)
  To: Michael J Gruber, notmuch

Apparently the macro setq-local only takes two arguments in Emacs 26.1
---
 emacs/notmuch-tree.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 14775d59..b58fa6a6 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -1451,11 +1451,11 @@ notmuch-tree buffers, just set
   (unless (derived-mode-p 'notmuch-tree-mode)
     (user-error "notmuch-tree-outline-mode is only meaningful for notmuch trees!"))
   (if notmuch-tree-outline-mode
-      (progn (setq-local outline-regexp "^[^\n]+"
-			 outline-level #'notmuch-tree-outline--level)
+      (progn (setq-local outline-regexp "^[^\n]+")
+	     (setq-local outline-level #'notmuch-tree-outline--level)
 	     (notmuch-tree-outline--set-visibility))
-    (setq-local outline-regexp (default-value 'outline-regexp)
-		outline-level (default-value 'outline-level))))
+    (setq-local outline-regexp (default-value 'outline-regexp))
+    (setq-local	outline-level (default-value 'outline-level))))
 
 ;;; _
 
-- 
2.39.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] emacs/tree: use two argument form of setq-local
  2023-02-21 11:49 ` [PATCH] emacs/tree: use two argument form of setq-local David Bremner
@ 2023-02-21 14:53   ` Michael J Gruber
  2023-02-21 14:58   ` David Bremner
  1 sibling, 0 replies; 4+ messages in thread
From: Michael J Gruber @ 2023-02-21 14:53 UTC (permalink / raw)
  To: David Bremner; +Cc: notmuch

Am Di., 21. Feb. 2023 um 12:49 Uhr schrieb David Bremner <david@tethera.net>:
>
> Apparently the macro setq-local only takes two arguments in Emacs 26.1
> ---
>  emacs/notmuch-tree.el | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
> index 14775d59..b58fa6a6 100644
> --- a/emacs/notmuch-tree.el
> +++ b/emacs/notmuch-tree.el
> @@ -1451,11 +1451,11 @@ notmuch-tree buffers, just set
>    (unless (derived-mode-p 'notmuch-tree-mode)
>      (user-error "notmuch-tree-outline-mode is only meaningful for notmuch trees!"))
>    (if notmuch-tree-outline-mode
> -      (progn (setq-local outline-regexp "^[^\n]+"
> -                        outline-level #'notmuch-tree-outline--level)
> +      (progn (setq-local outline-regexp "^[^\n]+")
> +            (setq-local outline-level #'notmuch-tree-outline--level)
>              (notmuch-tree-outline--set-visibility))
> -    (setq-local outline-regexp (default-value 'outline-regexp)
> -               outline-level (default-value 'outline-level))))
> +    (setq-local outline-regexp (default-value 'outline-regexp))
> +    (setq-local        outline-level (default-value 'outline-level))))
>

Thanks, notmuch.git master plus this patch builds happily again on
EPEL 8 (and 9, and ...).

Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] emacs/tree: use two argument form of setq-local
  2023-02-21 11:49 ` [PATCH] emacs/tree: use two argument form of setq-local David Bremner
  2023-02-21 14:53   ` Michael J Gruber
@ 2023-02-21 14:58   ` David Bremner
  1 sibling, 0 replies; 4+ messages in thread
From: David Bremner @ 2023-02-21 14:58 UTC (permalink / raw)
  To: Michael J Gruber, notmuch

David Bremner <david@tethera.net> writes:

> Apparently the macro setq-local only takes two arguments in Emacs 26.1
> ---
>  emacs/notmuch-tree.el | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
> index 14775d59..b58fa6a6 100644
> --- a/emacs/notmuch-tree.el
> +++ b/emacs/notmuch-tree.el
> @@ -1451,11 +1451,11 @@ notmuch-tree buffers, just set
>    (unless (derived-mode-p 'notmuch-tree-mode)
>      (user-error "notmuch-tree-outline-mode is only meaningful for notmuch trees!"))
>    (if notmuch-tree-outline-mode
> -      (progn (setq-local outline-regexp "^[^\n]+"
> -			 outline-level #'notmuch-tree-outline--level)
> +      (progn (setq-local outline-regexp "^[^\n]+")
> +	     (setq-local outline-level #'notmuch-tree-outline--level)
>  	     (notmuch-tree-outline--set-visibility))
> -    (setq-local outline-regexp (default-value 'outline-regexp)
> -		outline-level (default-value 'outline-level))))
> +    (setq-local outline-regexp (default-value 'outline-regexp))
> +    (setq-local	outline-level (default-value 'outline-level))))

Applied to master.

d
        

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-21 14:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-20 19:29 Test breakage on EPEL 8 with tree-outline-mode Michael J Gruber
2023-02-21 11:49 ` [PATCH] emacs/tree: use two argument form of setq-local David Bremner
2023-02-21 14:53   ` Michael J Gruber
2023-02-21 14:58   ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).