Re: [O] whether in drawer?

2016-04-28 Thread Samuel Wales
On 4/28/16, Adam Porter wrote: > Do you have any other posts talking about this? I'm interested in > fixing this too. I've run into situations occasionally where undo-tree > seems to try to operate on a region or a hidden/folded area, and it just > kind of goes bonkers, and

Re: [O] whether in drawer?

2016-04-28 Thread Adam Porter
Samuel Wales writes: > thank you. for years i have been trying to advise undo-tree to deal > with visibility properly. namely, to not try to undo or redo > invisibly, but also not to leave too much stuff visible. maybe if i > can get it to do canonical visibility except

Re: [O] whether in drawer?

2016-04-28 Thread Samuel Wales
thank you. for years i have been trying to advise undo-tree to deal with visibility properly. namely, to not try to undo or redo invisibly, but also not to leave too much stuff visible. maybe if i can get it to do canonical visibility except in drawers (where it should keep the drawer open if

Re: [O] whether in drawer?

2016-04-27 Thread Derek Feichtinger
Hi Samuel Wales gmail.com> writes: > > can one tell whether point is in a drawer? > > By coincidence just posted a patch request which contains the functionality you desire. I use org-element-at-point and then test for drawer/property drawer: (defun org-open-if-in-drawer () (let ((element

[O] whether in drawer?

2016-04-27 Thread Samuel Wales
can one tell whether point is in a drawer?