all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Memnon Anon <gegendosenfleisch@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Warning with --daemon
Date: Mon, 14 Mar 2011 13:55:57 +0000 (UTC)	[thread overview]
Message-ID: <87ipvlq2na.fsf@mean.albasani.net> (raw)
In-Reply-To: E1Pz70X-000717-2G@fencepost.gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Memnon Anon <gegendosenfleisch@googlemail.com>
>> 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




  reply	other threads:[~2011-03-14 13:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-14 12:00 Warning with --daemon Memnon Anon
2011-03-14 12:36 ` Eli Zaretskii
2011-03-14 13:55   ` Memnon Anon [this message]
2011-03-14 16:22     ` Eli Zaretskii
2011-03-16 16:14       ` Bastien
     [not found]     ` <mailman.2.1300119763.2531.help-gnu-emacs@gnu.org>
2011-03-15 14:23       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipvlq2na.fsf@mean.albasani.net \
    --to=gegendosenfleisch@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.