diff mbox series

[bug#62909] etc: snippets: Fix git-commit-mode configuration for tempel.

Message ID 20230417175222.10313-1-ngraves@ngraves.fr
State New
Headers show
Series [bug#62909] etc: snippets: Fix git-commit-mode configuration for tempel. | expand

Commit Message

Nicolas Graves April 17, 2023, 5:52 p.m. UTC
* etc/snippets/tempel/text-mode: Fix git-commit-mode configuration for tempel.
---
 etc/snippets/tempel/text-mode | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrew Tropin April 18, 2023, 11:06 a.m. UTC | #1
On 2023-04-17 19:52, Nicolas Graves via Guix-patches via wrote:

> * etc/snippets/tempel/text-mode: Fix git-commit-mode configuration for tempel.
> ---
>  etc/snippets/tempel/text-mode | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/etc/snippets/tempel/text-mode b/etc/snippets/tempel/text-mode
> index 1cda91cba0..c635b7ee6f 100644
> --- a/etc/snippets/tempel/text-mode
> +++ b/etc/snippets/tempel/text-mode
> @@ -1,6 +1,6 @@
>  -*- mode: lisp-data -*-
>  
> -text-mode :when (and (fboundp 'git-commit-mode) git-commit-mode)
> +text-mode :when (bound-and-true-p git-commit-mode)
>  
>  (add\ "gnu: Add "
>        (p (with-temp-buffer

Hi Nicolas!

Thank you for the patch, applied, reworded commit message, pushed as
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=38fa64c4b5
diff mbox series

Patch

diff --git a/etc/snippets/tempel/text-mode b/etc/snippets/tempel/text-mode
index 1cda91cba0..c635b7ee6f 100644
--- a/etc/snippets/tempel/text-mode
+++ b/etc/snippets/tempel/text-mode
@@ -1,6 +1,6 @@ 
 -*- mode: lisp-data -*-
 
-text-mode :when (and (fboundp 'git-commit-mode) git-commit-mode)
+text-mode :when (bound-and-true-p git-commit-mode)
 
 (add\ "gnu: Add "
       (p (with-temp-buffer