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 - Carsten On Jan 18, 2010, at 10:00 PM, Jeffrey Ratcliffe wrote:
With (add-hook 'before-save-hook 'org-encrypt-entries) and a file with the following contents: package G; in perl- or cperl-mode, when saving, I get the following error message: org-scan-tags: Wrong type argument: consp, nil Can I make the add-hook org-mode specific, or this is a bug in org-mode? Please cc on replies, as I am not subscribed. Regards Jeff _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode