aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-04-04 14:11:05 +0000
committerEli Zaretskii2001-04-04 14:11:05 +0000
commite2bf12baef5e95fbc54c92564a00830c77a11b19 (patch)
tree4aa85df8c3aef173cb027bfd3b0f0e9e42269ac2
parent58e4f61d2053d5ed92e5cfe5d7ad4c41691ba2b2 (diff)
downloademacs-e2bf12baef5e95fbc54c92564a00830c77a11b19.tar.gz
emacs-e2bf12baef5e95fbc54c92564a00830c77a11b19.zip
(Init Syntax): Mention the -*-coding:-*- tag if .emacs uses non-ASCII
characters in strings.
-rw-r--r--man/custom.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/man/custom.texi b/man/custom.texi
index e27b295ab4e..efd421fd74e 100644
--- a/man/custom.texi
+++ b/man/custom.texi
@@ -2088,6 +2088,16 @@ sequences are mandatory.
2088a Meta character, as in @samp{\M-a} for @kbd{Meta-A} or @samp{\M-\C-a} for 2088a Meta character, as in @samp{\M-a} for @kbd{Meta-A} or @samp{\M-\C-a} for
2089@kbd{Control-Meta-A}.@refill 2089@kbd{Control-Meta-A}.@refill
2090 2090
2091@cindex international characters in @file{.emacs}
2092@cindex non-ASCII characters in @file{.emacs}
2093If you want to include non-ASCII characters in strings in your init
2094file, you should consider putting a @samp{-*- coding: -*-} tag on the
2095first line which states the coding system used to save your
2096@file{.emacs}, as explained in @ref{Recognize Coding}. This is
2097because the defaults for decoding non-ASCII text might not yet be set
2098up by the time Emacs reads those parts of your init file which use
2099such strings, and Emacs might decode those strings incorrectly.
2100
2091@item Characters: 2101@item Characters:
2092Lisp character constant syntax consists of a @samp{?} followed by 2102Lisp character constant syntax consists of a @samp{?} followed by
2093either a character or an escape sequence starting with @samp{\}. 2103either a character or an escape sequence starting with @samp{\}.