From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: org-crypt Error: org-crypt-use-before-save-magic Date: Mon, 14 Mar 2011 07:08:55 +0000 Message-ID: <4D7DBF07.4050004@manor-farm.org> Reply-To: lists@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43846 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz1u6-0003HH-Nl for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 03:09:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz1u5-0003gB-4Q for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 03:09:22 -0400 Received: from mail.ian-barton.com ([109.74.196.44]:41379 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pz1u5-0003ds-07 for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 03:09:21 -0400 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 45F64A48A for ; Mon, 14 Mar 2011 07:08:57 +0000 (UTC) Received: from li40-130.members.linode.com ([127.0.0.1]) by localhost (mail.manor-farm.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ArxPpjqFupX1 for ; Mon, 14 Mar 2011 07:08:57 +0000 (UTC) Received: from mail.wilkesley.net (unknown [217.146.125.41]) by li40-130.members.linode.com (Postfix) with ESMTP id 15FF4A489 for ; Mon, 14 Mar 2011 07:08:57 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.wilkesley.net (Postfix) with ESMTP id A220A11E70 for ; Mon, 14 Mar 2011 07:13:16 +0000 (GMT) Received: from mail.wilkesley.net ([127.0.0.1]) by localhost (mail.bantercat.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gIR8IDxTybdV for ; Mon, 14 Mar 2011 07:13:16 +0000 (GMT) Received: from [192.168.0.133] (scamper.bantercat.co.uk [192.168.0.133]) by mail.wilkesley.net (Postfix) with ESMTPSA id 8AC2111E19 for ; Mon, 14 Mar 2011 07:13:16 +0000 (GMT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I am investigating using org-crypt in some of my files. In my .emacs I have: #+BEGIN_SRC emacs-lisp (require 'org-crypt) (org-crypt-use-before-save-magic) (setq org-tags-exclude-from-inheritance (quote ("crypt"))) ; GPG key to use for encryption (setq org-crypt-key "MyKey") #+END_SRC When I start Emacs I get: Warning (initialization): An error occurred while loading `/home/ian/.emacs': Symbol's function definition is void: org-crypt-use-before-save-magic To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. The corresponding backtrace is: Debugger entered--Lisp error: (void-function org-crypt-use-before-save-magic) (org-crypt-use-before-save-magic) eval-buffer(#> nil "/home/ian/.emacs.d/blacky.el" nil t) ; Reading at buffer position 28453 load-with-code-conversion("/home/ian/.emacs.d/blacky.el" "/home/ian/.emacs.d/blacky.el" nil nil) load("/home/ian/.emacs.d/blacky.el" nil nil t) load-file("~/.emacs.d/blacky.el") org-babel-load-file("~/.emacs.d/blacky.org") eval-buffer(# nil "/home/ian/.emacs" nil t) ; Reading at buffer position 208 load-with-code-conversion("/home/ian/.emacs" "/home/ian/.emacs" t t) load("~/.emacs" t t) #[nil "\205\264 I am using a recent git checkout. I notice that org-crypt isn't documented in the manual and there is an old message from Carsten asking for someone to document it. If I can get it working I'll promise to document it:) Also I'll write something about using ssh agent with org an Emacs, a topic that has cuased me some head scratching recently. Ian.