I have a new idea.  We could establish the convention that you can
pass a buffer to find-operation-coding-system instead of a file name,
for the `insert-file-contents' operation.  And elements of
Vfile_coding_system_alist could have symbols instead of regexps; the
symbol would match the buffer's major mode.

Vfile_coding_system_alist elements that have regexps would get the
buffer-file-name from the buffer, and match against it.  Or perhaps in
this case they should never match.  I am not sure which choice is
better.

I think that provides 100% clean way to fix it.  Can you try
implementing this method?


_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to