Here is what I wish to achieve:
(defun rcd-edit-value (value) (let ((file (make-temp-file "rcd-db-" nil ".txt" value))) (find-file file) (string-from-file))) (defun string-from-file (file) "Return file content." (with-temp-buffer (insert-file-contents file) (buffer-string)))
(find-file file) is not blocking the function, function returns before the file was edited and killed. I would like to edit the file, and return, so that value is returned back, and that temporary file remains on the disk.