Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Prevent accidental narrowing introduce by multi-pdf notes searching.
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfochrist committed Nov 20, 2016
1 parent b6618d7 commit e8d223f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interleave.el
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ It (possibly) narrows the subtree when found."
(when (re-search-forward (format "^\[ \t\r\]*\:interleave_page_note\: %s$"
page)
nil t)
;; widen the buffer again for the case it is narrowed from
;; multi-pdf notes search. Kinda ugly I know. Maybe a macro helps?
(widen)
(org-back-to-heading t)
(interleave--narrow-to-subtree)
(org-show-subtree)
Expand Down

0 comments on commit e8d223f

Please sign in to comment.