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 5a86177..97d0472 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"