diff options
| author | Chong Yidong | 2010-08-22 17:15:20 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-08-22 17:15:20 -0400 |
| commit | 198a7a97ff99b96523f7c0736aa303d305595094 (patch) | |
| tree | 956fc21f7bd577ca58c981dd67859409dfb0153e /doc/lispref | |
| parent | b0126eac41487b9bca5af5cbb2212ff5b2c58b80 (diff) | |
| download | emacs-198a7a97ff99b96523f7c0736aa303d305595094.tar.gz emacs-198a7a97ff99b96523f7c0736aa303d305595094.zip | |
Make obsolete --unibyte argument do nothing (Bug#6886).
* src/emacs.c (main): Remove --unibyte handling (Bug#6886).
* lisp/startup.el (command-line-1): Issue warning for ignored arguments
--unibyte, etc (Bug#6886).
* doc/lispref/nonascii.texi (Text Representations):
* doc/lispref/loading.texi (Loading Non-ASCII):
* doc/lispref/compile.texi (Byte Compilation): Don't mention obsolete
--unibyte command-line argument.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/lispref/compile.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/loading.texi | 7 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 3 |
4 files changed, 7 insertions, 16 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 9c09410c849..70b82830b44 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> | 1 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * nonascii.texi (Text Representations): | ||
| 4 | * loading.texi (Loading Non-ASCII): | ||
| 5 | * compile.texi (Byte Compilation): Don't mention obsolete | ||
| 6 | --unibyte command-line argument. | ||
| 7 | |||
| 8 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 9 | |||
| 3 | * modes.texi (Defining Minor Modes): Doc fix (Bug#6880). | 10 | * modes.texi (Defining Minor Modes): Doc fix (Bug#6880). |
| 4 | 11 | ||
| 5 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> | 12 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> |
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index 1c28664e7c3..69b57f19ea7 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi | |||
| @@ -22,12 +22,6 @@ hardware (as true compiled code is), byte-code is completely | |||
| 22 | transportable from machine to machine without recompilation. It is not, | 22 | transportable from machine to machine without recompilation. It is not, |
| 23 | however, as fast as true compiled code. | 23 | however, as fast as true compiled code. |
| 24 | 24 | ||
| 25 | Compiling a Lisp file with the Emacs byte compiler always reads the | ||
| 26 | file as multibyte text, even if Emacs was started with @samp{--unibyte}, | ||
| 27 | unless the file specifies otherwise. This is so that compilation gives | ||
| 28 | results compatible with running the same file without compilation. | ||
| 29 | @xref{Loading Non-ASCII}. | ||
| 30 | |||
| 31 | In general, any version of Emacs can run byte-compiled code produced | 25 | In general, any version of Emacs can run byte-compiled code produced |
| 32 | by recent earlier versions of Emacs, but the reverse is not true. | 26 | by recent earlier versions of Emacs, but the reverse is not true. |
| 33 | 27 | ||
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi index bbdd67fc3a5..dee2a0252eb 100644 --- a/doc/lispref/loading.texi +++ b/doc/lispref/loading.texi | |||
| @@ -367,13 +367,6 @@ example) is read without decoding, the text of the program will be | |||
| 367 | unibyte text, and its string constants will be unibyte strings. | 367 | unibyte text, and its string constants will be unibyte strings. |
| 368 | @xref{Coding Systems}. | 368 | @xref{Coding Systems}. |
| 369 | 369 | ||
| 370 | To make the results more predictable, Emacs always performs decoding | ||
| 371 | into the multibyte representation when loading Lisp files, even if it | ||
| 372 | was started with the @samp{--unibyte} option. This means that string | ||
| 373 | constants with non-@acronym{ASCII} characters translate into multibyte | ||
| 374 | strings. The only exception is when a particular file specifies no | ||
| 375 | decoding. | ||
| 376 | |||
| 377 | The reason Emacs is designed this way is so that Lisp programs give | 370 | The reason Emacs is designed this way is so that Lisp programs give |
| 378 | predictable results, regardless of how Emacs was started. In addition, | 371 | predictable results, regardless of how Emacs was started. In addition, |
| 379 | this enables programs that depend on using multibyte text to work even | 372 | this enables programs that depend on using multibyte text to work even |
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 00a1dffed6a..40c78d97da7 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -102,9 +102,6 @@ it contains unibyte encoded text or binary non-text data. | |||
| 102 | 102 | ||
| 103 | You cannot set this variable directly; instead, use the function | 103 | You cannot set this variable directly; instead, use the function |
| 104 | @code{set-buffer-multibyte} to change a buffer's representation. | 104 | @code{set-buffer-multibyte} to change a buffer's representation. |
| 105 | |||
| 106 | The @samp{--unibyte} command line option does its job by setting the | ||
| 107 | default value to @code{nil} early in startup. | ||
| 108 | @end defvar | 105 | @end defvar |
| 109 | 106 | ||
| 110 | @defun position-bytes position | 107 | @defun position-bytes position |