Browse Source

org-id.el (org-id-locations-save): Bind print-(level,length) to nil

* lisp/org-id.el (org-id-locations-save): Bind print-(level,length) to
nil in this function.

Having these variables set to non-nil values results in an unreadable
result being written to `org-id-locations-file'.
Aaron Ecay 12 years ago
parent
commit
8993a2f7a9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/org-id.el

+ 3 - 1
lisp/org-id.el

@@ -527,7 +527,9 @@ When CHECK is given, prepare detailed information about duplicate IDs."
 		   (org-id-hash-to-alist org-id-locations)
 		 org-id-locations)))
       (with-temp-file org-id-locations-file
-	(print out (current-buffer))))))
+	(let ((print-level nil)
+	      (print-length nil))
+	  (print out (current-buffer)))))))
 
 (defun org-id-locations-load ()
   "Read the data from `org-id-locations-file'."