Re: [Orgmode] [PATCH] org-macs: store evaluated version of pom

2011-02-27 Thread Bastien
Hi Julien, Julien Danjou writes: > Yes it is. This patch just fix one problem. Without it, what is set > with pom is evaluated multiple times: > > (org-with-point-at (function-that-return-some-marker) > (do-stuff)) > > (function-that-return-some-marker) will be called several times, which > ca

Re: [Orgmode] [PATCH] org-macs: store evaluated version of pom

2011-02-26 Thread Julien Danjou
On Sat, Feb 26 2011, Bastien wrote: >> * lisp/org-macs.el (org-with-point-at): Store evaluated version of pom. This >> fixes a potential bug when using (org-with-point-at (func) …), where (func) >> would be evaluated multiple times > > I'm not sure I understand this patch. > > Can you show an actu

Re: [Orgmode] [PATCH] org-macs: store evaluated version of pom

2011-02-26 Thread Bastien
Hi Julien, Julien Danjou writes: > * lisp/org-macs.el (org-with-point-at): Store evaluated version of pom. This > fixes a potential bug when using (org-with-point-at (func) …), where (func) > would be evaluated multiple times I'm not sure I understand this patch. Can you show an actual use of

[Orgmode] [PATCH] org-macs: store evaluated version of pom

2011-02-25 Thread Julien Danjou
* lisp/org-macs.el (org-with-point-at): Store evaluated version of pom. This fixes a potential bug when using (org-with-point-at (func) …), where (func) would be evaluated multiple times, therefore might return different results if a marker was returned and different each time. Signed-off-by: Juli