diff options
| author | Glenn Morris | 2012-04-11 21:09:15 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-04-11 21:09:15 -0400 |
| commit | 8edb942b9f5a1bd8615c3e5bbb018ab3b59e204f (patch) | |
| tree | f4e4c310fe2725e272369259cec291866047a022 | |
| parent | dc2ab667ae97f2194f5a258084e0dd96eb064bff (diff) | |
| download | emacs-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/ChangeLog | 12 | ||||
| -rw-r--r-- | doc/emacs/custom.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/emacs.texi | 2 | ||||
| -rw-r--r-- | doc/emacs/mule.texi | 91 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/loading.texi | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/international/mule.el | 5 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-04-10 Glenn Morris <rgm@gnu.org> | 13 | 2012-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). | |||
| 1163 | conversion of this file. @xref{Coding Systems}. | 1163 | conversion 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 |
| 1167 | value is @code{t}. @xref{Enabling Multibyte}. | 1167 | mode, 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 | |||
| 516 | International Character Set Support | 516 | International 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 | |||
| 41 | well as Cyrillic, Devanagari (for Hindi and Marathi), Ethiopic, Greek, | 41 | well as Cyrillic, Devanagari (for Hindi and Marathi), Ethiopic, Greek, |
| 42 | Han (for Chinese and Japanese), Hangul (for Korean), Hebrew, IPA, | 42 | Han (for Chinese and Japanese), Hangul (for Korean), Hebrew, IPA, |
| 43 | Kannada, Lao, Malayalam, Tamil, Thai, Tibetan, and Vietnamese scripts. | 43 | Kannada, Lao, Malayalam, Tamil, Thai, Tibetan, and Vietnamese scripts. |
| 44 | Emacs also supports various encodings of these characters used by | 44 | Emacs also supports various encodings of these characters that are used by |
| 45 | other internationalized software, such as word processors and mailers. | 45 | other 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 |
| 75 | You can insert non-@acronym{ASCII} characters or search for them. To do that, | 75 | You can insert non-@acronym{ASCII} characters or search for them. To do that, |
| 76 | you can specify an input method (@pxref{Select Input Method}) suitable | 76 | you can specify an input method (@pxref{Select Input Method}) suitable |
| 77 | for your language, or use the default input method set up when you set | 77 | for your language, or use the default input method set up when you chose |
| 78 | your language environment. If | 78 | your language environment. If |
| 79 | your keyboard can produce non-@acronym{ASCII} characters, you can select an | 79 | your keyboard can produce non-@acronym{ASCII} characters, you can select an |
| 80 | appropriate keyboard coding system (@pxref{Terminal Coding}), and Emacs | 80 | appropriate keyboard coding system (@pxref{Terminal Coding}), and Emacs |
| 81 | will accept those characters. Latin-1 characters can also be input by | 81 | will accept those characters. Latin-1 characters can also be input by |
| 82 | using the @kbd{C-x 8} prefix, see @ref{Unibyte Mode}. | 82 | using the @kbd{C-x 8} prefix, see @ref{Unibyte Mode}. |
| 83 | 83 | ||
| 84 | On the X Window System, your locale should be set to an appropriate | 84 | With the X Window System, your locale should be set to an appropriate |
| 85 | value to make sure Emacs interprets keyboard input correctly; see | 85 | value 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 | |||
| 224 | in a buffer whose coding system is @code{utf-8-unix}: | 224 | in 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 |
| 228 | preferred 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 | 230 | code 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 | ||
| 238 | Character code properties: customize what to show | 240 | Character 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 | |||
| 244 | There 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 |
| 252 | of buffers and strings using an internal encoding that represents | 253 | of 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 |
| 276 | auto mode selection. | 277 | auto 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. |
| 283 | This includes the Emacs initialization | 287 | This includes the Emacs initialization |
| 284 | file, @file{.emacs}, and the initialization files of Emacs packages | 288 | file, @file{.emacs}, and the initialization files of packages |
| 285 | such as Gnus. However, you can specify unibyte loading for a | 289 | such as Gnus. However, you can specify unibyte loading for a |
| 286 | particular Lisp file, by putting @w{@samp{-*-unibyte: t;-*-}} in a | 290 | particular Lisp file, by adding an entry @samp{unibyte: t} in a file |
| 287 | comment on the first line (@pxref{File Variables}). Then that file is | 291 | local variables section (@pxref{File Variables}). Then that file is |
| 288 | always loaded as unibyte text. The motivation for these conventions | 292 | always loaded as unibyte text. Note that this does not represent a |
| 289 | is that it is more reliable to always load any particular Lisp file in | 293 | real @code{unibyte} variable, rather it just acts as an indicator |
| 290 | the same way. However, you can load a Lisp file as unibyte, on any | 294 | to Emacs in the same way as @code{coding} does (@pxref{Specify Coding}). |
| 291 | one occasion, by typing @kbd{C-x @key{RET} c raw-text @key{RET}} | 295 | @ignore |
| 292 | immediately before loading it. | 296 | @c I don't see the point of this statement: |
| 293 | 297 | The motivation for these conventions is that it is more reliable to | |
| 294 | The mode line indicates whether multibyte character support is | 298 | always load any particular Lisp file in the same way. |
| 295 | enabled in the current buffer. If it is, there are two or more | 299 | @end ignore |
| 296 | characters (most often two dashes) near the beginning of the mode | 300 | Note also that this feature only applies to @emph{loading} Lisp files |
| 297 | line, before the indication of the visited file's end-of-line | 301 | for evaluation, not to visiting them for editing. You can also load a |
| 298 | convention (colon, backslash, etc.). When multibyte characters | 302 | Lisp file as unibyte, on any one occasion, by typing @kbd{C-x |
| 299 | are 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 | ||
| 307 | The buffer-local variable @code{enable-multibyte-characters} is | ||
| 308 | non-@code{nil} in multibyte buffers, and @code{nil} in unibyte ones. | ||
| 309 | The mode line also indicates whether a buffer is multibyte or not. | ||
| 310 | @xref{Mode Line}. With a graphical display, in a multibyte buffer, | ||
| 311 | the portion of the mode line that indicates the character set has a | ||
| 312 | tooltip that (amongst other things) says that the buffer is multibyte. | ||
| 313 | In a unibyte buffer, the character set indicator is absent. Thus, in | ||
| 314 | a unibyte buffer (when using a graphical display) there is normally | ||
| 315 | nothing before the indication of the visited file's end-of-line | ||
| 316 | convention (colon, backslash, etc.), unless you are using an input | ||
| 317 | method. | ||
| 301 | 318 | ||
| 302 | @findex toggle-enable-multibyte-characters | 319 | @findex toggle-enable-multibyte-characters |
| 303 | You can turn on multibyte support in a specific buffer by invoking the | 320 | You can turn off multibyte support in a specific buffer by invoking the |
| 304 | command @code{toggle-enable-multibyte-characters} in that buffer. | 321 | command @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 | |||
| 1540 | set-language-environment} and specify a suitable language environment | 1557 | set-language-environment} and specify a suitable language environment |
| 1541 | such as @samp{Latin-@var{n}}. | 1558 | such 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 |
| 1544 | Multibyte}. Note particularly that you probably want to ensure that | 1561 | Multibyte}. Note particularly that you probably want to ensure that |
| 1545 | your initialization files are read as unibyte if they contain | 1562 | your initialization files are read as unibyte if they contain |
| 1546 | non-@acronym{ASCII} characters. | 1563 | non-@acronym{ASCII} characters. |
| @@ -1613,7 +1630,7 @@ a key sequence is allowed. | |||
| 1613 | library is loaded, the @key{ALT} modifier key, if the keyboard has | 1630 | library is loaded, the @key{ALT} modifier key, if the keyboard has |
| 1614 | one, serves the same purpose as @kbd{C-x 8}: use @key{ALT} together | 1631 | one, serves the same purpose as @kbd{C-x 8}: use @key{ALT} together |
| 1615 | with an accent character to modify the following letter. In addition, | 1632 | with an accent character to modify the following letter. In addition, |
| 1616 | if the keyboard has keys for the Latin-1 ``dead accent characters,'' | 1633 | if the keyboard has keys for the Latin-1 ``dead accent characters'', |
| 1617 | they too are defined to compose with the following character, once | 1634 | they 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 @@ | |||
| 1 | 2012-04-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * loading.texi (Loading Non-ASCII): "unibyte:" can also be at the end. | ||
| 4 | |||
| 1 | 2012-04-10 Glenn Morris <rgm@gnu.org> | 5 | 2012-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 | |||
| 375 | inserting them in unibyte buffers converts them to unibyte | 375 | inserting them in unibyte buffers converts them to unibyte |
| 376 | automatically. However, if this does make a difference, you can force | 376 | automatically. However, if this does make a difference, you can force |
| 377 | a particular Lisp file to be interpreted as unibyte by writing | 377 | a 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 |
| 379 | that designator, the file will unconditionally be interpreted as | 379 | that designator, the file will unconditionally be interpreted as |
| 380 | unibyte, even in an ordinary multibyte Emacs session. This can matter | 380 | unibyte, even in an ordinary multibyte Emacs session. This can matter |
| 381 | when making keybindings to non-@acronym{ASCII} characters written as | 381 | when 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 @@ | |||
| 1 | 2012-04-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * international/mule.el (set-auto-coding-for-load): Doc fix. | ||
| 4 | |||
| 1 | 2012-04-11 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2012-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. |
| 1758 | This is used for loading and byte-compiling Emacs Lisp files.") | 1758 | Emacs binds this variable to t when loading or byte-compiling Emacs Lisp |
| 1759 | files.") | ||
| 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." |