diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-11-04 22:40:02 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-11-04 22:40:02 +0100 |
commit | 271e58f2dd11b63a1c9f960585b75763095fc1b9 (patch) | |
tree | 15d0da2a28f5c8f78f647b168e3c81d881650770 | |
parent | 6186ed3a222232fe897ad8499bca4736486b75de (diff) | |
download | org-mode-271e58f2dd11b63a1c9f960585b75763095fc1b9.tar.gz |
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>
-rw-r--r-- | lisp/org-id.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org-id.el b/lisp/org-id.el index a508e76..09b873c 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -539,8 +539,7 @@ When FILES is given, scan these files instead." (with-temp-buffer (condition-case nil (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)))) (error (message "Could not read org-id-values from %s. Setting it to nil." |