Re: [O] understanding the function outline-level

2011-06-09 Thread Carsten Dominik
On Jun 7, 2011, at 8:33 PM, Niels Giesen wrote: > Hi Michael, > > match data get set by searches. One can inhibit match-data being > cluttered by using the `save-match-data' macro (you should probably do > so when using searches in a lisp program). > > Outline.el seems to make very frequent use

Re: [O] understanding the function outline-level

2011-06-09 Thread Michael Brand
On Tue, Jun 7, 2011 at 20:33, Niels Giesen wrote: > Some prodding about led me to believe the searching in > `outline-back-to-heading' is your suspect (but I have not investigated > this further). At least > > (progn >  (outline-back-to-heading) >  (outline-level)) > > Returns a reasonable answer

Re: [O] understanding the function outline-level

2011-06-07 Thread Aankhen
Hi Michael, On Tue, Jun 7, 2011 at 21:53, Michael Brand wrote: > I am on the way of tracking down an (Org?) buglet and now > outline-level tries to strike me with my lack of experience with > "Match Data" of Emacs search and I would like to ask for some help to > understand. > > M-: (outline-leve

Re: [O] understanding the function outline-level

2011-06-07 Thread Niels Giesen
Hi Michael, match data get set by searches. One can inhibit match-data being cluttered by using the `save-match-data' macro (you should probably do so when using searches in a lisp program). Outline.el seems to make very frequent use of this 'global' data; instead of passing this data on via func

Re: [O] understanding the function outline-level

2011-06-07 Thread Jambunathan K
Michael Brand writes: > Hi all > > I am on the way of tracking down an (Org?) buglet and now > outline-level tries to strike me with my lack of experience with > "Match Data" of Emacs search and I would like to ask for some help to > understand. > > M-: (outline-level) returns a value that I don'