help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning with --daemon


From: Bastien
Subject: Re: Warning with --daemon
Date: Wed, 16 Mar 2011 17:14:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]