From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: Warning with --daemon Date: Wed, 16 Mar 2011 17:14:44 +0100 Message-ID: <87y64fdouj.fsf@altern.org> References: <878vwh2acf.fsf@mean.albasani.net> <87ipvlq2na.fsf@mean.albasani.net> <83pqptr7se.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300292935 28488 80.91.229.12 (16 Mar 2011 16:28:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2011 16:28:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 17:28:51 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 1PztYl-0007kx-ID for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 17:28:51 +0100 Original-Received: from localhost ([127.0.0.1]:37190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PztXs-0006bR-9w for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 12:26:00 -0400 Original-Received: from [140.186.70.92] (port=56463 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PztNN-0001wR-Lt for help-gnu-emacs@gnu.org; Wed, 16 Mar 2011 12:15:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PztNK-0000Ox-Ik for help-gnu-emacs@gnu.org; Wed, 16 Mar 2011 12:15:07 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:45876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PztNI-0000Nv-N5; Wed, 16 Mar 2011 12:15:04 -0400 Original-Received: by wwc33 with SMTP id 33so2039457wwc.30 for ; Wed, 16 Mar 2011 09:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:in-reply-to :references:user-agent:date:message-id:mime-version:content-type; bh=gA2lCj/MVQZSXsXhXjBBcpdhnLjhU+gW/5nNDg3SdJM=; b=RNSnUtU5/fQyZ+m0HRVpucfn3sok8B2AZKWeHMaZJrdRoGJNSXkm/JLP/cLT2rnTZB zy7v26FZOZ0OJGS2+KrV1sehImwqnF6jzseGPQstm1RY6lov4VJglIEVmvQJHYq29qmX G93tMKMZ9DmiKYVllAE54nu2gPn2eMwokh0mU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=Tws8Ci3oNdCPuy8mHCTo1FhOcgEJ1jKFN8srYePk8f+s3EFxtCwAVTKtm/fFYMP0oC TYtAxi5AhFsW7btRQEQQEBuAaV/1KvSpvwVNldYIjt7pOrYKeFVgCcteL46FBEi48XXO szAbb9hS6vtVrpOSaUM7WI72QCtYoNxH8q5Hs= Original-Received: by 10.227.53.206 with SMTP id n14mr195499wbg.14.1300292103756; Wed, 16 Mar 2011 09:15:03 -0700 (PDT) Original-Received: from myhost.localdomain (fon75-1-78-192-119-5.fbxo.proxad.net [78.192.119.5]) by mx.google.com with ESMTPS id g7sm42443wby.31.2011.03.16.09.15.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2011 09:15:02 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id 8B4F965BD; Wed, 16 Mar 2011 17:14:44 +0100 (CET) In-Reply-To: <83pqptr7se.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 14 Mar 2011 18:22:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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:80174 Archived-At: Hi Eli, Eli Zaretskii 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