aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-04-11 21:09:15 -0400
committerGlenn Morris2012-04-11 21:09:15 -0400
commit8edb942b9f5a1bd8615c3e5bbb018ab3b59e204f (patch)
treef4e4c310fe2725e272369259cec291866047a022
parentdc2ab667ae97f2194f5a258084e0dd96eb064bff (diff)
downloademacs-8edb942b9f5a1bd8615c3e5bbb018ab3b59e204f.tar.gz
emacs-8edb942b9f5a1bd8615c3e5bbb018ab3b59e204f.zip
Doc and manual fixes related to mule
* doc/emacs/mule.texi (International): Copyedits. (International Chars): Update C-x = example output. (Disabling Multibyte): Rename from "Enabling Multibyte". Clarify what "unibyte: t" does, and mode-line description. (Unibyte Mode): Update for "Disabling Multibyte" node name change. Use Texinfo recommended convention for quotes+punctuation. * doc/emacs/custom.texi (Specifying File Variables): Fix "unibyte" description. Update for "Disabling Multibyte" node name change. * doc/emacs/emacs.texi: Update for "Disabling Multibyte" node name change. * doc/lispref/loading.texi (Loading Non-ASCII): "unibyte:" can also be at the end. * lisp/international/mule.el (set-auto-coding-for-load): Doc fix.
-rw-r--r--doc/emacs/ChangeLog12
-rw-r--r--doc/emacs/custom.texi4
-rw-r--r--doc/emacs/emacs.texi2
-rw-r--r--doc/emacs/mule.texi91
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/loading.texi2
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/international/mule.el5
8 files changed, 81 insertions, 43 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index f81e2157e51..e69a0e90ec8 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,15 @@
12012-04-12 Glenn Morris <rgm@gnu.org>
2
3 * mule.texi (International): Copyedits.
4 (International Chars): Update C-x = example output.
5 (Disabling Multibyte): Rename from "Enabling Multibyte".
6 Clarify what "unibyte: t" does, and mode-line description.
7 (Unibyte Mode): Update for "Disabling Multibyte" node name change.
8 Use Texinfo recommended convention for quotes+punctuation.
9 * custom.texi (Specifying File Variables): Fix "unibyte" description.
10 Update for "Disabling Multibyte" node name change.
11 * emacs.texi: Update for "Disabling Multibyte" node name change.
12
12012-04-10 Glenn Morris <rgm@gnu.org> 132012-04-10 Glenn Morris <rgm@gnu.org>
2 14
3 * abbrevs.texi, arevert-xtra.texi, buffers.texi, building.texi: 15 * abbrevs.texi, arevert-xtra.texi, buffers.texi, building.texi:
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index a17eb54e337..6bc96bda9ca 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -1163,8 +1163,8 @@ returned by that expression is ignored).
1163conversion of this file. @xref{Coding Systems}. 1163conversion of this file. @xref{Coding Systems}.
1164 1164
1165@item 1165@item
1166@code{unibyte} says to visit the file in a unibyte buffer, if the 1166@code{unibyte} says to load or compile a file of Emacs Lisp in unibyte
1167value is @code{t}. @xref{Enabling Multibyte}. 1167mode, if the value is @code{t}. @xref{Disabling Multibyte}.
1168@end itemize 1168@end itemize
1169 1169
1170@noindent 1170@noindent
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi
index 152fa73edea..a842f412356 100644
--- a/doc/emacs/emacs.texi
+++ b/doc/emacs/emacs.texi
@@ -516,7 +516,7 @@ Frames and Graphical Displays
516International Character Set Support 516International Character Set Support
517 517
518* International Chars:: Basic concepts of multibyte characters. 518* International Chars:: Basic concepts of multibyte characters.
519* Enabling Multibyte:: Controlling whether to use multibyte characters. 519* Disabling Multibyte:: Controlling whether to use multibyte characters.
520* Language Environments:: Setting things up for the language you use. 520* Language Environments:: Setting things up for the language you use.
521* Input Methods:: Entering text characters not on your keyboard. 521* Input Methods:: Entering text characters not on your keyboard.
522* Select Input Method:: Specifying your choice of input methods. 522* Select Input Method:: Specifying your choice of input methods.
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi
index aeaec2c502e..16fec0961bf 100644
--- a/doc/emacs/mule.texi
+++ b/doc/emacs/mule.texi
@@ -41,7 +41,7 @@ including European and Vietnamese variants of the Latin alphabet, as
41well as Cyrillic, Devanagari (for Hindi and Marathi), Ethiopic, Greek, 41well as Cyrillic, Devanagari (for Hindi and Marathi), Ethiopic, Greek,
42Han (for Chinese and Japanese), Hangul (for Korean), Hebrew, IPA, 42Han (for Chinese and Japanese), Hangul (for Korean), Hebrew, IPA,
43Kannada, Lao, Malayalam, Tamil, Thai, Tibetan, and Vietnamese scripts. 43Kannada, Lao, Malayalam, Tamil, Thai, Tibetan, and Vietnamese scripts.
44Emacs also supports various encodings of these characters used by 44Emacs also supports various encodings of these characters that are used by
45other internationalized software, such as word processors and mailers. 45other internationalized software, such as word processors and mailers.
46 46
47 Emacs allows editing text with international characters by supporting 47 Emacs allows editing text with international characters by supporting
@@ -74,14 +74,14 @@ others.
74@item 74@item
75You can insert non-@acronym{ASCII} characters or search for them. To do that, 75You can insert non-@acronym{ASCII} characters or search for them. To do that,
76you can specify an input method (@pxref{Select Input Method}) suitable 76you can specify an input method (@pxref{Select Input Method}) suitable
77for your language, or use the default input method set up when you set 77for your language, or use the default input method set up when you chose
78your language environment. If 78your language environment. If
79your keyboard can produce non-@acronym{ASCII} characters, you can select an 79your keyboard can produce non-@acronym{ASCII} characters, you can select an
80appropriate keyboard coding system (@pxref{Terminal Coding}), and Emacs 80appropriate keyboard coding system (@pxref{Terminal Coding}), and Emacs
81will accept those characters. Latin-1 characters can also be input by 81will accept those characters. Latin-1 characters can also be input by
82using the @kbd{C-x 8} prefix, see @ref{Unibyte Mode}. 82using the @kbd{C-x 8} prefix, see @ref{Unibyte Mode}.
83 83
84On the X Window System, your locale should be set to an appropriate 84With the X Window System, your locale should be set to an appropriate
85value to make sure Emacs interprets keyboard input correctly; see 85value to make sure Emacs interprets keyboard input correctly; see
86@ref{Language Environments, locales}. 86@ref{Language Environments, locales}.
87@end itemize 87@end itemize
@@ -90,7 +90,7 @@ value to make sure Emacs interprets keyboard input correctly; see
90 90
91@menu 91@menu
92* International Chars:: Basic concepts of multibyte characters. 92* International Chars:: Basic concepts of multibyte characters.
93* Enabling Multibyte:: Controlling whether to use multibyte characters. 93* Disabling Multibyte:: Controlling whether to use multibyte characters.
94* Language Environments:: Setting things up for the language you use. 94* Language Environments:: Setting things up for the language you use.
95* Input Methods:: Entering text characters not on your keyboard. 95* Input Methods:: Entering text characters not on your keyboard.
96* Select Input Method:: Specifying your choice of input methods. 96* Select Input Method:: Specifying your choice of input methods.
@@ -224,29 +224,30 @@ faces used to display the character, and any overlays containing it
224in a buffer whose coding system is @code{utf-8-unix}: 224in a buffer whose coding system is @code{utf-8-unix}:
225 225
226@smallexample 226@smallexample
227 character: @`A (192, #o300, #xc0) 227 position: 1 of 1 (0%), column: 0
228preferred charset: unicode (Unicode (ISO10646)) 228 character: @`A (displayed as @`A) (codepoint 192, #o300, #xc0)
229 code point: 0xC0 229 preferred charset: unicode (Unicode (ISO10646))
230 syntax: w which means: word 230code point in charset: 0xC0
231 category: j:Japanese l:Latin v:Vietnamese 231 syntax: w which means: word
232 buffer code: #xC3 #x80 232 category: .:Base, L:Left-to-right (strong),
233 file code: not encodable by coding system undecided-unix 233 j:Japanese, l:Latin, v:Viet
234 display: by this font (glyph code) 234 buffer code: #xC3 #x80
235 file code: not encodable by coding system undecided-unix
236 display: by this font (glyph code)
235 xft:-unknown-DejaVu Sans Mono-normal-normal- 237 xft:-unknown-DejaVu Sans Mono-normal-normal-
236 normal-*-13-*-*-*-m-0-iso10646-1 (#x82) 238 normal-*-13-*-*-*-m-0-iso10646-1 (#x82)
237 239
238Character code properties: customize what to show 240Character code properties: customize what to show
239 name: LATIN CAPITAL LETTER A WITH GRAVE 241 name: LATIN CAPITAL LETTER A WITH GRAVE
242 old-name: LATIN CAPITAL LETTER A GRAVE
240 general-category: Lu (Letter, Uppercase) 243 general-category: Lu (Letter, Uppercase)
241 decomposition: (65 768) ('A' '`') 244 decomposition: (65 768) ('A' '`')
242 old-name: LATIN CAPITAL LETTER A GRAVE
243
244There are text properties here:
245 auto-composed t
246@end smallexample 245@end smallexample
247 246
248@node Enabling Multibyte 247@c FIXME? Does this section even belong in the user manual?
249@section Enabling Multibyte Characters 248@c Seems more appropriate to the lispref?
249@node Disabling Multibyte
250@section Disabling Multibyte Characters
250 251
251 By default, Emacs starts in multibyte mode: it stores the contents 252 By default, Emacs starts in multibyte mode: it stores the contents
252of buffers and strings using an internal encoding that represents 253of buffers and strings using an internal encoding that represents
@@ -275,32 +276,48 @@ Coding}. Unlike @code{find-file-literally}, finding a file as
275@samp{raw-text} doesn't disable format conversion, uncompression, or 276@samp{raw-text} doesn't disable format conversion, uncompression, or
276auto mode selection. 277auto mode selection.
277 278
279@c Not a single file in Emacs uses this feature. Is it really worth
280@c mentioning in the _user_ manual? Also, this duplicates somewhat
281@c "Loading Non-ASCII" from the lispref.
278@cindex Lisp files, and multibyte operation 282@cindex Lisp files, and multibyte operation
279@cindex multibyte operation, and Lisp files 283@cindex multibyte operation, and Lisp files
280@cindex unibyte operation, and Lisp files 284@cindex unibyte operation, and Lisp files
281@cindex init file, and non-@acronym{ASCII} characters 285@cindex init file, and non-@acronym{ASCII} characters
282 Emacs normally loads Lisp files as multibyte. 286 Emacs normally loads Lisp files as multibyte.
283This includes the Emacs initialization 287This includes the Emacs initialization
284file, @file{.emacs}, and the initialization files of Emacs packages 288file, @file{.emacs}, and the initialization files of packages
285such as Gnus. However, you can specify unibyte loading for a 289such as Gnus. However, you can specify unibyte loading for a
286particular Lisp file, by putting @w{@samp{-*-unibyte: t;-*-}} in a 290particular Lisp file, by adding an entry @samp{unibyte: t} in a file
287comment on the first line (@pxref{File Variables}). Then that file is 291local variables section (@pxref{File Variables}). Then that file is
288always loaded as unibyte text. The motivation for these conventions 292always loaded as unibyte text. Note that this does not represent a
289is that it is more reliable to always load any particular Lisp file in 293real @code{unibyte} variable, rather it just acts as an indicator
290the same way. However, you can load a Lisp file as unibyte, on any 294to Emacs in the same way as @code{coding} does (@pxref{Specify Coding}).
291one occasion, by typing @kbd{C-x @key{RET} c raw-text @key{RET}} 295@ignore
292immediately before loading it. 296@c I don't see the point of this statement:
293 297The motivation for these conventions is that it is more reliable to
294 The mode line indicates whether multibyte character support is 298always load any particular Lisp file in the same way.
295enabled in the current buffer. If it is, there are two or more 299@end ignore
296characters (most often two dashes) near the beginning of the mode 300Note also that this feature only applies to @emph{loading} Lisp files
297line, before the indication of the visited file's end-of-line 301for evaluation, not to visiting them for editing. You can also load a
298convention (colon, backslash, etc.). When multibyte characters 302Lisp file as unibyte, on any one occasion, by typing @kbd{C-x
299are not enabled, nothing precedes the colon except a single dash. 303@key{RET} c raw-text @key{RET}} immediately before loading it.
300@xref{Mode Line}, for more details about this. 304
305@c See http://debbugs.gnu.org/11226 for lack of unibyte tooltip.
306@vindex enable-multibyte-characters
307The buffer-local variable @code{enable-multibyte-characters} is
308non-@code{nil} in multibyte buffers, and @code{nil} in unibyte ones.
309The mode line also indicates whether a buffer is multibyte or not.
310@xref{Mode Line}. With a graphical display, in a multibyte buffer,
311the portion of the mode line that indicates the character set has a
312tooltip that (amongst other things) says that the buffer is multibyte.
313In a unibyte buffer, the character set indicator is absent. Thus, in
314a unibyte buffer (when using a graphical display) there is normally
315nothing before the indication of the visited file's end-of-line
316convention (colon, backslash, etc.), unless you are using an input
317method.
301 318
302@findex toggle-enable-multibyte-characters 319@findex toggle-enable-multibyte-characters
303You can turn on multibyte support in a specific buffer by invoking the 320You can turn off multibyte support in a specific buffer by invoking the
304command @code{toggle-enable-multibyte-characters} in that buffer. 321command @code{toggle-enable-multibyte-characters} in that buffer.
305 322
306@node Language Environments 323@node Language Environments
@@ -1540,7 +1557,7 @@ can still handle these character codes as if they belonged to
1540set-language-environment} and specify a suitable language environment 1557set-language-environment} and specify a suitable language environment
1541such as @samp{Latin-@var{n}}. 1558such as @samp{Latin-@var{n}}.
1542 1559
1543 For more information about unibyte operation, see @ref{Enabling 1560 For more information about unibyte operation, see @ref{Disabling
1544Multibyte}. Note particularly that you probably want to ensure that 1561Multibyte}. Note particularly that you probably want to ensure that
1545your initialization files are read as unibyte if they contain 1562your initialization files are read as unibyte if they contain
1546non-@acronym{ASCII} characters. 1563non-@acronym{ASCII} characters.
@@ -1613,7 +1630,7 @@ a key sequence is allowed.
1613library is loaded, the @key{ALT} modifier key, if the keyboard has 1630library is loaded, the @key{ALT} modifier key, if the keyboard has
1614one, serves the same purpose as @kbd{C-x 8}: use @key{ALT} together 1631one, serves the same purpose as @kbd{C-x 8}: use @key{ALT} together
1615with an accent character to modify the following letter. In addition, 1632with an accent character to modify the following letter. In addition,
1616if the keyboard has keys for the Latin-1 ``dead accent characters,'' 1633if the keyboard has keys for the Latin-1 ``dead accent characters'',
1617they too are defined to compose with the following character, once 1634they too are defined to compose with the following character, once
1618@code{iso-transl} is loaded. 1635@code{iso-transl} is loaded.
1619 1636
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index a496c5dcdd7..3990db3d602 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12012-04-12 Glenn Morris <rgm@gnu.org>
2
3 * loading.texi (Loading Non-ASCII): "unibyte:" can also be at the end.
4
12012-04-10 Glenn Morris <rgm@gnu.org> 52012-04-10 Glenn Morris <rgm@gnu.org>
2 6
3 * strings.texi (Case Tables): 7 * strings.texi (Case Tables):
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index 7fc9535d88b..0c02f338c7b 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -375,7 +375,7 @@ strings are multibyte strings should not be noticeable, since
375inserting them in unibyte buffers converts them to unibyte 375inserting them in unibyte buffers converts them to unibyte
376automatically. However, if this does make a difference, you can force 376automatically. However, if this does make a difference, you can force
377a particular Lisp file to be interpreted as unibyte by writing 377a particular Lisp file to be interpreted as unibyte by writing
378@samp{-*-unibyte: t;-*-} in a comment on the file's first line. With 378@samp{unibyte: t} in a local variables section. With
379that designator, the file will unconditionally be interpreted as 379that designator, the file will unconditionally be interpreted as
380unibyte, even in an ordinary multibyte Emacs session. This can matter 380unibyte, even in an ordinary multibyte Emacs session. This can matter
381when making keybindings to non-@acronym{ASCII} characters written as 381when making keybindings to non-@acronym{ASCII} characters written as
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 00183d9ebb2..10dd1d5448f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-04-12 Glenn Morris <rgm@gnu.org>
2
3 * international/mule.el (set-auto-coding-for-load): Doc fix.
4
12012-04-11 Stefan Monnier <monnier@iro.umontreal.ca> 52012-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * imenu.el (imenu-add-to-menubar): `current-local-map' can be nil. 7 * imenu.el (imenu-add-to-menubar): `current-local-map' can be nil.
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 7bf15009687..1f88df52fd4 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1754,8 +1754,9 @@ functions, so they won't be called at all."
1754 :type '(repeat function)) 1754 :type '(repeat function))
1755 1755
1756(defvar set-auto-coding-for-load nil 1756(defvar set-auto-coding-for-load nil
1757 "Non-nil means look for `load-coding' property instead of `coding'. 1757 "Non-nil means respect a \"unibyte: t\" entry in file local variables.
1758This is used for loading and byte-compiling Emacs Lisp files.") 1758Emacs binds this variable to t when loading or byte-compiling Emacs Lisp
1759files.")
1759 1760
1760(defun auto-coding-alist-lookup (filename) 1761(defun auto-coding-alist-lookup (filename)
1761 "Return the coding system specified by `auto-coding-alist' for FILENAME." 1762 "Return the coding system specified by `auto-coding-alist' for FILENAME."