From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Memnon Anon Newsgroups: gmane.emacs.help Subject: Re: Warning with --daemon Date: Mon, 14 Mar 2011 13:55:57 +0000 (UTC) Message-ID: <87ipvlq2na.fsf@mean.albasani.net> References: <878vwh2acf.fsf@mean.albasani.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1300111173 14910 80.91.229.12 (14 Mar 2011 13:59:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 13:59:33 +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 14:59:25 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 1Pz8Iu-0000o8-El for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 14:59:24 +0100 Original-Received: from localhost ([127.0.0.1]:54390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz8Is-0000bn-OQ for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 09:59:22 -0400 Original-Received: from [140.186.70.92] (port=53713 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz8G0-0007eU-KR for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 09:56:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz8Ft-000586-QO for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 09:56:19 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pz8Ft-00057f-Gd for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 09:56:17 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pz8Fo-0007wG-Up for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 14:56:12 +0100 Original-Received: from e178207212.adsl.alicedsl.de ([85.178.207.212]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2011 14:56:12 +0100 Original-Received: from gegendosenfleisch by e178207212.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2011 14:56:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 81 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: e178207212.adsl.alicedsl.de Cancel-Lock: sha1:ncLs+SK1QntsBbAKADXFIx52JYY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:80088 Archived-At: Eli Zaretskii writes: >> From: Memnon Anon >> Date: Mon, 14 Mar 2011 12:00:03 +0000 (UTC) >> >> orgmode introduced a new warning for one of its features I use. >> I usually start emacs with --daemon; the startup stops whenever this >> warning is displayed. > > What feature? what warning? > > Please say at least that much, it's hard to give advice otherwise. Sorry, I did not think the specific warning is relevant. ,----[ http://orgmode.org/Changes.html#sec-1_3_3 ] | Security warning: using org-crypt with auto-save | | To prevent Emacs from auto-saving encrypted entries in clear text, the | user should not use auto-save with org-crypt.el. We now send a warning | when users are both using auto-saving and org-crypt.el. Thanks to Peter | Jones for bringing this up. `---- The relevant code seems to be this: ,----[ 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 should have tried to pinpoint the relevant location before asking ... I thought there was a special general warning function involved, but it is basically just a message and a (sit-for 5) ... Trying to verify this is really the relevant bit: Starting "emacs --daemon ~/.emacs" with this .emacs: -------------.emacs-------- (sit-for 5) ------------- I need to press enter to finish the startup. "emacsclient -c" and a subsequent `C-x b .emacs': -------------.emacs-------- (sit-for 5) ------------- (Newline at the top of .emacs. Seems like a result oft the RET, right?). So I *guess* using sit-for in .emacs + usage of daemon is the problem? ELISP> (emacs-version) "GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)\n of 2010-12-11 on raven, modified by Debian" ELISP> (org-version) "Org-mode version 7.5" I just installed the emacs-snapshot package and the same happens with GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-03-09 on cigue, modified by Debian I did a quick search on debbugs.gnu.org, but I found nothing relevant so far... I can't think of any information to add at this point, if you need any, I'll provide them ASAP. Thanks, Memnon