Re: [PATCH] emacs: add check for encryption before saving.

Subject: Re: [PATCH] emacs: add check for encryption before saving.

Date: Sat, 05 Nov 2016 12:20:18 +0000

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: Mark Walters


On Sat, 05 Nov 2016, David Bremner <david@tethera.net> wrote:
> Mark Walters <markwalters1009@gmail.com> writes:
>
>>
>> I think this is an excellent thing to add. I agree that false positives
>> aren't much of a worry. If someone bumps into them a lot then they can
>> complain or come up with a better regex.
>>
>
> Should the regex also be a defcustom?

I think not a defcustom, but perhaps a defvar (the difference being that
defvar's are hidden from most users -- anyone who can write a better
regex can use setq in their init file). I think even if we don't expect
users to change it making it a defvar is quite clean so that might be
best.

Best wishes

Mark






Thread: