[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Preventing org-cycle from scrolling the buffer
From: |
Dmitrii Korobeinikov |
Subject: |
Re: Preventing org-cycle from scrolling the buffer |
Date: |
Fri, 3 Apr 2020 16:41:16 +0600 |
> AFAICS this behavior can be controlled via customizable variable
> org-cycle-hook { M-x customize-variable RET org-cycle-hook RET } by
> removing entry org-optimize-window-after-visibility-change.
Nice, I see!
> IDK. AFAICS you are right with your argumentation. I don't see the
> need of that feature, though, yet. But that's just me. I think you are
> the best candidate to try an implementation of the feature.
I have attached a small patch, seems to be working! Of course, if this
is to be merged, that defvar will have to turn into a defcustom.
Best,
DK
вт, 31 мар. 2020 г. в 21:29, Marco Wahl <address@hidden>:
>
> Dmitrii Korobeinikov <address@hidden> writes:
> > When calling org-cycle on a collapsed section which contains a lot of
> > text, the headline is adjusted to the top of the page. Collapsing it
> > doesn't revert the scroll, which makes it hard to quickly peek at
> > what's in the section without getting disoriented. Is there a flag or
> > some other way of turning off this autoscroll?
>
> AFAICS this behavior can be controlled via customizable variable
> org-cycle-hook { M-x customize-variable RET org-cycle-hook RET } by
> removing entry org-optimize-window-after-visibility-change.
>
> > Scroll revert wouldn't be so bad to have either, by the way (in
> > addition to, not instead of, though). Since org knows when the cursor
> > moves away from the headline after tabbing, it seems this feature can
> > be implemented without too much hassle. I would even go as far as to
> > suggest making it a default if it gets done.
> >
> > What do you think?
>
> IDK. AFAICS you are right with your argumentation. I don't see the
> need of that feature, though, yet. But that's just me. I think you are
> the best candidate to try an implementation of the feature.
>
>
> Best regards,
> -- Marco
0001-org.el-Add-an-option-to-restore-scroll-position-when.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Preventing org-cycle from scrolling the buffer,
Dmitrii Korobeinikov <=