From: Bastien <bzg@altern.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Warning with --daemon
Date: Wed, 16 Mar 2011 17:14:44 +0100 [thread overview]
Message-ID: <87y64fdouj.fsf@altern.org> (raw)
In-Reply-To: <83pqptr7se.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 14 Mar 2011 18:22:41 +0200")
Hi Eli,
Eli Zaretskii <eliz@gnu.org> writes:
> 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 ;-)
Thanks for the suggestion -- i modified like this:
,----
| (when (and (not (daemonp)) auto-save-default)
| (message "Warning: turn auto-save-mode off in Org buffers containing crypted entries.")
| (sit-for 5))
`----
so that the warning is sent when Emacs is *not* in daemon mode.
> 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.
I obviously overlooked this, right :)
Best,
--
Bastien
next prev parent reply other threads:[~2011-03-16 16:14 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
2011-03-16 16:14 ` Bastien [this message]
[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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y64fdouj.fsf@altern.org \
--to=bzg@altern.org \
--cc=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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).