Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in Emacs, org-inlinetask, and/or org-sticky-header #8

Closed
alphapapa opened this issue Apr 24, 2017 · 5 comments
Closed

Comments

@alphapapa
Copy link
Owner

Charles C. Berry reported: https://lists.gnu.org/archive/html/emacs-orgmode/2017-04/msg00261.html

@chasberry
Copy link

I think this issue can be resolved by changing org-sticky-header--fetch-stickyline as follows:

Add (not (bobp)) to the (while (and conditions that skip inlinetasks. This prevents unending looping on (forward-line -1) when an inlinetask is at the top of a buffer or the visible part of a narrowed buffer.

Change save-excursion to org-with-wide-buffer. This allows access to the headers above the visible portion of a narrowed buffer so they may be included in the sticky line.

@alphapapa
Copy link
Owner Author

Thanks, Charles, I'll try your suggestions soon.

alphapapa added a commit that referenced this issue Apr 6, 2019
Use org-with-wide-buffer instead of save-excursion.  Prevents infinite
loop when buffer is narrowed to a region that has no parent heading.

See #8.  Thanks to Charles C. Berry (@chasberry).

Released as 1.0.1.
@alphapapa
Copy link
Owner Author

@chasberry Sorry for the long delay. This should fix the infinite loop when narrowed.

I wasn't able to reproduce the export problem. I tried exporting both buffer and subtree context with LaTeX. There may be a configuration difference between us, as I pressed l L, and there was no prompt at which to press y.

If you have the time and interest, please try to reproduce the export problem again with the latest version of org-sticky-header. If you can, please try also to reproduce with emacs -q. If it still happens then, please let me know which version of Org you're using.

Thanks.

@chasberry
Copy link

org-mode has had many changes since 2017. I just updated to 9.2.3.

Trying my ECM, I found that it worked as it should for both export and narrowing with a version of org-sticky-header.el from 2017.

Your new version works fine, too. And it handles inlinetasks that in the old 2017 version sometimes showed up as sticky headlines, I think.

@alphapapa
Copy link
Owner Author

Great, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants