* `org-cycle-hook' vs `outline-view-change-hook'
@ 2014-03-08 15:00 Thorsten Jolitz
2014-03-13 9:46 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Jolitz @ 2014-03-08 15:00 UTC (permalink / raw
To: emacs-orgmode
Hi List,
I managed to copy and adapt the Org speed-commands to outshine.el, so
that one can enjoy the one-key navigation and cycling commands in
(outshine) source-code buffers too. This works well, although there is
obviously a lot of cycling going on when exploring a source file with
these speed commands.
Another feature I tried to copy from Org-mode is the hiding of
:ARCHIVED: subtrees - I would find it very handy to have dedicated (and
maybe extensive) :comment: tagged headers in (outshine) source-code
files that stay folded and don't get in the way when navigating or
cycling the buffer.
I copied and adapted stuff from Org-mode that seems to work somehow -
but when I add the hook to `outline-view-change-hook' I immediately get
the `max-lisp-eval-depth' exceeded error (its set to 600 in my system).
Org-mode functionality is always more complex than what is needed for
outshine, I cannot simply copy&paste or require existing stuff. But I
wonder what is the magic behind the Org-mode hooks like `org-cycle-hook'
- how do they avoid exceeding 'max-lisp-eval-depth' when there are
constant visibility state changes in reasonable big Org-files?
Or should it work even for bigger files and there must be an error on my
side (e.g. in loops/recursions)? I'm not sure how powerful Emacs is
w.r.t. this, i.e. how easy it is to bring it to the its limits with such
a hook that is triggered all the time.
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `org-cycle-hook' vs `outline-view-change-hook'
2014-03-08 15:00 `org-cycle-hook' vs `outline-view-change-hook' Thorsten Jolitz
@ 2014-03-13 9:46 ` Bastien
2014-03-13 11:56 ` Thorsten Jolitz
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2014-03-13 9:46 UTC (permalink / raw
To: Thorsten Jolitz; +Cc: emacs-orgmode
Hi Thorsten,
Thorsten Jolitz <tjolitz@gmail.com> writes:
> Or should it work even for bigger files and there must be an error on my
> side (e.g. in loops/recursions)? I'm not sure how powerful Emacs is
> w.r.t. this, i.e. how easy it is to bring it to the its limits with such
> a hook that is triggered all the time.
Maybe you can show us some code? The shortest the better.
At least that's the way I may be able to help myself.
Best,
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `org-cycle-hook' vs `outline-view-change-hook'
2014-03-13 9:46 ` Bastien
@ 2014-03-13 11:56 ` Thorsten Jolitz
0 siblings, 0 replies; 3+ messages in thread
From: Thorsten Jolitz @ 2014-03-13 11:56 UTC (permalink / raw
To: emacs-orgmode
Bastien <bzg@gnu.org> writes:
Hi Bastien,
> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> Or should it work even for bigger files and there must be an error on my
>> side (e.g. in loops/recursions)? I'm not sure how powerful Emacs is
>> w.r.t. this, i.e. how easy it is to bring it to the its limits with such
>> a hook that is triggered all the time.
>
> Maybe you can show us some code? The shortest the better.
> At least that's the way I may be able to help myself.
not so easy to build a MWE in that case, but probably the only way to
get some help. I'll try ...
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-13 12:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-08 15:00 `org-cycle-hook' vs `outline-view-change-hook' Thorsten Jolitz
2014-03-13 9:46 ` Bastien
2014-03-13 11:56 ` Thorsten Jolitz
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.