From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: org-encrypt-entries seems to break perl- and cperl-mode Date: Tue, 19 Jan 2010 19:38:49 +0100 Message-ID: References: <20100118210029.GA2044@eeepc> <26E21E93-84E6-40DA-B87D-52EDC8A4A193@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXIz3-0008UY-Hc for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 13:39:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXIyz-0008UE-Vt for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 13:39:21 -0500 Received: from [199.232.76.173] (port=49792 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXIyz-0008UB-QE for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 13:39:17 -0500 Received: from lo.gmane.org ([80.91.229.12]:58475) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXIyz-0001oh-Dz for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 13:39:17 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NXIyt-00079k-43 for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 19:39:11 +0100 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jan 2010 19:39:11 +0100 Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jan 2010 19:39:11 +0100 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 Carsten Dominik writes: > Hi Jeffrey, > > indeed you need to make sure that this hook runs only in Org-mode files. > This is automatically done by calling > > (org-crypt-use-before-save-magic) > > after loading org-crypt.el. > > Internally, this achieves it's goal by installing > a function into `org-mode-hook', which will then install > a function into the buffer-local version of before-save-hook. > > This information is also > given in the file commentary in org-crypt.el, but I think > we should get this info also into WOrg, or maybe even > into the manual. I'd be happy to accept a patch in > this direction. > > Hope this helps A quick note to say how wonderful this mode is. I had been using a .gpg file with the mode in a file variable. This thread pushed me to try org-crypt. Amazingly good and well thought out! ,---- | (require 'org-crypt) | (org-crypt-use-before-save-magic) | (setq org-crypt-key "rgr@richardriley.net") `---- And encryption "just works" when I add the tag :crypt:. The only slight hiccup I saw was that when I added the crypt tag to another element in another org file and saved it, it did not encrypt that after the initial encryption of the first file I had tagged. When I restarted emacs and rewrote it it did. Which brings up my next query : when does org reread tags? I added a filetag (#+FILETAGS) to an open org file and saved it but the agenda match did not find it. How can I force a refresh of the tags buffer when I save a file?