In article <[EMAIL PROTECTED]>, Richard Stallman <[EMAIL PROTECTED]> writes:
> I don't understand how that solve the problem. When > find-operation-coding-system is called, even if a buffer is > given, the major mode of the buffer is not yet decided. > I am somewhat confused. My understanding is that it recognizes the > coding system for a PO file by calling a function that is special for > PO files only. Is that correct? Yes. > Can find-operation-coding-system tell, given the buffer, that the file > is a PO file? I presume so. No if buffer-file-name of the buffer doesn't match with "\\.po[tx]?\\'\\|\\.po\\." (an entry in file-coding-system-alist). First of all, po-mode is not included in Emacs. Emacs currently just provides a way to detect coding-system for PO files. > What kind of test would you want to use? If a buffer is given to find-operation-coding-system, treating buffer-file-name of the buffer as a file name is the natural thing. And to make it work, we must set buffer-file-name of the PO file buffer decoded from test.po.gz to test.po just while callding find-operation-coding-system. --- Kenichi Handa [EMAIL PROTECTED] _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug