[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64064: [PATCH 2/4] Don't error out on 'nil' alist value.
From: |
Michael Albinus |
Subject: |
bug#64064: [PATCH 2/4] Don't error out on 'nil' alist value. |
Date: |
Fri, 16 Jun 2023 12:22:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Morgan Smith <Morgan.J.Smith@outlook.com> writes:
> The intention of the DEFAULT argument to alist-get is to return "" instead of
> 'nil'. However, this still returns 'nil' if the key exists but the value is
> 'nil'.
>
> This problem wasn't detected previously since the functions
> 'debbugs-gnu-sort-submitter' and 'debbugs-gnu-sort-title' weren't actually
> used until the previous commit.
Couldn't we simply fix this in 'debbugs-gnu-sort-submitter' and
'debbugs-gnu-sort-title'? That is, handling a nil value for submitter
and title?
And do you have an example bug number where this could happen?
Best regards, Michael.
bug#64064: [PATCH 4/4] Add 'debbugs-gnu-rescan' to 'tabulated-list-revert-hook'., Michael Albinus, 2023/06/16
bug#64064: [PATCH 0/4] debbugs improvements, Michael Albinus, 2023/06/16