]> git.donarmstrong.com Git - org-ref.git/commitdiff
wrap in save-excursion
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Sun, 25 Jan 2015 17:40:05 +0000 (12:40 -0500)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Sun, 25 Jan 2015 17:40:05 +0000 (12:40 -0500)
org-ref.org

index 858ab3798d3be5776eedcc66df196022600d94d9..4276b0d48a61bb6e8927aa303c11ec101947f715 100644 (file)
@@ -2716,8 +2716,8 @@ ref:test citep:test  label:rett
   (interactive)
   (let* ((object (org-element-context))
         (type (org-element-property :type object)))
-
-    (cond
+    (save-excursion
+      (cond
      ;; cite links
      ((-contains? org-ref-cite-types type)
       (message (org-ref-get-citation-string-at-point)))
@@ -2741,7 +2741,7 @@ ref:test citep:test  label:rett
                  " occurence"
                  (when (or (= count 0)
                            (> count 1))
-                   "s"))))))))
+                   "s")))))))))
 
 
 (when org-ref-show-citation-on-enter