emacs-wiki-discuss
[Top][All Lists]
Advanced

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

Re: [emacs-wiki-discuss] Re: emacs-wiki and coding system


From: Alex Ott
Subject: Re: [emacs-wiki-discuss] Re: emacs-wiki and coding system
Date: Sat, 18 Jun 2005 10:01:35 +0400
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Thanks, but with hook it also not working -- i need to investigate this problem more precisely - why file-coding-system does not used for find-file called from emacs-wiki

Michael Olson wrote:
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)))



------------------------------------------------------------------------

_______________________________________________
emacs-wiki-discuss mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss

--
With best wishes, Alex Ott
Jet Infosystems,       http://www.jetinfosoft.ru/
                       +7 (095) 411 76 01




reply via email to

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