Browse Source

org-crypt.el: only send a warning when Emacs is not running in daemon mode.

Bastien Guerry 14 years ago
parent
commit
0b8852b5c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-crypt.el

+ 1 - 1
lisp/org-crypt.el

@@ -209,7 +209,7 @@ This setting can also be overridden in the CRYPTKEY property."
 ;;     'org-mode-hook
 ;;     (lambda () (add-hook 'auto-save-hook 'org-encrypt-entries nil t))))
 
-(when auto-save-default
+(when (and (not (daemonp)) auto-save-default)
   (message "Warning: turn auto-save-mode off in Org buffers containing crypted entries.")
   (sit-for 5))