Skip to content
New issue

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

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

Already on GitHub? # to your account

demo-it--presentation-section cannot find section when buffer is narrowed by ord-tree-slide #22

Open
cdmojoli opened this issue Jul 25, 2024 · 1 comment

Comments

@cdmojoli
Copy link

I call (demo-it-presentation) repeatedly during a presentation, to navigate to arbitrary headers. (I chose not use (demo-it-presentation-advance).) org-tree-slide leaves the buffer narrowed, so demo-it-presentation-section fails.

This solves my problem:

--- /home/cdmojoli/.emacs.d/elpa/demo-it-20211221.2152/demo-it-present.el
+++ #<buffer demo-it-present.el>
@@ -166,6 +166,7 @@
     (when (fboundp 'org-tree-slide-mode)
       (org-tree-slide-content))
 
+    (widen)
     (goto-char (point-min))
     (re-search-forward (format "^\*+ +%s" section))

It works for me, but I have not tested for side effects.

@cdmojoli
Copy link
Author

Not a good solution, it breaks other features. Reworked to use demo-it-presentation-advance.

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

No branches or pull requests

1 participant