Browse Source

Fix characters conversion issue when loading `org-id-locations-file'

* lisp/org-id.el (org-id-locations-load): Use `insert-file-contents'
  instead of `insert-file-contents-literally'.

Reported-by: Anders Johansson <mejlaandersj@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00037.html>
Nicolas Goaziou 7 years ago
parent
commit
271e58f2dd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/org-id.el

+ 1 - 2
lisp/org-id.el

@@ -539,8 +539,7 @@ When FILES is given, scan these files instead."
     (with-temp-buffer
     (with-temp-buffer
       (condition-case nil
       (condition-case nil
 	  (progn
 	  (progn
-	    (insert-file-contents-literally org-id-locations-file)
-	    (goto-char (point-min))
+	    (insert-file-contents org-id-locations-file)
 	    (setq org-id-locations (read (current-buffer))))
 	    (setq org-id-locations (read (current-buffer))))
 	(error
 	(error
 	 (message "Could not read org-id-values from %s.  Setting it to nil."
 	 (message "Could not read org-id-values from %s.  Setting it to nil."