diff options
| author | Stefan Monnier | 2009-08-29 02:25:29 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-08-29 02:25:29 +0000 |
| commit | 82e98df4df1251dde645eb4878cc1225d067606a (patch) | |
| tree | 1b9a8d5cc8c7770f1e49edfaa00750c2802e35ff | |
| parent | 2fc50e12d6118293661dd85b7797bb655f8f4a56 (diff) | |
| download | emacs-82e98df4df1251dde645eb4878cc1225d067606a.tar.gz emacs-82e98df4df1251dde645eb4878cc1225d067606a.zip | |
* NEWS: Declare unibyte sessions obsolete.
* emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
(main): Use enable-multibyte-characters rather than
default-enable-multibyte-characters. Output a warning message when
running a unibyte session.
* mule.texi (Enabling Multibyte):
* cmdargs.texi (General Variables): Remove EMACS_UNIBYTE.
(Initial Options): Remove --(no-)multibyte, --(no-)unibyte.
| -rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/cmdargs.texi | 27 | ||||
| -rw-r--r-- | doc/emacs/mule.texi | 18 | ||||
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 6 | ||||
| -rw-r--r-- | lisp/disp-table.el | 18 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/emacs.c | 7 |
8 files changed, 37 insertions, 56 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index aa6d942d8c7..ce6f6c5ff12 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * mule.texi (Enabling Multibyte): | ||
| 4 | * cmdargs.texi (General Variables): Remove EMACS_UNIBYTE. | ||
| 5 | (Initial Options): Remove --(no-)multibyte, --(no-)unibyte. | ||
| 6 | |||
| 1 | 2009-08-20 Glenn Morris <rgm@gnu.org> | 7 | 2009-08-20 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * cal-xtra.texi (Non-Gregorian Diary): Mention ``Adar I'' special case. | 9 | * cal-xtra.texi (Non-Gregorian Diary): Mention ``Adar I'' special case. |
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index 1438c19c123..ca153a7e57c 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -333,27 +333,6 @@ Enable the Emacs Lisp debugger for errors in the init file. | |||
| 333 | @xref{Error Debugging,, Entering the Debugger on an Error, elisp, The | 333 | @xref{Error Debugging,, Entering the Debugger on an Error, elisp, The |
| 334 | GNU Emacs Lisp Reference Manual}. | 334 | GNU Emacs Lisp Reference Manual}. |
| 335 | 335 | ||
| 336 | @item --unibyte | ||
| 337 | @opindex --unibyte | ||
| 338 | @itemx --no-multibyte | ||
| 339 | @opindex --no-multibyte | ||
| 340 | @cindex unibyte operation, command-line argument | ||
| 341 | Do almost everything with single-byte buffers and strings. | ||
| 342 | All buffers and strings are unibyte unless you (or a Lisp program) | ||
| 343 | explicitly ask for a multibyte buffer or string. (Note that Emacs | ||
| 344 | always loads Lisp files in multibyte mode, even if @samp{--unibyte} is | ||
| 345 | specified; see @ref{Enabling Multibyte}.) Setting the environment | ||
| 346 | variable @env{EMACS_UNIBYTE} has the same effect | ||
| 347 | (@pxref{General Variables}). | ||
| 348 | |||
| 349 | @item --multibyte | ||
| 350 | @opindex --multibyte | ||
| 351 | @itemx --no-unibyte | ||
| 352 | @opindex --no-unibyte | ||
| 353 | Inhibit the effect of @env{EMACS_UNIBYTE}, so that Emacs | ||
| 354 | uses multibyte characters by default, as usual. | ||
| 355 | @end table | ||
| 356 | |||
| 357 | @node Command Example | 336 | @node Command Example |
| 358 | @appendixsec Command Argument Example | 337 | @appendixsec Command Argument Example |
| 359 | 338 | ||
| @@ -479,12 +458,6 @@ variables to be set, but it uses their values if they are set. | |||
| 479 | @item CDPATH | 458 | @item CDPATH |
| 480 | Used by the @code{cd} command to search for the directory you specify, | 459 | Used by the @code{cd} command to search for the directory you specify, |
| 481 | when you specify a relative directory name. | 460 | when you specify a relative directory name. |
| 482 | @item EMACS_UNIBYTE | ||
| 483 | @cindex unibyte operation, environment variable | ||
| 484 | Defining this environment variable with a nonempty value directs Emacs | ||
| 485 | to do almost everything with single-byte buffers and strings. It is | ||
| 486 | equivalent to using the @samp{--unibyte} command-line option on each | ||
| 487 | invocation. @xref{Initial Options}. | ||
| 488 | @item EMACSDATA | 461 | @item EMACSDATA |
| 489 | Directory for the architecture-independent files that come with Emacs. | 462 | Directory for the architecture-independent files that come with Emacs. |
| 490 | This is used to initialize the Lisp variable @code{data-directory}. | 463 | This is used to initialize the Lisp variable @code{data-directory}. |
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi index 663011d6f32..c630ba48e63 100644 --- a/doc/emacs/mule.texi +++ b/doc/emacs/mule.texi | |||
| @@ -249,8 +249,8 @@ limitations. | |||
| 249 | 249 | ||
| 250 | @cindex turn multibyte support on or off | 250 | @cindex turn multibyte support on or off |
| 251 | Under very special circumstances, you may want to disable multibyte | 251 | Under very special circumstances, you may want to disable multibyte |
| 252 | character support, either for Emacs as a whole, or for a single | 252 | character support, for a specific buffer. |
| 253 | buffer. When multibyte characters are disabled in a buffer, we call | 253 | When multibyte characters are disabled in a buffer, we call |
| 254 | that @dfn{unibyte mode}. In unibyte mode, each character in the | 254 | that @dfn{unibyte mode}. In unibyte mode, each character in the |
| 255 | buffer has a character code ranging from 0 through 255 (0377 octal); 0 | 255 | buffer has a character code ranging from 0 through 255 (0377 octal); 0 |
| 256 | through 127 (0177 octal) represent @acronym{ASCII} characters, and 128 | 256 | through 127 (0177 octal) represent @acronym{ASCII} characters, and 128 |
| @@ -268,22 +268,12 @@ Coding}. Unlike @code{find-file-literally}, finding a file as | |||
| 268 | @samp{raw-text} doesn't disable format conversion, uncompression, or | 268 | @samp{raw-text} doesn't disable format conversion, uncompression, or |
| 269 | auto mode selection. | 269 | auto mode selection. |
| 270 | 270 | ||
| 271 | @vindex enable-multibyte-characters | ||
| 272 | @cindex environment variables, and non-@acronym{ASCII} characters | ||
| 273 | To turn off multibyte character support by default, start Emacs with | ||
| 274 | the @samp{--unibyte} option (@pxref{Initial Options}), or set the | ||
| 275 | environment variable @env{EMACS_UNIBYTE}. | ||
| 276 | With @samp{--unibyte}, multibyte strings are not created during | ||
| 277 | initialization from the values of environment variables, | ||
| 278 | @file{/etc/passwd} entries etc., even if those contain | ||
| 279 | non-@acronym{ASCII} characters. | ||
| 280 | |||
| 281 | @cindex Lisp files, and multibyte operation | 271 | @cindex Lisp files, and multibyte operation |
| 282 | @cindex multibyte operation, and Lisp files | 272 | @cindex multibyte operation, and Lisp files |
| 283 | @cindex unibyte operation, and Lisp files | 273 | @cindex unibyte operation, and Lisp files |
| 284 | @cindex init file, and non-@acronym{ASCII} characters | 274 | @cindex init file, and non-@acronym{ASCII} characters |
| 285 | Emacs normally loads Lisp files as multibyte, regardless of whether | 275 | Emacs normally loads Lisp files as multibyte. |
| 286 | you used @samp{--unibyte}. This includes the Emacs initialization | 276 | This includes the Emacs initialization |
| 287 | file, @file{.emacs}, and the initialization files of Emacs packages | 277 | file, @file{.emacs}, and the initialization files of Emacs packages |
| 288 | such as Gnus. However, you can specify unibyte loading for a | 278 | such as Gnus. However, you can specify unibyte loading for a |
| 289 | particular Lisp file, by putting @w{@samp{-*-unibyte: t;-*-}} in a | 279 | particular Lisp file, by putting @w{@samp{-*-unibyte: t;-*-}} in a |
diff --git a/etc/ChangeLog b/etc/ChangeLog index cf76ac758bd..d1519949ff0 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * NEWS: Declare unibyte sessions obsolete. | ||
| 4 | |||
| 1 | 2009-08-28 Michael Albinus <michael.albinus@gmx.de> | 5 | 2009-08-28 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * NEWS: Mention Tramp connection method "rsyncc" and variable | 7 | * NEWS: Mention Tramp connection method "rsyncc" and variable |
| @@ -34,6 +34,12 @@ This might not work on all platforms. | |||
| 34 | 34 | ||
| 35 | * Changes in Emacs 23.2 | 35 | * Changes in Emacs 23.2 |
| 36 | 36 | ||
| 37 | ** Unibyte sessions are declared obsolete. | ||
| 38 | I.e. the use of the environment variable EMACS_UNIBYTE, or command line | ||
| 39 | arguments --unibyte, --multibyte, --no-multibyte, and --no-unibyte | ||
| 40 | is deprecated. Similarly for custom-izing enable-multibyte-characters, or | ||
| 41 | setting default-enable-multibyte-characters. | ||
| 42 | |||
| 37 | ** The default value of `trash-directory' has changed to nil, which | 43 | ** The default value of `trash-directory' has changed to nil, which |
| 38 | means that `move-file-to-trash' trashes files according to | 44 | means that `move-file-to-trash' trashes files according to |
| 39 | freedesktop.org specifications, the same method used by the Gnome, | 45 | freedesktop.org specifications, the same method used by the Gnome, |
diff --git a/lisp/disp-table.el b/lisp/disp-table.el index 78a2e6b7755..91dc4a7fd34 100644 --- a/lisp/disp-table.el +++ b/lisp/disp-table.el | |||
| @@ -216,14 +216,11 @@ X frame." | |||
| 216 | (defun standard-display-european (arg) | 216 | (defun standard-display-european (arg) |
| 217 | "Semi-obsolete way to toggle display of ISO 8859 European characters. | 217 | "Semi-obsolete way to toggle display of ISO 8859 European characters. |
| 218 | 218 | ||
| 219 | This function is semi-obsolete; if you want to do your editing with | 219 | This function is semi-obsolete; you probably don't need it, or else you |
| 220 | unibyte characters, it is better to `set-language-environment' coupled | 220 | probably should use `set-language-environment' or `set-locale-environment'. |
| 221 | with either the `--unibyte' option or the EMACS_UNIBYTE environment | ||
| 222 | variable, or else customize `enable-multibyte-characters'. | ||
| 223 | 221 | ||
| 224 | With prefix argument, this command enables European character display | 222 | This function enables European character display if ARG is positive, |
| 225 | if ARG is positive, disables it otherwise. Otherwise, it toggles | 223 | disables it if negative. Otherwise, it toggles European character display. |
| 226 | European character display. | ||
| 227 | 224 | ||
| 228 | When this mode is enabled, characters in the range of 160 to 255 | 225 | When this mode is enabled, characters in the range of 160 to 255 |
| 229 | display not as octal escapes, but as accented characters. Codes 146 | 226 | display not as octal escapes, but as accented characters. Codes 146 |
| @@ -231,10 +228,9 @@ and 160 display as apostrophe and space, even though they are not the | |||
| 231 | ASCII codes for apostrophe and space. | 228 | ASCII codes for apostrophe and space. |
| 232 | 229 | ||
| 233 | Enabling European character display with this command noninteractively | 230 | Enabling European character display with this command noninteractively |
| 234 | from Lisp code also selects Latin-1 as the language environment, and | 231 | from Lisp code also selects Latin-1 as the language environment. |
| 235 | selects unibyte mode for all Emacs buffers \(both existing buffers and | 232 | This provides increased compatibility for users who call this function |
| 236 | those created subsequently). This provides increased compatibility | 233 | in `.emacs'." |
| 237 | for users who call this function in `.emacs'." | ||
| 238 | 234 | ||
| 239 | (if (or (<= (prefix-numeric-value arg) 0) | 235 | (if (or (<= (prefix-numeric-value arg) 0) |
| 240 | (and (null arg) | 236 | (and (null arg) |
diff --git a/src/ChangeLog b/src/ChangeLog index 64aebb22725..a5c20814b3f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte. | ||
| 4 | (main): Use enable-multibyte-characters rather than | ||
| 5 | default-enable-multibyte-characters. Output a warning message when | ||
| 6 | running a unibyte session. | ||
| 7 | |||
| 1 | 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 8 | 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 9 | ||
| 3 | * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases | 10 | * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases |
diff --git a/src/emacs.c b/src/emacs.c index 494fb209459..2c14be5208e 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -271,7 +271,6 @@ Initialization options:\n\ | |||
| 271 | --daemon start a server in the background\n\ | 271 | --daemon start a server in the background\n\ |
| 272 | --debug-init enable Emacs Lisp debugger for init file\n\ | 272 | --debug-init enable Emacs Lisp debugger for init file\n\ |
| 273 | --display, -d DISPLAY use X server DISPLAY\n\ | 273 | --display, -d DISPLAY use X server DISPLAY\n\ |
| 274 | --multibyte, --no-unibyte inhibit the effect of EMACS_UNIBYTE\n\ | ||
| 275 | --no-desktop do not load a saved desktop\n\ | 274 | --no-desktop do not load a saved desktop\n\ |
| 276 | --no-init-file, -q load neither ~/.emacs nor default.el\n\ | 275 | --no-init-file, -q load neither ~/.emacs nor default.el\n\ |
| 277 | --no-shared-memory, -nl do not use shared memory\n\ | 276 | --no-shared-memory, -nl do not use shared memory\n\ |
| @@ -281,7 +280,6 @@ Initialization options:\n\ | |||
| 281 | --quick, -Q equivalent to -q --no-site-file --no-splash\n\ | 280 | --quick, -Q equivalent to -q --no-site-file --no-splash\n\ |
| 282 | --script FILE run FILE as an Emacs Lisp script\n\ | 281 | --script FILE run FILE as an Emacs Lisp script\n\ |
| 283 | --terminal, -t DEVICE use DEVICE for terminal I/O\n\ | 282 | --terminal, -t DEVICE use DEVICE for terminal I/O\n\ |
| 284 | --unibyte, --no-multibyte run Emacs in unibyte mode\n\ | ||
| 285 | --user, -u USER load ~USER/.emacs instead of your own\n\ | 283 | --user, -u USER load ~USER/.emacs instead of your own\n\ |
| 286 | \n%s" | 284 | \n%s" |
| 287 | 285 | ||
| @@ -1439,8 +1437,8 @@ main (int argc, char **argv) | |||
| 1439 | Lisp_Object old_log_max; | 1437 | Lisp_Object old_log_max; |
| 1440 | Lisp_Object symbol, tail; | 1438 | Lisp_Object symbol, tail; |
| 1441 | 1439 | ||
| 1442 | symbol = intern ("default-enable-multibyte-characters"); | 1440 | symbol = intern ("enable-multibyte-characters"); |
| 1443 | Fset (symbol, Qnil); | 1441 | Fset_default (symbol, Qnil); |
| 1444 | 1442 | ||
| 1445 | if (initialized) | 1443 | if (initialized) |
| 1446 | { | 1444 | { |
| @@ -1467,6 +1465,7 @@ main (int argc, char **argv) | |||
| 1467 | set_buffer_temp (current); | 1465 | set_buffer_temp (current); |
| 1468 | } | 1466 | } |
| 1469 | } | 1467 | } |
| 1468 | message ("Warning: unibyte sessions are obsolete and will disappear"); | ||
| 1470 | } | 1469 | } |
| 1471 | } | 1470 | } |
| 1472 | 1471 | ||