]> git.donarmstrong.com Git - org-ref.git/commitdiff
modify centering on open note, and show entry
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Tue, 23 Sep 2014 20:18:24 +0000 (16:18 -0400)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Tue, 23 Sep 2014 20:18:24 +0000 (16:18 -0400)
org-ref.org

index 5a861776feb9307a605f82221392b29606a23ffc..97d047247574cdef8d8697ad4fcbd5c9c28c55f9 100644 (file)
@@ -1723,8 +1723,9 @@ construct the heading by hand."
     ;; put new entry in notes if we don't find it.
     (if (re-search-forward (format ":Custom_ID: %s$" key) nil 'end)
        (progn
-         (show-subtree)
-         (outline-previous-visible-heading 1))
+         (org-show-entry)
+         (outline-previous-visible-heading 1)
+         (recenter-top-bottom 0))
       ;; no entry found, so add one    
       (insert (format "\n** TODO %s - %s" year title))
       (insert (format"