Commit 514a14ff authored by Phillip Lord's avatar Phillip Lord
Browse files

Do not use find-file non-interactively

 * lisp/international/titdic-cnv (miscdic-convert): Use
   insert-file-contents in place of find-file.
parent c2469c50
......@@ -1167,11 +1167,14 @@ the generated Quail package is saved."
(if (eq coding 'iso-2022-cn-ext) "Chinese-CNS"
"\" \"" title "\" t\n")
(let* ((coding-system-for-read
(coding-system-change-eol-conversion coding 'unix))
(dicbuf (find-file-noselect filename)))
(funcall converter dicbuf name title)
(kill-buffer dicbuf))
(let ((coding-system-for-read
(coding-system-change-eol-conversion coding 'unix))
(dstbuf (current-buffer)))
(insert-file-contents filename)
(let ((dicbuf (current-buffer)))
(with-current-buffer dstbuf
(funcall converter dicbuf name title)))))
(insert ";; Local Variables:\n"
";; version-control: never\n"
";; no-update-autoloads: t\n"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment