1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 06:00:50 -08:00

(po-find-file-coding-system-guts): Use

with-temp-buffer instead of po-with-temp-buffer.
This commit is contained in:
Eli Zaretskii 2002-03-15 19:30:36 +00:00
parent 4eb840763c
commit 2ca514455e
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
* textmodes/po.el (po-find-file-coding-system-guts): Use
with-temp-buffer instead of po-with-temp-buffer.
* international/mule-conf.el (file-coding-system-alist): Add an
association for PO files.

View file

@ -149,7 +149,7 @@ Return a Mule (DECODING . ENCODING) pair, according to PO file charset.
Called through file-coding-system-alist, before the file is visited for real."
(and (eq operation 'insert-file-contents)
(file-exists-p filename)
(po-with-temp-buffer
(with-temp-buffer
(let* ((coding-system-for-read 'no-conversion)
(charset (or (po-find-charset filename) "ascii"))
(charset-upper (intern (upcase charset)))