From: Carsten Dominik <carsten.dominik@gmail.com>
To: Jeffrey Ratcliffe <jeffrey.ratcliffe@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-encrypt-entries seems to break perl- and cperl-mode
Date: Tue, 19 Jan 2010 16:10:08 +0100 [thread overview]
Message-ID: <26E21E93-84E6-40DA-B87D-52EDC8A4A193@gmail.com> (raw)
In-Reply-To: <20100118210029.GA2044@eeepc>
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
next prev parent reply other threads:[~2010-01-19 15:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 21:00 org-encrypt-entries seems to break perl- and cperl-mode Jeffrey Ratcliffe
2010-01-19 15:10 ` Carsten Dominik [this message]
2010-01-19 18:38 ` Richard Riley
2010-01-19 19:15 ` Matt Lundin
2010-01-24 12:02 ` Jeffrey Ratcliffe
2010-02-16 20:18 ` Jeffrey Ratcliffe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26E21E93-84E6-40DA-B87D-52EDC8A4A193@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jeffrey.ratcliffe@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).