save buffer after replacing non-ascii
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Wed, 4 Mar 2015 16:19:50 +0000 (11:19 -0500)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Wed, 4 Mar 2015 16:19:50 +0000 (11:19 -0500)
jmax-bibtex.el

index 9dc8bfd..9927fef 100644 (file)
@@ -263,7 +263,8 @@ This is defined in `jmax-bibtex-journal-abbreviations'."
     (dolist (char (mapcar (lambda (x) (car x)) jmax-nonascii-latex-replacements))
       (while (re-search-forward char nil t)
        (replace-match (cdr (assoc char jmax-nonascii-latex-replacements))))
-      (goto-char (point-min)))))
+      (goto-char (point-min))))
+  (save-buffer))
 
 (add-hook 'org-ref-clean-bibtex-entry-hook 'jmax-replace-nonascii)