* 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.
This commit is contained in:
parent
2fc50e12d6
commit
82e98df4df
8 changed files with 37 additions and 56 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* mule.texi (Enabling Multibyte):
|
||||
* cmdargs.texi (General Variables): Remove EMACS_UNIBYTE.
|
||||
(Initial Options): Remove --(no-)multibyte, --(no-)unibyte.
|
||||
|
||||
2009-08-20 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* cal-xtra.texi (Non-Gregorian Diary): Mention ``Adar I'' special case.
|
||||
|
|
|
|||
|
|
@ -333,27 +333,6 @@ Enable the Emacs Lisp debugger for errors in the init file.
|
|||
@xref{Error Debugging,, Entering the Debugger on an Error, elisp, The
|
||||
GNU Emacs Lisp Reference Manual}.
|
||||
|
||||
@item --unibyte
|
||||
@opindex --unibyte
|
||||
@itemx --no-multibyte
|
||||
@opindex --no-multibyte
|
||||
@cindex unibyte operation, command-line argument
|
||||
Do almost everything with single-byte buffers and strings.
|
||||
All buffers and strings are unibyte unless you (or a Lisp program)
|
||||
explicitly ask for a multibyte buffer or string. (Note that Emacs
|
||||
always loads Lisp files in multibyte mode, even if @samp{--unibyte} is
|
||||
specified; see @ref{Enabling Multibyte}.) Setting the environment
|
||||
variable @env{EMACS_UNIBYTE} has the same effect
|
||||
(@pxref{General Variables}).
|
||||
|
||||
@item --multibyte
|
||||
@opindex --multibyte
|
||||
@itemx --no-unibyte
|
||||
@opindex --no-unibyte
|
||||
Inhibit the effect of @env{EMACS_UNIBYTE}, so that Emacs
|
||||
uses multibyte characters by default, as usual.
|
||||
@end table
|
||||
|
||||
@node Command Example
|
||||
@appendixsec Command Argument Example
|
||||
|
||||
|
|
@ -479,12 +458,6 @@ variables to be set, but it uses their values if they are set.
|
|||
@item CDPATH
|
||||
Used by the @code{cd} command to search for the directory you specify,
|
||||
when you specify a relative directory name.
|
||||
@item EMACS_UNIBYTE
|
||||
@cindex unibyte operation, environment variable
|
||||
Defining this environment variable with a nonempty value directs Emacs
|
||||
to do almost everything with single-byte buffers and strings. It is
|
||||
equivalent to using the @samp{--unibyte} command-line option on each
|
||||
invocation. @xref{Initial Options}.
|
||||
@item EMACSDATA
|
||||
Directory for the architecture-independent files that come with Emacs.
|
||||
This is used to initialize the Lisp variable @code{data-directory}.
|
||||
|
|
|
|||
|
|
@ -249,8 +249,8 @@ limitations.
|
|||
|
||||
@cindex turn multibyte support on or off
|
||||
Under very special circumstances, you may want to disable multibyte
|
||||
character support, either for Emacs as a whole, or for a single
|
||||
buffer. When multibyte characters are disabled in a buffer, we call
|
||||
character support, for a specific buffer.
|
||||
When multibyte characters are disabled in a buffer, we call
|
||||
that @dfn{unibyte mode}. In unibyte mode, each character in the
|
||||
buffer has a character code ranging from 0 through 255 (0377 octal); 0
|
||||
through 127 (0177 octal) represent @acronym{ASCII} characters, and 128
|
||||
|
|
@ -268,22 +268,12 @@ Coding}. Unlike @code{find-file-literally}, finding a file as
|
|||
@samp{raw-text} doesn't disable format conversion, uncompression, or
|
||||
auto mode selection.
|
||||
|
||||
@vindex enable-multibyte-characters
|
||||
@cindex environment variables, and non-@acronym{ASCII} characters
|
||||
To turn off multibyte character support by default, start Emacs with
|
||||
the @samp{--unibyte} option (@pxref{Initial Options}), or set the
|
||||
environment variable @env{EMACS_UNIBYTE}.
|
||||
With @samp{--unibyte}, multibyte strings are not created during
|
||||
initialization from the values of environment variables,
|
||||
@file{/etc/passwd} entries etc., even if those contain
|
||||
non-@acronym{ASCII} characters.
|
||||
|
||||
@cindex Lisp files, and multibyte operation
|
||||
@cindex multibyte operation, and Lisp files
|
||||
@cindex unibyte operation, and Lisp files
|
||||
@cindex init file, and non-@acronym{ASCII} characters
|
||||
Emacs normally loads Lisp files as multibyte, regardless of whether
|
||||
you used @samp{--unibyte}. This includes the Emacs initialization
|
||||
Emacs normally loads Lisp files as multibyte.
|
||||
This includes the Emacs initialization
|
||||
file, @file{.emacs}, and the initialization files of Emacs packages
|
||||
such as Gnus. However, you can specify unibyte loading for a
|
||||
particular Lisp file, by putting @w{@samp{-*-unibyte: t;-*-}} in a
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* NEWS: Declare unibyte sessions obsolete.
|
||||
|
||||
2009-08-28 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* NEWS: Mention Tramp connection method "rsyncc" and variable
|
||||
|
|
|
|||
6
etc/NEWS
6
etc/NEWS
|
|
@ -34,6 +34,12 @@ This might not work on all platforms.
|
|||
|
||||
* Changes in Emacs 23.2
|
||||
|
||||
** Unibyte sessions are declared obsolete.
|
||||
I.e. the use of the environment variable EMACS_UNIBYTE, or command line
|
||||
arguments --unibyte, --multibyte, --no-multibyte, and --no-unibyte
|
||||
is deprecated. Similarly for custom-izing enable-multibyte-characters, or
|
||||
setting default-enable-multibyte-characters.
|
||||
|
||||
** The default value of `trash-directory' has changed to nil, which
|
||||
means that `move-file-to-trash' trashes files according to
|
||||
freedesktop.org specifications, the same method used by the Gnome,
|
||||
|
|
|
|||
|
|
@ -216,14 +216,11 @@ X frame."
|
|||
(defun standard-display-european (arg)
|
||||
"Semi-obsolete way to toggle display of ISO 8859 European characters.
|
||||
|
||||
This function is semi-obsolete; if you want to do your editing with
|
||||
unibyte characters, it is better to `set-language-environment' coupled
|
||||
with either the `--unibyte' option or the EMACS_UNIBYTE environment
|
||||
variable, or else customize `enable-multibyte-characters'.
|
||||
This function is semi-obsolete; you probably don't need it, or else you
|
||||
probably should use `set-language-environment' or `set-locale-environment'.
|
||||
|
||||
With prefix argument, this command enables European character display
|
||||
if ARG is positive, disables it otherwise. Otherwise, it toggles
|
||||
European character display.
|
||||
This function enables European character display if ARG is positive,
|
||||
disables it if negative. Otherwise, it toggles European character display.
|
||||
|
||||
When this mode is enabled, characters in the range of 160 to 255
|
||||
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
|
|||
ASCII codes for apostrophe and space.
|
||||
|
||||
Enabling European character display with this command noninteractively
|
||||
from Lisp code also selects Latin-1 as the language environment, and
|
||||
selects unibyte mode for all Emacs buffers \(both existing buffers and
|
||||
those created subsequently). This provides increased compatibility
|
||||
for users who call this function in `.emacs'."
|
||||
from Lisp code also selects Latin-1 as the language environment.
|
||||
This provides increased compatibility for users who call this function
|
||||
in `.emacs'."
|
||||
|
||||
(if (or (<= (prefix-numeric-value arg) 0)
|
||||
(and (null arg)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* 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.
|
||||
|
||||
2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
|
||||
|
||||
* unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
|
||||
|
|
|
|||
|
|
@ -271,7 +271,6 @@ Initialization options:\n\
|
|||
--daemon start a server in the background\n\
|
||||
--debug-init enable Emacs Lisp debugger for init file\n\
|
||||
--display, -d DISPLAY use X server DISPLAY\n\
|
||||
--multibyte, --no-unibyte inhibit the effect of EMACS_UNIBYTE\n\
|
||||
--no-desktop do not load a saved desktop\n\
|
||||
--no-init-file, -q load neither ~/.emacs nor default.el\n\
|
||||
--no-shared-memory, -nl do not use shared memory\n\
|
||||
|
|
@ -281,7 +280,6 @@ Initialization options:\n\
|
|||
--quick, -Q equivalent to -q --no-site-file --no-splash\n\
|
||||
--script FILE run FILE as an Emacs Lisp script\n\
|
||||
--terminal, -t DEVICE use DEVICE for terminal I/O\n\
|
||||
--unibyte, --no-multibyte run Emacs in unibyte mode\n\
|
||||
--user, -u USER load ~USER/.emacs instead of your own\n\
|
||||
\n%s"
|
||||
|
||||
|
|
@ -1439,8 +1437,8 @@ main (int argc, char **argv)
|
|||
Lisp_Object old_log_max;
|
||||
Lisp_Object symbol, tail;
|
||||
|
||||
symbol = intern ("default-enable-multibyte-characters");
|
||||
Fset (symbol, Qnil);
|
||||
symbol = intern ("enable-multibyte-characters");
|
||||
Fset_default (symbol, Qnil);
|
||||
|
||||
if (initialized)
|
||||
{
|
||||
|
|
@ -1467,6 +1465,7 @@ main (int argc, char **argv)
|
|||
set_buffer_temp (current);
|
||||
}
|
||||
}
|
||||
message ("Warning: unibyte sessions are obsolete and will disappear");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue