all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Warning with --daemon
Date: Mon, 14 Mar 2011 18:22:41 +0200	[thread overview]
Message-ID: <83pqptr7se.fsf@gnu.org> (raw)
In-Reply-To: <87ipvlq2na.fsf@mean.albasani.net>

> 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.



  reply	other threads:[~2011-03-14 16:22 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
2011-03-14 16:22     ` Eli Zaretskii [this message]
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=83pqptr7se.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.