[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: emacs-wiki and coding system
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: emacs-wiki and coding system |
Date: |
Fri, 17 Jun 2005 15:43:16 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Alex Ott <address@hidden> writes:
> i have one problm with emacs-wiki with gnu emacs and windows. my
> wiki is in utf-8, default coding systen is cp251. i set
> file-coding-system-alist for wiki directory in utf-8 and files
> open's normal, but when i use emacs-wiki-find-file, then page open's
> in default encoding, not in utf-8. how i can debug them?
>
> on linux - all works fine
Hmm. I'm not sure what's going on here, since emacs-wiki just calls
find-file to open the given file, and emacs-wiki-mode does not modify
the buffer's encoding. The emacs-wiki-charset-default and
emacs-wiki-coding-default options only deal with what coding system is
used when publishing a file.
It's a bit of a hack (and untested), but the following might do what
you want.
(add-hook 'emacs-wiki-mode-hook
#'(lambda ()
(set-buffer-file-coding-system 'utf-8)
;; changing the encoding causes buffer to appear modified
(set-buffer-modified-p nil)))
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: anime, Debian, XHTML, wiki, Emacs Lisp
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #pulug
|_] | \| |_| Jabber: mwolson_at_hcoop.net
pgp3etkpgZudp.pgp
Description: PGP signature