[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] org-crypt: only warn about auto-save-mode when running o
From: |
Bastien |
Subject: |
Re: [O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt |
Date: |
Mon, 27 Jun 2011 18:31:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Pieter,
Thanks for the patch at the end of this thread.
Pieter Praet <address@hidden> writes:
> Ideally, we'd have a defcustom `org-crypt-auto-save' with the following
> options:
> - 'ask : Ask the user whether or not to decrypt the entry.
> - 'disable : Disable auto-save-mode for the current buffer before decrypting.
> - 'ignore : Decrypt the entry regardless.
> - 'encrypt : Re-encrypt the entries before auto-save kicks in.
>
> I've implemented this, but it fails miserably:
>
> Since the function `auto-save-mode' doesn't set an buffer-local
> var to indicate whether or not it's enabled for the current buffer, we
> can only check for `auto-save-default'.
I think we should first ask emacs-devel to fix this, then implement your
clean solution. Would you like to report this problem?
I'm not confident in disabling auto-save-mode globally by default, this
would surprise users -- even with a **BiG WaRnInG** message.
What do you think?
--
Bastien
- Re: [O] Documentation suggestion re: buffers containing crypted entries, Dave Abrahams, 2011/06/12
- Re: [O] Documentation suggestion re: buffers containing crypted entries, Eric S Fraga, 2011/06/24
- [O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt, Pieter Praet, 2011/06/24
- Re: [O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt, Nick Dokos, 2011/06/24
- Re: [O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt, Pieter Praet, 2011/06/26
- [O] [PATCH] org-crypt: make org-decrypt disable auto-save-mode (configurable), Pieter Praet, 2011/06/26
- Re: [O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt,
Bastien <=
- Re: [O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt, Pieter Praet, 2011/06/28
- [O] [PATCH] org-crypt: make org-decrypt disable auto-save-mode (configurable), Pieter Praet, 2011/06/28
- Re: [O] [PATCH] org-crypt: make org-decrypt disable auto-save-mode (configurable), Bastien, 2011/06/28
- Re: [O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt, Bastien, 2011/06/28
Re: [O] Documentation suggestion re: buffers containing crypted entries, Bernt Hansen, 2011/06/24