aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-08-29 02:25:29 +0000
committerStefan Monnier2009-08-29 02:25:29 +0000
commit82e98df4df1251dde645eb4878cc1225d067606a (patch)
tree1b9a8d5cc8c7770f1e49edfaa00750c2802e35ff
parent2fc50e12d6118293661dd85b7797bb655f8f4a56 (diff)
downloademacs-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/ChangeLog6
-rw-r--r--doc/emacs/cmdargs.texi27
-rw-r--r--doc/emacs/mule.texi18
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS6
-rw-r--r--lisp/disp-table.el18
-rw-r--r--src/ChangeLog7
-rw-r--r--src/emacs.c7
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 @@
12009-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
12009-08-20 Glenn Morris <rgm@gnu.org> 72009-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
334GNU Emacs Lisp Reference Manual}. 334GNU 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
341Do almost everything with single-byte buffers and strings.
342All buffers and strings are unibyte unless you (or a Lisp program)
343explicitly ask for a multibyte buffer or string. (Note that Emacs
344always loads Lisp files in multibyte mode, even if @samp{--unibyte} is
345specified; see @ref{Enabling Multibyte}.) Setting the environment
346variable @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
353Inhibit the effect of @env{EMACS_UNIBYTE}, so that Emacs
354uses 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
480Used by the @code{cd} command to search for the directory you specify, 459Used by the @code{cd} command to search for the directory you specify,
481when you specify a relative directory name. 460when you specify a relative directory name.
482@item EMACS_UNIBYTE
483@cindex unibyte operation, environment variable
484Defining this environment variable with a nonempty value directs Emacs
485to do almost everything with single-byte buffers and strings. It is
486equivalent to using the @samp{--unibyte} command-line option on each
487invocation. @xref{Initial Options}.
488@item EMACSDATA 461@item EMACSDATA
489Directory for the architecture-independent files that come with Emacs. 462Directory for the architecture-independent files that come with Emacs.
490This is used to initialize the Lisp variable @code{data-directory}. 463This 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
252character support, either for Emacs as a whole, or for a single 252character support, for a specific buffer.
253buffer. When multibyte characters are disabled in a buffer, we call 253When multibyte characters are disabled in a buffer, we call
254that @dfn{unibyte mode}. In unibyte mode, each character in the 254that @dfn{unibyte mode}. In unibyte mode, each character in the
255buffer has a character code ranging from 0 through 255 (0377 octal); 0 255buffer has a character code ranging from 0 through 255 (0377 octal); 0
256through 127 (0177 octal) represent @acronym{ASCII} characters, and 128 256through 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
269auto mode selection. 269auto 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
274the @samp{--unibyte} option (@pxref{Initial Options}), or set the
275environment variable @env{EMACS_UNIBYTE}.
276With @samp{--unibyte}, multibyte strings are not created during
277initialization from the values of environment variables,
278@file{/etc/passwd} entries etc., even if those contain
279non-@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.
286you used @samp{--unibyte}. This includes the Emacs initialization 276This includes the Emacs initialization
287file, @file{.emacs}, and the initialization files of Emacs packages 277file, @file{.emacs}, and the initialization files of Emacs packages
288such as Gnus. However, you can specify unibyte loading for a 278such as Gnus. However, you can specify unibyte loading for a
289particular Lisp file, by putting @w{@samp{-*-unibyte: t;-*-}} in a 279particular 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 @@
12009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * NEWS: Declare unibyte sessions obsolete.
4
12009-08-28 Michael Albinus <michael.albinus@gmx.de> 52009-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
diff --git a/etc/NEWS b/etc/NEWS
index 7344e711482..042694fae70 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
38I.e. the use of the environment variable EMACS_UNIBYTE, or command line
39arguments --unibyte, --multibyte, --no-multibyte, and --no-unibyte
40is deprecated. Similarly for custom-izing enable-multibyte-characters, or
41setting 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
38means that `move-file-to-trash' trashes files according to 44means that `move-file-to-trash' trashes files according to
39freedesktop.org specifications, the same method used by the Gnome, 45freedesktop.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
219This function is semi-obsolete; if you want to do your editing with 219This function is semi-obsolete; you probably don't need it, or else you
220unibyte characters, it is better to `set-language-environment' coupled 220probably should use `set-language-environment' or `set-locale-environment'.
221with either the `--unibyte' option or the EMACS_UNIBYTE environment
222variable, or else customize `enable-multibyte-characters'.
223 221
224With prefix argument, this command enables European character display 222This function enables European character display if ARG is positive,
225if ARG is positive, disables it otherwise. Otherwise, it toggles 223disables it if negative. Otherwise, it toggles European character display.
226European character display.
227 224
228When this mode is enabled, characters in the range of 160 to 255 225When this mode is enabled, characters in the range of 160 to 255
229display not as octal escapes, but as accented characters. Codes 146 226display 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
231ASCII codes for apostrophe and space. 228ASCII codes for apostrophe and space.
232 229
233Enabling European character display with this command noninteractively 230Enabling European character display with this command noninteractively
234from Lisp code also selects Latin-1 as the language environment, and 231from Lisp code also selects Latin-1 as the language environment.
235selects unibyte mode for all Emacs buffers \(both existing buffers and 232This provides increased compatibility for users who call this function
236those created subsequently). This provides increased compatibility 233in `.emacs'."
237for 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 @@
12009-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
12009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 82009-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