diff options
| author | Phillip Lord | 2017-01-20 15:11:50 +0000 |
|---|---|---|
| committer | Phillip Lord | 2017-02-28 21:12:59 +0000 |
| commit | 514a14ffd826e2686a106f45b7e7495ab42fe12e (patch) | |
| tree | 19f7ae33643a1dc3090fc52c693cac7573686c56 | |
| parent | c2469c50e80f4a18448e6f5f45e960cf00944822 (diff) | |
| download | emacs-514a14ffd826e2686a106f45b7e7495ab42fe12e.tar.gz emacs-514a14ffd826e2686a106f45b7e7495ab42fe12e.zip | |
Do not use find-file non-interactively
* lisp/international/titdic-cnv (miscdic-convert): Use
insert-file-contents in place of find-file.
| -rw-r--r-- | lisp/international/titdic-cnv.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el index 6f65d491ed4..130bc742a51 100644 --- a/lisp/international/titdic-cnv.el +++ b/lisp/international/titdic-cnv.el | |||
| @@ -1167,11 +1167,14 @@ the generated Quail package is saved." | |||
| 1167 | (if (eq coding 'iso-2022-cn-ext) "Chinese-CNS" | 1167 | (if (eq coding 'iso-2022-cn-ext) "Chinese-CNS" |
| 1168 | "Chinese-GB")) | 1168 | "Chinese-GB")) |
| 1169 | "\" \"" title "\" t\n") | 1169 | "\" \"" title "\" t\n") |
| 1170 | (let* ((coding-system-for-read | 1170 | (let ((coding-system-for-read |
| 1171 | (coding-system-change-eol-conversion coding 'unix)) | 1171 | (coding-system-change-eol-conversion coding 'unix)) |
| 1172 | (dicbuf (find-file-noselect filename))) | 1172 | (dstbuf (current-buffer))) |
| 1173 | (funcall converter dicbuf name title) | 1173 | (with-temp-buffer |
| 1174 | (kill-buffer dicbuf)) | 1174 | (insert-file-contents filename) |
| 1175 | (let ((dicbuf (current-buffer))) | ||
| 1176 | (with-current-buffer dstbuf | ||
| 1177 | (funcall converter dicbuf name title))))) | ||
| 1175 | (insert ";; Local Variables:\n" | 1178 | (insert ";; Local Variables:\n" |
| 1176 | ";; version-control: never\n" | 1179 | ";; version-control: never\n" |
| 1177 | ";; no-update-autoloads: t\n" | 1180 | ";; no-update-autoloads: t\n" |