diff options
author | Gustav Wikström | 2021-02-24 19:57:39 +0100 |
---|---|---|
committer | Gustav Wikström | 2021-02-24 19:57:39 +0100 |
commit | 57e6e0f99495fdb819f57fabd1ff4452eed87189 (patch) | |
tree | e28e1728a5f33fa23e228cf669ba8c5c76bf3f00 | |
parent | a5126d19ac80833a1dbde6abae151127431e4e22 (diff) | |
download | nroam-57e6e0f99495fdb819f57fabd1ff4452eed87189.tar.gz nroam-57e6e0f99495fdb819f57fabd1ff4452eed87189.zip |
Improve code for narrowing in nroam--insert
* nroam.el (nroam--insert): Improve code for narrowing.
-rw-r--r-- | nroam.el | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 () |