[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Warning with --daemon
From: |
Eli Zaretskii |
Subject: |
Re: Warning with --daemon |
Date: |
Mon, 14 Mar 2011 18:22:41 +0200 |
> From: Memnon Anon <gegendosenfleisch@googlemail.com>
> Date: Mon, 14 Mar 2011 13:55:57 +0000 (UTC)
>
> ,----[ org-crypt.el ]
> | ;; FIXME Find a better way to encrypt Org auto-saved buffers?
> | ;; When `auto-save-default' is non-nil, make sure entries are
> | ;; encrypted before auto-saving
> | ;; (when auto-save-default
> | ;; (add-hook
> | ;; 'org-mode-hook
> | ;; (lambda () (add-hook 'auto-save-hook 'org-encrypt-entries nil t))))
> |
> | (when auto-save-default
> | (message "Warning: turn auto-save-mode off in Org buffers containing
> crypted entries.")
> | (sit-for 5))
> `----
I can suggest two things, not necessarily mutually exclusive:
1) modify org-crypt.el to change this:
(when auto-save-default
to say
(when (and (daemonp) auto-save-default)
instead. The recompile org-crypt.el, and Bob's your uncle (at
least until you upgrade to the next version of Org ;-)
2) file a bug against Org mode, because they obviously didn't think
about the use case of this code running when a daemon is started.