listhelper-moderate
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help-gnu-emacs post from address@hidden requires approval


From: help-gnu-emacs-owner
Subject: help-gnu-emacs post from address@hidden requires approval
Date: Mon, 09 Jul 2007 12:13:14 -0400

As list administrator, your authorization is requested for the
following mailing list posting:

    List:    address@hidden
    From:    address@hidden
    Subject: Re: about xhtml-mode encoding problem
    Reason:  Post by non-member to a members-only list

At your convenience, visit:

    http://lists.gnu.org/mailman/admindb/help-gnu-emacs
        
to approve or deny the request.
--- Begin Message --- Subject: Re: about xhtml-mode encoding problem Date: Tue, 10 Jul 2007 01:12:52 +0900 User-agent: Thunderbird 1.5.0.12 (X11/20070604)
Sorry I had a mistake.
The problem is on  *nxhtml-mode*,not xhtml-mode.

I added these line in my .emacs.
load-file (concat plugin_path "/nxml/autostart.el"))
(setq auto-mode-alist (cons '("\\.jsp$" . nxhtml-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.asp$" . nxhtml-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.php$" . nxhtml-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.phtml$" . nxhtml-mode) auto-mode-alist))

(modify-coding-system-alist 'file "\\.jsp\\'" 'sjis)
(add-to-list 'file-coding-system-alist '("\\.jsp\\'" . sjis))
(add-to-list 'file-coding-system-alist '("\\.xhtml\\'" . sjis))
(prefer-coding-system 'sjis)

But I'm sorry to say all of them doesn't work.
when I save the file it become utf-8.
I'm using emacs 22 on linux and windows xp.



Peter Dyballa wrote:

Am 09.07.2007 um 16:44 schrieb lu:

I want to know How to solve this problem.

You might try to use (file) local variables in the first line(s) of the file that are a valid XHTML comment:

    <comment string> -*- coding: sjis;

or insert a

    (prefer-coding-system 'sjis)

into your ~/.emacs file. More elaborate would be (not sure whether it works)

    (modify-coding-system-alist 'file "\\.xhtml\\'" 'sjis)

or, which works for me with different values:

    (add-to-list 'file-coding-system-alist '("\\.xhtml\\'" . sjis))

--
Greetings

  Pete

"A mathematician is a machine that turns coffee into theorems."





--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ラクスドウ 株式会社
呂 克(ロ コク)
〒103-0014 東京都中央区日本橋蛎殻町1-5-4 塩田ビル4F
HP: http://www.luxdo.co.jp
TEL:03-3249-3405  FAX:03-5641-1955
E-mail: address@hidden
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/




--- End Message ---
--- Begin Message --- Subject: confirm 0b3f901bb121055ec805303db4287a53d732d05f
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message.  Do this if the message is
spam.  If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list.  The Approved: header can also appear in the first line
of the body of the reply.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]