comparison src/w32reg.c @ 105069:4cbb223d0b1c

The --quick command line option now ignores X resources and Registry settings. * etc/NEWS: Mention new behavior of -Q and new variable `inhibit-x-resources'. * lisp/startup.el (emacs-quick-startup): Remove variable and all uses. (command-line): Set `inhibit-x-resources' instead. (command-line-1): Use `inhibit-x-resources' instead. * src/emacs.c (inhibit_x_resources): New variable. (main) [HAVE_NS]: Don't process --quick command line option. (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it. * src/lisp.h (inhibit_x_resources): Declare it extern. * src/w32reg.c (x_get_string_resource): * src/xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 17 Sep 2009 23:04:41 +0000
parents e038c1a8307c
children 68dd71358159
comparison
equal deleted inserted replaced
105068:b97679d5a9af 105069:4cbb223d0b1c
74 } 74 }
75 75
76 return NULL; 76 return NULL;
77 } 77 }
78 78
79 LPBYTE 79 static LPBYTE
80 w32_get_string_resource (name, class, dwexptype) 80 w32_get_string_resource (name, class, dwexptype)
81 char *name, *class; 81 char *name, *class;
82 DWORD dwexptype; 82 DWORD dwexptype;
83 { 83 {
84 LPBYTE lpvalue = NULL; 84 LPBYTE lpvalue = NULL;
158 return resource; 158 return resource;
159 if (resource = w32_get_rdb_resource (rdb, class)) 159 if (resource = w32_get_rdb_resource (rdb, class))
160 return resource; 160 return resource;
161 } 161 }
162 162
163 if (inhibit_x_resources)
164 /* --quick was passed, so this is a no-op. */
165 return NULL;
166
163 return (w32_get_string_resource (name, class, REG_SZ)); 167 return (w32_get_string_resource (name, class, REG_SZ));
164 } 168 }
165 169
166 /* arch-tag: 755fce25-42d7-4acb-874f-2fb42336823d 170 /* arch-tag: 755fce25-42d7-4acb-874f-2fb42336823d
167 (do not change this comment) */ 171 (do not change this comment) */