aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorAdrian Robert2009-01-23 09:58:02 +0000
committerAdrian Robert2009-01-23 09:58:02 +0000
commit3436b70cbe074ecfdf378c53d3dbe3566afbd791 (patch)
tree91f181b5de6a4637183d14f1682102ac3476d685 /src/emacs.c
parentb3243e6f1a45b2dc2dfda676332a0fd20d0e6e57 (diff)
downloademacs-3436b70cbe074ecfdf378c53d3dbe3566afbd791.tar.gz
emacs-3436b70cbe074ecfdf378c53d3dbe3566afbd791.zip
* 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.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index df5e4cdeeb4..1b4872bf4c9 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -202,6 +202,10 @@ extern int inherited_pgroup;
202int display_arg; 202int display_arg;
203#endif 203#endif
204 204
205#ifdef HAVE_NS
206extern char ns_no_defaults;
207#endif
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. */
207char *stack_bottom; 211char *stack_bottom;
@@ -1473,6 +1477,16 @@ main (int argc, char **argv)
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 {