Re: [O] [PATCH 1/5] Extend scope 'region to include body of last headline in active region

2011-08-25 Thread Carsten Dominik
On 25.8.2011, at 06:25, David Maus wrote: * org.el (org-map-entries): Extend scope 'region to include entire body of last headline in active region. --- lisp/org.el |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index

Re: [O] [PATCH 2/5] Immediately return if scope is region but no region is active

2011-08-25 Thread Carsten Dominik
On 25.8.2011, at 06:25, David Maus wrote: * org.el (org-map-entries): Immediately return if scope is region but no region is active. --- lisp/org.el | 116 ++- 1 files changed, 59 insertions(+), 57 deletions(-) diff --git

Re: [O] [PATCH 0/5] loop over headlines in active region

2011-08-25 Thread Carsten Dominik
On 25.8.2011, at 06:25, David Maus wrote:Hi Bastien,Great -- can you submit a patch against current git head?Following 5 patches implement looping over headlines in active regionfor org-schedule and org-deadline. Invisible headlines are skippedHi David,I am wondering, why did you choose to skip

Re: [O] [bug] removing last column with a column formula

2011-08-25 Thread Carsten Dominik
On 24.8.2011, at 20:29, Bastien wrote: Hi Carsten, Nicolas Goaziou n.goaz...@gmail.com writes: Let's consider the following table: #+begin_src org | 1 | 2 | 3 | | 1 | 2 | 3 | #+TBLFM: @2$1..@2$3=@1 #+end_src If I remove the second column (M-S-Left), the formula is correctly

Re: [O] Code vanishes on export

2011-08-25 Thread suvayu ali
Hi Vikas, On Thu, Aug 25, 2011 at 1:37 AM, Vikas Rawal vikasli...@agrarianresearch.org wrote: For the last few days, I have been manually copying my org file before every export to save it. Maybe an easier option would be make the buffer read-only before export. `C-x C-q' The problem is that

Re: [O] My apprehensions listed (Re: Not merging org-lparse, org-xhtml org-odt to the core)

2011-08-25 Thread Bastien
Hi Jambunathan, Thanks for your reply. I will take one week of vacation next week (till sept. 5th) and try to tackle the various issues about org-html.el and org-xhtml.el -- I will then make a proposal that I hope we can both agree upon. Again, let me rephrase that I have two goals: merging the

Re: [O] Problem with exporting image to PDF

2011-08-25 Thread suvayu ali
Hi Toby, John and Nick, Its early in the morning for me, so whatever follows could simply be wrong. :-p On Thu, Aug 25, 2011 at 3:59 AM, Nick Dokos nicholas.do...@hp.com wrote: Thomas S. Dye t...@tsdye.com wrote: Toby orgm...@freerangekiwi.com writes: I have tried different classes

Re: [O] My apprehensions listed (Re: Not merging org-lparse, org-xhtml org-odt to the core)

2011-08-25 Thread Bastien
Hi Jambunathan, Jambunathan K kjambunat...@gmail.com writes: You either accept the freeze or reject the freeze. You don't overlook it. Because the later leaves me confused on where you stand on the matter. I'm not yet clear about what would be the purpose of this freeze. If we need to

Re: [O] org-toggle-inline-images bug

2011-08-25 Thread Bastien
Hi William, William Xu william@gmail.com writes: What version of Emacs and Org are you using? Hmm, i'm using Org bundled with Emacs. I guess it has been fixed in the meantime. If you have the opportunity to use Org from git, please do so: http://orgmode.org/index.html#sec-3-2

Re: [O] src blocks, listings package and captions

2011-08-25 Thread Bastien
Hi Giles, Giles Chamberlin giles.chamber...@cisco.com writes: I'm using the listings package and org-version 7.4 to generate latex/pdf output including source snippets. I'd like to add captions: Figure 1: My code and tried with the following to no avail: #+caption: My code #+begin_src

Re: [O] Todo with checkboxes is grayed out in agenda

2011-08-25 Thread Bastien
Hi Nathan, Nathan Neff nathan.n...@gmail.com writes: I have a todo like this: * todo something - [ ] first - [ ] next In the agenda, the todo something header is displayed grayed out. I lack contextual information -- Emacs and Org versions, and part of your Org configuration relevant to

[O] Is it possible to markup one character in a word?

2011-08-25 Thread Vladimir Lomov
Hi. Is it possible to markup one character in a word, like e*X*ecute. For now this don't work. I tried to add ZERO WIDTH SPACE (found on mailing list) before first * and last * like in example e​*X*​ecute but this don't work also. --- WBR, Vladimir Lomov

Re: [O] [bug] removing last column with a column formula

2011-08-25 Thread Bastien
Carsten Dominik domi...@uva.nl writes: Is this something that we can (easily) fix? Not easily. I have made it throw an error now, but there may be other situations like this which are not yet captured. Throwing an error in this case is already an improvement -- thanks for this! --

[O] extending automatic screenshot insertion

2011-08-25 Thread Aditya Mandayam
hello, i would like to extend the auto screenshot method described here: http://comments.gmane.org/gmane.emacs.orgmode/33770 first: a way in which i can be prompted to enter a filename instead of having a random string second: a timestamp be appended after i have entered the filename third: to

Re: [O] [PATCH 0/5] loop over headlines in active region

2011-08-25 Thread Štěpán Němec
On Thu, 25 Aug 2011 06:25:29 +0200 David Maus wrote: As for the macro: What stop me to implement a macro for the generic operation is that for now the macro would depend on the global customization variable. That's not a problem per se but according to my readings about macros (mostly in

Re: [O] Emacs and tablet devices

2011-08-25 Thread Eric S Fraga
T Helms maxco...@gmail.com writes: On 07/28/2011 08:44 AM, Jason F. McBrayer wrote: On Thu, 28 Jul 2011 13:59:18 +0200, Piter_ wrote: It may be not the best place to ask, but: How useful is emacs on tablet devices. I have been thinking about emacs and freerunner. But I have no clue how the

Re: [O] Is it possible to markup one character in a word?

2011-08-25 Thread John Hendy
This seems incredibly similar to a thread that *just* took place. Take a look at this: --- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg45883.html Any help there? John On Thu, Aug 25, 2011 at 3:00 AM, Vladimir Lomov lomov...@gmail.com wrote: Hi. Is it possible to markup one

[O] HTML publishing broken?

2011-08-25 Thread Sean Whitton
All of a sudden I’m finding that my website won’t publish. The only change I’ve made has been setting (setq org-export-html-divs '()) because this new variable breaks my CSS otherwise. Backtrace and page in question attached; any advice appreciated. S -- Sean Whitton / s...@silentflame.com

Re: [O] HTML publishing broken?

2011-08-25 Thread Bastien
Hi Sean, Sean Whitton s...@silentflame.com writes: All of a sudden I’m finding that my website won’t publish. The only change I’ve made has been setting (setq org-export-html-divs '()) because this new variable breaks my CSS otherwise. Can you try (setq org-export-html-divs '( )) and

Re: [O] agenda: void: category-pos

2011-08-25 Thread Bastien
Hi Michael, Michael Brand michael.ch.br...@gmail.com writes: Since http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=15798836e2bb84bebfb005375e08e38830fc90ee from yesterday or with the newest release_7.7-194-gd203b61 when I try to open the agenda with a minimal setup I get save-excursion:

Re: [O] [bug] Asterisks in source and example blocks interpreted as headings

2011-08-25 Thread Bastien
Hi Jason, Jason Dunsmore emacs-orgm...@dunsmor.com writes: Bastien b...@altern.org writes: Hi Jason, Jason Dunsmore emacs-orgm...@dunsmor.com writes: I noticed that lines with leading asterisks inside of source and example blocks are interpreted as headings: The attached patch should

Re: [O] Not merging org-lparse, org-xhtml org-odt to the core

2011-08-25 Thread Thomas S. Dye
Jambunathan K kjambunat...@gmail.com writes: Hi Jambunathan, I have made a decision not to merge org-lparse, org-xhtml org-odt in to Orgmode core. It is a very difficult decision for me to take considering that I had put all my heart in to it. (Btw, this decision has nothing to with me

Re: [O] [Accepted] icalendar: Make alarm duration RFC5545 compliant

2011-08-25 Thread Michal Sojka
Hi, it seems that the following patch still didn't appear in the official repo. Shall I resend it with the commit message according to http://orgmode.org/worg/org-contribute.html#sec-5, especially with TINYCHANGE? Thanks, Michal On Fri, 13 May 2011, Carsten Dominik wrote: Patch 803

Re: [O] Not merging org-lparse, org-xhtml org-odt to the core

2011-08-25 Thread Jambunathan K
I hope that you'll join me in expressing gratitude for all that they have contributed Ok. Done. Let bygones be bygones. What is important to me is that my work be available and used widely. All other concerns are secondary. I am on a sabbatical from work and I will be failing myself badly

Re: [O] Code vanishes on export

2011-08-25 Thread Vikas Rawal
If you kave not updated your org *.el files lately, I suggest you do so before going any further. I just did a git pull Let me see if it solves the problem. Vikas

Re: [O] [bug] Asterisks in source and example blocks interpreted as headings

2011-08-25 Thread Carsten Dominik
On Aug 25, 2011, at 3:27 PM, Bastien wrote: Hi Jason, Jason Dunsmore emacs-orgm...@dunsmor.com writes: Bastien b...@altern.org writes: Hi Jason, Jason Dunsmore emacs-orgm...@dunsmor.com writes: I noticed that lines with leading asterisks inside of source and example blocks are

Re: [O] Not merging org-lparse, org-xhtml org-odt to the core

2011-08-25 Thread Thomas S. Dye
Jambunathan K kjambunat...@gmail.com writes: I hope that you'll join me in expressing gratitude for all that they have contributed Ok. Done. Let bygones be bygones. What is important to me is that my work be available and used widely. All other concerns are secondary. I am on a

Re: [O] agenda: void: category-pos

2011-08-25 Thread Michael Brand
Hi Bastien On Thu, Aug 25, 2011 at 15:20, Bastien b...@altern.org wrote: Michael Brand michael.ch.br...@gmail.com writes: Since http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=15798836e2bb84bebfb005375e08e38830fc90ee from yesterday or with the newest release_7.7-194-gd203b61 when I try

Re: [O] [Accepted] icalendar: Make alarm duration RFC5545 compliant

2011-08-25 Thread Bastien
Hi Michal, Michal Sojka so...@os.inf.tu-dresden.de writes: Shall I resend it with the commit message according to http://orgmode.org/worg/org-contribute.html#sec-5, especially with TINYCHANGE? Yes, please do. Take care of the following: - use git format-patch if possible - create a

Re: [O] org-toggle-inline-images bug

2011-08-25 Thread William Xu
2011/8/25 Bastien b...@altern.org: Hi William, William Xu william@gmail.com writes: M-x org-toggle-inline-images doesn't work for links like this:   [[./ref/diskStructures.png]] It works well here on Emacs GNU Emacs 24.0.50.1 or 23.3.1 and Org 7.7 (latest git version.) What version

Re: [O] two tools may be useful for org-export

2011-08-25 Thread Bastien
zwz zhangwe...@gmail.com writes: Those days I came across two tools which I thought interesting and helpful if could be combined with org-export in some way. 1. Deck.js: a js lib for making modern html presentation. See http://imakewebthings.github.com/deck.js/#intro for more info. 2.

Re: [O] HTML publishing broken?

2011-08-25 Thread Sean Whitton
Hi Bastien, On Thu, Aug 25, 2011 at 03:08:38PM +0200, Bastien wrote: Sean Whitton s...@silentflame.com writes: All of a sudden I’m finding that my website won’t publish. The only change I’ve made has been setting (setq org-export-html-divs '()) because this new variable breaks my CSS

Re: [O] Not merging org-lparse, org-xhtml org-odt to the core

2011-08-25 Thread Jambunathan K
Bastien b...@altern.org writes: Jambunathan K kjambunat...@gmail.com writes: Bastien has stepped in to big shoes and he has to measure up. Those shoes are so big that there is room for more than one guy. And I'm *really* glad I can rely on people like you, Carsten, Eric, Nicolas, David

Re: [O] Not merging org-lparse, org-xhtml org-odt to the core

2011-08-25 Thread Bastien
Jambunathan K kjambunat...@gmail.com writes: Bastien has stepped in to big shoes and he has to measure up. Those shoes are so big that there is room for more than one guy. And I'm *really* glad I can rely on people like you, Carsten, Eric, Nicolas, David and many others to help me wear them

[O] Mediawiki export bugs and export to Doxygen

2011-08-25 Thread Michal Sojka
Hi all, I wanted to try the experimental Mediawiki exporter and it fails to export documents with dot code blocks (as the one provided below). I tried to fix that myself but my elisp and org-babel knowledge is not sufficient for that. I used org-mode 7.7. The error was: file-name-extension:

Re: [O] Problem with exporting image to PDF

2011-08-25 Thread Nick Dokos
suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi Toby, John and Nick, Its early in the morning for me, so whatever follows could simply be wrong. :-p On Thu, Aug 25, 2011 at 3:59 AM, Nick Dokos nicholas.do...@hp.com wrote: Thomas S. Dye t...@tsdye.com wrote: Toby

[O] [babel] link type to execute src_block

2011-08-25 Thread Torsten Wagner
Hi, is there a way already to execute a (named source block) by creating a link type? I checked the manual and there is a link type for shell and elisp but it seems not for babel. Something like [[babel: src_block_name()][Text]] With this, one could create all kind of little features within an

Re: [O] HTML publishing broken?

2011-08-25 Thread Jambunathan K
Bastien There has been too much churn around this area. Let me raise my voice again. Don't define variables. Define hooks, sexps or functions. Give enough ropes to the user. Patiently consider my inputs on s5 exporting. Make the div elements take attrs. You have earlier dismissed my inputs

[O] [PATCH] icalendar: Make alarm duration RFC5545 compliant

2011-08-25 Thread Michal Sojka
* org-icalendar.el (org-print-icalendar-entries): Make alarm duration RFC5545 compliant. The format of alarm trigger was incorrect because T letter from dur-time element was missing (see http://tools.ietf.org/html/rfc5545#section-3.3.6). This caused some software (such as KOrganizer) to not

[O] [Accepted] icalendar: Make alarm duration RFC5545 compliant

2011-08-25 Thread Bastien Guerry
Patch 913 (http://patchwork.newartisans.com/patch/913/) is now Accepted. Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C1314282867-11165-1-git-send-email-sojka%40os.inf.tu-dresden.de%3E Here is the original message containing the patch:

Re: [O] [PATCH] icalendar: Make alarm duration RFC5545 compliant

2011-08-25 Thread Bastien
Michal Sojka so...@os.inf.tu-dresden.de writes: * org-icalendar.el (org-print-icalendar-entries): Make alarm duration RFC5545 compliant. Applied -- thanks a lot for making the effort of providing the ChangeLog! Best, -- Bastien

Re: [O] Not merging org-lparse, org-xhtml org-odt to the core

2011-08-25 Thread Jambunathan K
And I'm *really* glad I can rely on people like you, Carsten, Eric, Nicolas, David and many others to help me wear them :) Remove me from the list. I am a charlatan and I don't want to even pretend to be otherwise. Please stay on the list! I meant the list of people Bastien lined up not

Re: [O] Todo with checkboxes is grayed out in agenda

2011-08-25 Thread Nathan Neff
On Thu, Aug 25, 2011 at 2:53 AM, Bastien b...@altern.org wrote: Hi Nathan, Nathan Neff nathan.n...@gmail.com writes: I have a todo like this: * todo something - [ ] first - [ ] next In the agenda, the todo something header is displayed grayed out. I lack contextual information --

Re: [O] Org-babel results preamble

2011-08-25 Thread Derek Thomas
On Thu, Aug 25, 2011 at 9:50 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote: I am slowly going through all the org emails that I have received in the three weeks I was off.  This was one of them and appears to not have been answered? In any case, possibly naming the src block may achieve what you

[O] org-odt/html table export: adjusting default behaviour?

2011-08-25 Thread Matt Price
The attached test file shows an org file with tables whose columns include substantial amounts of text. The default export to odt is pretty ugly in this case, and even in html (where things work to some extent) I would rather be able to control to some extent the way that long fields wrap. is

Re: [O] src blocks, listings package and captions

2011-08-25 Thread Eric Schulte
Giles Chamberlin giles.chamber...@cisco.com writes: I'm using the listings package and org-version 7.4 to generate latex/pdf output including source snippets. I'd like to add captions: Figure 1: My code and tried with the following to no avail: #+caption: My code #+begin_src clojure ;;

Re: [O] [babel] link type to execute src_block

2011-08-25 Thread Eric Schulte
Torsten Wagner torsten.wag...@gmail.com writes: Hi, is there a way already to execute a (named source block) by creating a link type? I checked the manual and there is a link type for shell and elisp but it seems not for babel. Something like [[babel: src_block_name()][Text]] With this,

Re: [O] org-odt/html table export: adjusting default behaviour?

2011-08-25 Thread Matt Price
this time I've actually attached the file... On Thu, Aug 25, 2011 at 11:12 AM, Matt Price mopto...@gmail.com wrote: The attached test file shows  an org file with tables whose columns include substantial amounts of text.  The default export to odt is pretty ugly in this case, and even in html

[O] collapsing some headings on html export?

2011-08-25 Thread Matt Price
does anyone have any advice on the following: I'm thinking I would like to collapse certain segments of a document when exporting to HTML, so e.g., if it looks like this: * Outline: Semester 1 ** 1.2011-09-15 Thu [[file:./syllabus/what-is-history-for][What is History For?]] Why we should write

Re: [O] src blocks, listings package and captions

2011-08-25 Thread Thomas S. Dye
Bastien b...@altern.org writes: Hi Giles, Giles Chamberlin giles.chamber...@cisco.com writes: I'm using the listings package and org-version 7.4 to generate latex/pdf output including source snippets. I'd like to add captions: Figure 1: My code and tried with the following to no avail:

[O] [bug] Inconsistent tag alignment in org-indent-mode

2011-08-25 Thread Jason Dunsmore
I noticed the tag alignment produces inconsistent results in org-indent-mode. If you type in the header, the normal (non-indent-mode) indentation is used, and the tags do not appear aligned. If you add tags or type C-c C-c the tags are aligned correctly. Here's an example file:

Re: [O] [bug] Inconsistent tag alignment in org-indent-mode

2011-08-25 Thread Michael Brand
Hi Jason This reminds me of a similar problem with tag alignment that I solved with a patch that did not get any feedback yet. Can you try if this patch solves your problem too? http://thread.gmane.org/gmane.emacs.orgmode/42564 Michael On Thu, Aug 25, 2011 at 18:15, Jason Dunsmore

Re: [O] agenda: void: category-pos

2011-08-25 Thread Achim Gratz
Bastien b...@altern.org writes: This should be fixed -- please confirm. Nick, thanks for the patch, I pushed a more complete one. The byte compiler still complains about this: In org-search-view: org-agenda.el:3944:48:Warning: assignment to free variable `category-pos'

[O] Styling HTML output

2011-08-25 Thread Ken.Williams
I wanted to share some CSS code that I've found useful for exported HTML documents. It adds a little R or sh or Perl (etc.) label to the top of a source block. (setq org-export-html-style style type=\text/css\ !--/*--![CDATA[/*!--*/ .src { background-color: #F5FFF5;

Re: [O] Underline ONLY the first character of a word?

2011-08-25 Thread Michael Hannon
Thanks to Suvayu, John, and Nick (in chronological order) for thoughtful comments on this.  I'm still considering my options. -- Mike

Re: [O] org-odt/html table export: adjusting default behaviour?

2011-08-25 Thread Jambunathan K
Matt Price mopto...@gmail.com writes: The attached test file shows an org file with tables whose columns include substantial amounts of text. The default export to odt is pretty ugly in this case, and even in html (where things work to some extent) I would rather be able to control to some

Re: [O] org-odt/html table export: adjusting default behaviour?

2011-08-25 Thread Jambunathan K
Matt Price mopto...@gmail.com writes: The attached test file shows an org file with tables whose columns include substantial amounts of text. The default export to odt is pretty ugly in this case, and even in html (where things work to some extent) I would rather be able to control to some

[O] monospace (=) and quotes not getting along

2011-08-25 Thread Michael Hannon
Greetings.  I have another dumb question related to HTML export.  In the document I'm revising I have some R code and some references to R variables. I'd like the R code and variables to appear in monospaced font.  This seems easy enough.  Here's an example that works as I want it to work:     To

Re: [O] HTML5 presentations

2011-08-25 Thread Eric Schulte
Matt Price mopto...@gmail.com writes: On Wed, Aug 24, 2011 at 8:14 AM, zwz zhangwe...@gmail.com wrote: Those days I came across two tools which I thought interesting and helpful if could be combined with org-export in some way. 1. Deck.js: a js lib for making modern html presentation. See

Re: [O] Todo with checkboxes is grayed out in agenda

2011-08-25 Thread Nicolas Goaziou
Hello, Nathan Neff nathan.n...@gmail.com writes: My org-enforce-checkbox-dependencies is t You should set it to nil. Regards, -- Nicolas Goaziou

[O] [Babel] Preserving tabs in code blocks

2011-08-25 Thread Bernt Hansen
Hi all, I want to include the contents of a file which requires TABS between fields in a #+begin_src ... #+end_src block. When I use C-c ' to edit the block the TABS are all converted back to spaces. I want to be able to tangle the file and preserve the TABS which are required as input to some

[O] [Babel] Blank line preceeds tangled data

2011-08-25 Thread Bernt Hansen
Hi, When I tangle some file such as #+begin_src sh :tangle x.sh #!/bin/sh echo done #+end_src I get the following output which includes a blank line up front. ,[ x.sh ] | | #!/bin/sh | echo done ` Doesn't this break the shebang line on unix? I don't think the leading blank line

Re: [O] Not merging org-lparse, org-xhtml org-odt to the core

2011-08-25 Thread Matthew Sauer
To all, I would just like to, at this point, say that I am honored to have read this discussion. I was very worried that a major blowout was going to occur but you have shown me something that I appreciate about OSS, it not only attempts to make the world better through Freedom but it makes us

[O] Using Code Blocks in Org Tables

2011-08-25 Thread Henri-Paul Indiogine
I am trying to have the final output of several bash script appear in a summary table. I am trying to follow this example: http://orgmode.org/worg/org-contrib/babel/intro.html#spreadsheet This is my test system: -8---8-

Re: [O] monospace (=) and quotes not getting along

2011-08-25 Thread Michael Hannon
Michael Gauland mikely...@no8wireless.co.nz wrote: Michael Hannon jm_hannon at yahoo.com writes: To define =my_frabbitz= in this model, we issue the command:     = my_frabbitz = someRandomWord= The my_frabbitz in the sentence comes out in monospace, but the R codedoesn't.  It seems that

Re: [O] [Babel] Blank line preceeds tangled data

2011-08-25 Thread Nick Dokos
Bernt Hansen be...@norang.ca wrote: Hi, When I tangle some file such as #+begin_src sh :tangle x.sh #!/bin/sh echo done #+end_src I get the following output which includes a blank line up front. ,[ x.sh ] | | #!/bin/sh | echo done ` Doesn't this break the

Re: [O] Is it possible to markup one character in a word?

2011-08-25 Thread Vladimir Lomov
Hello, ** John Hendy [2011-08-25 07:06:54 -0500]: This seems incredibly similar to a thread that *just* took place. Take a look at this: --- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg45883.html Thanks, I read it. Any help there? Actually not much, this was example from a table

Re: [O] collapsing some headings on html export?

2011-08-25 Thread Christian Moe
OK, the simple css solution I posted last night fails too easily. Should have known, but it's been a while. (If you add a second folding subheading beneath a folding heading (as you mouse down toward the second subhead, the first subhead folds, leaving you no longer hovered over the parent

Re: [O] Is it possible to markup one character in a word?

2011-08-25 Thread Jambunathan K
Vladimir Lomov lomov...@gmail.com writes: Hi. Is it possible to markup one character in a word, like e*X*ecute. For now this don't work. I tried to add ZERO WIDTH SPACE (found on mailing list) before first * and last * like in example e​*X*​ecute but this don't work also. Your suggestion

Re: [O] Is it possible to markup one character in a word?

2011-08-25 Thread Jambunathan K
3. Goto Allowed chars in pre and do as in 2. ^^^ post Copy-Paste error. Replace pre by post. --