[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/tips.texi,v
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/tips.texi,v |
Date: |
Sat, 10 Jun 2006 10:34:35 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Richard M. Stallman <rms> 06/06/10 10:34:35
Index: tips.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/lispref/tips.texi,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -b -r1.80 -r1.81
--- tips.texi 29 May 2006 00:18:44 -0000 1.80
+++ tips.texi 10 Jun 2006 10:34:35 -0000 1.81
@@ -224,6 +224,31 @@
coherent if all libraries use the same conventions.
@item
+If your program contains non-ASCII characters in string or character
+constants, you should make sure Emacs always decodes these characters
+the same way, regardless of the user's settings. There are two ways
+to do that:
+
address@hidden -
address@hidden
+Use coding system @code{emacs-mule}, and specify that for
address@hidden in the @samp{-*-} line or the local variables list.
+
address@hidden
+;; XXX.el -*- coding: emacs-mule; -*-
address@hidden example
+
address@hidden
+Use one of the coding systems based on ISO 2022 (such as
address@hidden and iso-2022-7bit), and specify it with @samp{!} at
+the end for @code{coding}. (The @samp{!} turns off any possible
+character translation.)
+
address@hidden
+;; XXX.el -*- coding: iso-latin-2!; -*-
address@hidden example
+
address@hidden
Indent each function with @kbd{C-M-q} (@code{indent-sexp}) using the
default indentation parameters.
- [Emacs-diffs] Changes to emacs/lispref/tips.texi,v,
Richard M. Stallman <=