diff options
| author | Adrian Robert | 2009-09-18 15:11:38 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-09-18 15:11:38 +0000 |
| commit | 9b68317c5ecfd17bf1d83094979d146b8614e5c8 (patch) | |
| tree | 672cca4f64a6732ba30b3795e8511f6e40a1e8d6 | |
| parent | 08cf18e4ad3cae08660f17e7561c5332fb44b4f4 (diff) | |
| download | emacs-9b68317c5ecfd17bf1d83094979d146b8614e5c8.tar.gz emacs-9b68317c5ecfd17bf1d83094979d146b8614e5c8.zip | |
(inhibit_x_resources): Update doc string for NS. (main) [HAVE_NS]: Don't process --no-init-file option. Remove legacy code for -NXHost.
| -rw-r--r-- | src/emacs.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/emacs.c b/src/emacs.c index 9538e3cf059..8374a32669d 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -202,10 +202,6 @@ extern int inherited_pgroup; | |||
| 202 | int display_arg; | 202 | int display_arg; |
| 203 | #endif | 203 | #endif |
| 204 | 204 | ||
| 205 | #ifdef HAVE_NS | ||
| 206 | extern char ns_no_defaults; | ||
| 207 | #endif | ||
| 208 | |||
| 209 | /* An address near the bottom of the stack. | 205 | /* An address near the bottom of the stack. |
| 210 | Tells GC how to save a copy of the stack. */ | 206 | Tells GC how to save a copy of the stack. */ |
| 211 | char *stack_bottom; | 207 | char *stack_bottom; |
| @@ -1479,13 +1475,6 @@ main (int argc, char **argv) | |||
| 1479 | ns_alloc_autorelease_pool(); | 1475 | ns_alloc_autorelease_pool(); |
| 1480 | if (!noninteractive) | 1476 | if (!noninteractive) |
| 1481 | { | 1477 | { |
| 1482 | char *tmp; | ||
| 1483 | display_arg = 4; | ||
| 1484 | if (argmatch (argv, argc, "-q", "--no-init-file", 6, NULL, &skip_args)) | ||
| 1485 | { | ||
| 1486 | ns_no_defaults = 1; | ||
| 1487 | skip_args--; | ||
| 1488 | } | ||
| 1489 | #ifdef NS_IMPL_COCOA | 1478 | #ifdef NS_IMPL_COCOA |
| 1490 | if (skip_args < argc) | 1479 | if (skip_args < argc) |
| 1491 | { | 1480 | { |
| @@ -1500,16 +1489,7 @@ main (int argc, char **argv) | |||
| 1500 | chdir (getenv ("HOME")); | 1489 | chdir (getenv ("HOME")); |
| 1501 | } | 1490 | } |
| 1502 | } | 1491 | } |
| 1503 | #endif | 1492 | #endif /* COCOA */ |
| 1504 | /* This used for remote operation.. not fully implemented yet. */ | ||
| 1505 | if (argmatch (argv, argc, "-_NSMachLaunch", 0, 3, &tmp, &skip_args)) | ||
| 1506 | display_arg = 4; | ||
| 1507 | else if (argmatch (argv, argc, "-MachLaunch", 0, 3, &tmp, &skip_args)) | ||
| 1508 | display_arg = 4; | ||
| 1509 | else if (argmatch (argv, argc, "-macosx", 0, 2, NULL, &skip_args)) | ||
| 1510 | display_arg = 4; | ||
| 1511 | else if (argmatch (argv, argc, "-NSHost", 0, 3, &tmp, &skip_args)) | ||
| 1512 | display_arg = 4; | ||
| 1513 | } | 1493 | } |
| 1514 | #endif /* HAVE_NS */ | 1494 | #endif /* HAVE_NS */ |
| 1515 | 1495 | ||
| @@ -2679,7 +2659,7 @@ This is nil during initialization. */); | |||
| 2679 | Vafter_init_time = Qnil; | 2659 | Vafter_init_time = Qnil; |
| 2680 | 2660 | ||
| 2681 | DEFVAR_BOOL ("inhibit-x-resources", &inhibit_x_resources, | 2661 | DEFVAR_BOOL ("inhibit-x-resources", &inhibit_x_resources, |
| 2682 | doc: /* If non-nil, X resources and Windows Registry settings are not used. */); | 2662 | doc: /* If non-nil, X resources, Windows Registry settings, and NS defaults are not used. */); |
| 2683 | inhibit_x_resources = 0; | 2663 | inhibit_x_resources = 0; |
| 2684 | 2664 | ||
| 2685 | /* Make sure IS_DAEMON starts up as false. */ | 2665 | /* Make sure IS_DAEMON starts up as false. */ |