[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: coding system for html files (unibyte mode)]
From: |
Kenichi Handa |
Subject: |
Re: address@hidden: coding system for html files (unibyte mode)] |
Date: |
Mon, 25 Apr 2005 13:32:15 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <address@hidden>, Richard Stallman <address@hidden> writes:
> [I sent this message two weeks ago but did not get a response.]
Sorry for the late response. I've been overloaded.
> Whatever forces use of raw-text-unix probably should override the cookie
> silently so as not to annoy the user. Do you agree?
Yes, I agree. I've just installed the attached fix.
> ------- Start of forwarded message -------
> Date: Fri, 08 Apr 2005 18:56:15 +0200
> From: Roland Winkler <address@hidden>
[...]
> Symptoms:
> cat > foo.htm << EOF
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </html>
> EOF
> When I start "emacs --no-init-file foo.htm", I can edit and save the
> file as expected.
> On the other hand, when I start "emacs --unibyte --no-init-file foo.htm",
> then edit the file and save it, emacs asks me:
> Selected encoding raw-text-unix disagrees with iso-8859-1-unix
> specified by file contents. Really save (else edit coding cookies
> and try again)? (yes or no)
---
Ken'ichi HANDA
address@hidden
2005-04-25 Kenichi Handa <address@hidden>
* international/mule-cmds.el (select-safe-coding-system): Don't
check consistency with coding: spec, etc if raw-text or
no-conversion was found to be safe.
Index: mule-cmds.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/international/mule-cmds.el,v
retrieving revision 1.270
retrieving revision 1.271
diff -u -c -r1.270 -r1.271
cvs diff: conflicting specifications of output style
*** mule-cmds.el 21 Apr 2005 05:01:38 -0000 1.270
--- mule-cmds.el 25 Apr 2005 04:30:21 -0000 1.271
***************
*** 927,933 ****
;; give when file is re-read.
;; But don't do this if we explicitly ignored the cookie
;; by using `find-file-literally'.
! (unless (or (stringp from) find-file-literally)
(let ((auto-cs (save-excursion
(save-restriction
(widen)
--- 927,935 ----
;; give when file is re-read.
;; But don't do this if we explicitly ignored the cookie
;; by using `find-file-literally'.
! (unless (or (stringp from)
! find-file-literally
! (memq (coding-system-type coding-system) '(0 5)))
(let ((auto-cs (save-excursion
(save-restriction
(widen)
- Re: address@hidden: coding system for html files (unibyte mode)],
Kenichi Handa <=