From: Carsten Dominik <firstname.lastname@example.org> To: "Tom Breton (Tehom)" <email@example.com> Cc: firstname.lastname@example.org Subject: Re: Hook request and patch Date: Thu, 1 Jan 2009 10:04:58 +0100 [thread overview] Message-ID: <39E81FE5-01C6-4EC1-8377-BD243EE336B5@uva.nl> (raw) In-Reply-To: <email@example.com> On Dec 31, 2008, at 7:54 PM, Tom Breton (Tehom) wrote: >> Hi Tom, >> >> is there a reason why you did not put the hook right after >> the include file moment? >> >> - Carsten > > Yes, two. But of course your judgement should take precedence. > > In order to make my change slightly less severe, I put it just before > operations of a similar nature, and it seemed to me that the various > "find > links" operations were most like it - but perhaps that reflects on the > particular purpose I was using it for. > > And it seemed to me that putting it after the various "protect" > operations > was better than putting it before them. Hi Tom, I had to change the name of the hook, "midprocess" does not do it justice. I'm not sure if you really want to do this after the protection stuff, because it will limit the processing of your include files. I have now added a few more hooks at strategic locations in the preprocessing code, please take your pick from the hooks I am listing below. If you do need the hook in the position where you put it, let me know and I will add another one. (defvar org-export-preprocess-hook nil "Hook for preprocessing an export buffer. Pretty much the first thing when exporting is running this hook.") (defvar org-export-preprocess-after-include-files-hook nil "Hook for preprocessing an export buffer. This is run after the contents of included files have been inserted.") (defvar org-export-preprocess-after-tree-selection-hook nil "Hook for preprocessing an export buffer. This is run after selection of trees to be exported has happened. This selection includes tags-based selection, as well as removal of commented and archived trees.") (defvar org-export-preprocess-before-backend-specifics-hook nil "Hook run before backend-specific functions are called during preprocessing.") (defvar org-export-preprocess-final-hook nil "Hook for preprocessing an export buffer. This is run as the last thing in the preprocessing buffer, just before returning the buffer string to the backend.") - Carsten
prev parent reply other threads:[~2009-01-01 9:05 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-12-30 4:22 Tom Breton (Tehom) 2008-12-31 8:45 ` Carsten Dominik 2008-12-31 18:54 ` Tom Breton (Tehom) 2009-01-01 9:04 ` Carsten Dominik [this message]
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=39E81FE5-01C6-4EC1-8377-BD243EE336B5@uva.nl \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: Hook request and patch' \ /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
Code repositories for project(s) associated with this 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).