Mercurial > emacs
comparison src/emacs.c @ 101399:5b58e8f46076
* emacs.c (ns_no_defaults): New declaration. (main): Use it. * nsterm.h (ns_no_defaults): New declaration. * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults. * nsterm.m (ns_no_defaults): New variable. (ns_initialize): Don't read defaults when ns_no_defaults.
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Fri, 23 Jan 2009 09:58:02 +0000 |
parents | 6b87429f988f |
children | 6381c0548cdd |
comparison
equal
deleted
inserted
replaced
101398:6b87429f988f | 101399:5b58e8f46076 |
---|---|
198 #endif | 198 #endif |
199 | 199 |
200 #if defined(HAVE_X_WINDOWS) || defined(HAVE_NS) | 200 #if defined(HAVE_X_WINDOWS) || defined(HAVE_NS) |
201 /* If non-zero, -d was specified, meaning we're using some window system. */ | 201 /* If non-zero, -d was specified, meaning we're using some window system. */ |
202 int display_arg; | 202 int display_arg; |
203 #endif | |
204 | |
205 #ifdef HAVE_NS | |
206 extern char ns_no_defaults; | |
203 #endif | 207 #endif |
204 | 208 |
205 /* An address near the bottom of the stack. | 209 /* An address near the bottom of the stack. |
206 Tells GC how to save a copy of the stack. */ | 210 Tells GC how to save a copy of the stack. */ |
207 char *stack_bottom; | 211 char *stack_bottom; |
1471 ns_alloc_autorelease_pool(); | 1475 ns_alloc_autorelease_pool(); |
1472 if (!noninteractive) | 1476 if (!noninteractive) |
1473 { | 1477 { |
1474 char *tmp; | 1478 char *tmp; |
1475 display_arg = 4; | 1479 display_arg = 4; |
1480 if (argmatch (argv, argc, "-q", "--no-init-file", 6, NULL, &skip_args)) | |
1481 { | |
1482 ns_no_defaults = 1; | |
1483 skip_args--; | |
1484 } | |
1485 if (argmatch (argv, argc, "-Q", "--quick", 5, NULL, &skip_args)) | |
1486 { | |
1487 ns_no_defaults = 1; | |
1488 skip_args--; | |
1489 } | |
1476 #ifdef NS_IMPL_COCOA | 1490 #ifdef NS_IMPL_COCOA |
1477 if (skip_args < argc) | 1491 if (skip_args < argc) |
1478 { | 1492 { |
1479 if (!strncmp(argv[skip_args], "-psn", 4)) | 1493 if (!strncmp(argv[skip_args], "-psn", 4)) |
1480 { | 1494 { |