unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: David Bremner <david@tethera.net>,
	Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: [PATCH 3/3] emacs: Drop content-free "Unknown signature status" button
Date: Fri, 24 May 2019 15:21:41 -0400	[thread overview]
Message-ID: <87mujb64l6.fsf@fifthhorseman.net> (raw)
In-Reply-To: <87r28oodrc.fsf@tethera.net>

[-- Attachment #1: Type: text/plain, Size: 1286 bytes --]

On Thu 2019-05-23 22:13:59 -0300, David Bremner wrote:
> Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
>
>> diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el
>> index 353f721e..68171153 100644
>> --- a/emacs/notmuch-crypto.el
>> +++ b/emacs/notmuch-crypto.el
>> @@ -93,6 +93,7 @@ mode."
>>  (defun notmuch-crypto-insert-sigstatus-button (sigstatus from)
>>    (let* ((status (plist-get sigstatus :status))
>>  	 (help-msg nil)
>> +	 (show-button t)
>>  	 (label "Signature not processed")
>
> This should probably be nil, since that particular value is never used,
> iiuc. I can amend it if you agree.

I don't think i understand your suggestion.  that value *is* used, by
the "(when show-button …)" construct later in the code.

The idea was to make the button shown by default, unless it was disabled
further down in the patch (in the "t" clause of the main "cond"
construct in notmuch-crypto-insert-sigstatus-button, which only triggers
if we legitimately don't have any status information (if "status" is
nil)).

So no, i think it's supposed to start off "t" and then get disabled in
the specific condition this patch tests for.

If i've misunderstood the e-lisp (entirely possible!) i would be happy
to be corrected.

   --dkg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2019-05-24 19:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-22 17:18 [PATCH 1/3] emacs: test notmuch-show during message decryption Daniel Kahn Gillmor
2019-04-22 17:18 ` [PATCH 2/3] test: show what emacs sees of an encrypted message when crypto is disabled Daniel Kahn Gillmor
2019-05-10 15:33   ` David Bremner
2019-04-22 17:18 ` [PATCH 3/3] emacs: Drop content-free "Unknown signature status" button Daniel Kahn Gillmor
2019-04-22 17:26   ` Daniel Kahn Gillmor
2019-04-23 16:18     ` Daniel Kahn Gillmor
2019-05-20  3:16   ` Daniel Kahn Gillmor
2019-05-24  1:13   ` David Bremner
2019-05-24 19:21     ` Daniel Kahn Gillmor [this message]
2019-05-25  1:38       ` David Bremner
2019-05-25 14:23         ` Daniel Kahn Gillmor
2019-05-25 16:40   ` David Bremner
2019-04-22 21:07 ` [PATCH v2 1/3] emacs: test notmuch-show during message decryption Daniel Kahn Gillmor
2019-05-03 17:59   ` David Bremner
2019-05-06 16:23     ` Daniel Kahn Gillmor
2019-05-06 17:43       ` [PATCH v3 " Daniel Kahn Gillmor
2019-05-10 10:17         ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mujb64l6.fsf@fifthhorseman.net \
    --to=dkg@fifthhorseman.net \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).