From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Warning with --daemon Date: Mon, 14 Mar 2011 18:22:41 +0200 Message-ID: <83pqptr7se.fsf@gnu.org> References: <878vwh2acf.fsf@mean.albasani.net> <87ipvlq2na.fsf@mean.albasani.net> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1300119853 6192 80.91.229.12 (14 Mar 2011 16:24:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 16:24:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 17:24:09 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PzAYw-00085D-E4 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 17:24:07 +0100 Original-Received: from localhost ([127.0.0.1]:49210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzAXt-0007tx-UJ for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 12:23:01 -0400 Original-Received: from [140.186.70.92] (port=32810 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzAXY-0007pE-F2 for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 12:22:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzAXV-0003Ir-PP for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 12:22:39 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:55205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzAXV-0003IN-J4 for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 12:22:37 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LI2001002MNTZ00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 18:22:33 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.96.116]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LI2001X32TKI180@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 18:22:33 +0200 (IST) In-reply-to: <87ipvlq2na.fsf@mean.albasani.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80098 Archived-At: > From: Memnon Anon > 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.