diff options
| author | Richard M. Stallman | 1998-01-26 03:19:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-01-26 03:19:54 +0000 |
| commit | 0b9f07b98fcb6b9538b3dea22f22f4d38e428c40 (patch) | |
| tree | 94ddc4afa168770384a352cb86d9440e46253c9b /src | |
| parent | fbd410d6df8fefbd38afa263d57dea540f46414c (diff) | |
| download | emacs-0b9f07b98fcb6b9538b3dea22f22f4d38e428c40.tar.gz emacs-0b9f07b98fcb6b9538b3dea22f22f4d38e428c40.zip | |
(standard_args): Add "-unibyte" aka "--unibyte".
(main): Handle --unibyte.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index cbcab1a887b..0a50ef3c7b9 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -731,6 +731,18 @@ main (argc, argv, envp) | |||
| 731 | 731 | ||
| 732 | inhibit_window_system = 0; | 732 | inhibit_window_system = 0; |
| 733 | 733 | ||
| 734 | /* --unibyte requests that we set up to do everything with single-byte | ||
| 735 | buffers and strings. We need to handle this before calling | ||
| 736 | init_lread, init_editfns and other places that generate Lisp strings | ||
| 737 | from text in the environment. */ | ||
| 738 | if (argmatch (argv, argc, "-unibyte", "--unibyte", 4, NULL, &skip_args)) | ||
| 739 | { | ||
| 740 | Lisp_Object symbol; | ||
| 741 | symbol = intern ("default-enable-multibyte-characters"); | ||
| 742 | Fset (symbol, Qnil); | ||
| 743 | Fset_default (symbol, Qnil); | ||
| 744 | } | ||
| 745 | |||
| 734 | /* Handle the -t switch, which specifies filename to use as terminal */ | 746 | /* Handle the -t switch, which specifies filename to use as terminal */ |
| 735 | { | 747 | { |
| 736 | char *term; | 748 | char *term; |
| @@ -1232,6 +1244,7 @@ struct standard_args standard_args[] = | |||
| 1232 | #ifdef VMS | 1244 | #ifdef VMS |
| 1233 | { "-map", "--map-data", 100, 0 }, | 1245 | { "-map", "--map-data", 100, 0 }, |
| 1234 | #endif | 1246 | #endif |
| 1247 | { "-unibyte", "--unibyte", 95, 0 }, | ||
| 1235 | { "-t", "--terminal", 90, 1 }, | 1248 | { "-t", "--terminal", 90, 1 }, |
| 1236 | { "-d", "--display", 80, 1 }, | 1249 | { "-d", "--display", 80, 1 }, |
| 1237 | { "-display", 0, 80, 1 }, | 1250 | { "-display", 0, 80, 1 }, |