all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Encoding Problems
@ 2006-03-07 12:38 Nicolas Keller
  2006-03-07 19:30 ` Peter Dyballa
  2006-03-07 21:06 ` Reiner Steib
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Keller @ 2006-03-07 12:38 UTC (permalink / raw)


Hi!

I have to use ISO-8859-1 encoding and therefore I have set the
following in my .emacs file:

(set-language-environment 'german)
(set-terminal-coding-system 'iso-latin-1)

As I use the ° character very often, I have written the following
function:

(global-set-key "\M-0"  'my-insert-grad)
(defun my-insert-grad () (interactive) (insert "°"))

Now, when I insert this character and then save the file, sometimes the
encoding chances without any feedback from ISO-8859-1 (C-h C =
iso-latin-1-unix) to UTF-8 (C-h C mule-utf-8-unix).

If I open the file in VI, insert the ° close the file, reopen it in
Emacs change something and save it again, the ° character leaves
untouched and the encoding stays as it is. So I guess I have to enhance
the function?

How can I tell Emacs to automatically keep the ISO-8859-1 encoding when
I save the file after inserting this character?

Thanks in advance,

Nicolas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-07 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-07 12:38 Encoding Problems Nicolas Keller
2006-03-07 19:30 ` Peter Dyballa
2006-03-07 21:06 ` Reiner Steib

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.