Mercurial > emacs
comparison man/custom.texi @ 37198:12c496043cb0
(Init Syntax): Mention the -*-coding:-*- tag if .emacs uses non-ASCII
characters in strings.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Wed, 04 Apr 2001 14:11:05 +0000 |
parents | a34d1e2a580f |
children | d2c4a8eb274a |
comparison
equal
deleted
inserted
replaced
37197:7b4fa0c2ad35 | 37198:12c496043cb0 |
---|---|
2086 @samp{\C-} can be used as a prefix for a control character, as in | 2086 @samp{\C-} can be used as a prefix for a control character, as in |
2087 @samp{\C-s} for ASCII control-S, and @samp{\M-} can be used as a prefix for | 2087 @samp{\C-s} for ASCII control-S, and @samp{\M-} can be used as a prefix for |
2088 a Meta character, as in @samp{\M-a} for @kbd{Meta-A} or @samp{\M-\C-a} for | 2088 a 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} | |
2093 If you want to include non-ASCII characters in strings in your init | |
2094 file, you should consider putting a @samp{-*- coding: -*-} tag on the | |
2095 first line which states the coding system used to save your | |
2096 @file{.emacs}, as explained in @ref{Recognize Coding}. This is | |
2097 because the defaults for decoding non-ASCII text might not yet be set | |
2098 up by the time Emacs reads those parts of your init file which use | |
2099 such strings, and Emacs might decode those strings incorrectly. | |
2100 | |
2091 @item Characters: | 2101 @item Characters: |
2092 Lisp character constant syntax consists of a @samp{?} followed by | 2102 Lisp character constant syntax consists of a @samp{?} followed by |
2093 either a character or an escape sequence starting with @samp{\}. | 2103 either a character or an escape sequence starting with @samp{\}. |
2094 Examples: @code{?x}, @code{?\n}, @code{?\"}, @code{?\)}. Note that | 2104 Examples: @code{?x}, @code{?\n}, @code{?\"}, @code{?\)}. Note that |
2095 strings and characters are not interchangeable in Lisp; some contexts | 2105 strings and characters are not interchangeable in Lisp; some contexts |