Browse Source

Improve code for narrowing in nroam--insert

* nroam.el (nroam--insert): Improve code for narrowing.
master
Gustav Wikström 1 month ago
parent
commit
57e6e0f994
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      nroam.el

+ 1
- 3
nroam.el View File

@ -192,10 +192,8 @@ Make the region inserted by BODY read-only, and marked with
(with-nroam-markers
(seq-do #'funcall nroam-sections))
(when (nroam--sections-inserted-p)
(goto-char (+ p 1)) ; maybe to implicit. But loc. of new
; backlinks section
(save-restriction
(org-narrow-to-subtree)
(narrow-to-region p (point-max))
(org-set-startup-visibility)))))))
(defun nroam--get-backlinks ()


Loading…
Cancel
Save