From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Not loading the Registry settings Date: Mon, 14 Sep 2009 15:48:30 +0200 Message-ID: References: <4AAB93D4.8070201@harpegolden.net> <87skerr30v.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1252936259 6562 80.91.229.12 (14 Sep 2009 13:50:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2009 13:50:59 +0000 (UTC) Cc: David De La Harpe Golden , Emacs developers , Miles Bader To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 14 15:50:51 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MnBxB-0000DK-Nl for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2009 15:50:50 +0200 Original-Received: from localhost ([127.0.0.1]:43514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnBxB-0004W3-8S for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2009 09:50:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnBws-0004Kb-Vm for emacs-devel@gnu.org; Mon, 14 Sep 2009 09:50:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnBwo-0004Id-5Q for emacs-devel@gnu.org; Mon, 14 Sep 2009 09:50:30 -0400 Original-Received: from [199.232.76.173] (port=48721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnBwn-0004IY-Ru for emacs-devel@gnu.org; Mon, 14 Sep 2009 09:50:25 -0400 Original-Received: from mail-bw0-f220.google.com ([209.85.218.220]:44881) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnBwl-0003Cq-H1; Mon, 14 Sep 2009 09:50:23 -0400 Original-Received: by bwz20 with SMTP id 20so2195858bwz.42 for ; Mon, 14 Sep 2009 06:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=N8l2UeAl1Ul3YRzDwTbE6rq6nq70SLivofuVxnRYWKk=; b=RBRTwnbSV3KRW+y1PEJ2m8sNRVaCvAEslN+dO7pB/1nxyZLsmovFJAb03KkPx6w2kG cwGhiL38zZ4KBF2VUIE5X7LyPp/EsgUTBN4T1XGPs7+H6FIFlssDFXbwBa3yOajTd/5m TEU2fK+Uic11gNsAwV22xAoKxihX/zJ87c2cg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=JJRf503xpHY//erH9K8knmPGvPWIAiKkrJC3yOfiWzYYrfAFyQfznVknNnjUowIJpF 8DUtFh9miUgQ5d0dprQENXeGHxByL0ALZiF5+xhgwY8NZ2tMwZOpt+OeLv3S1yaM4EHq yW8Vs56ZU0FKkGF+Jya1jl47/lUosPjffEXM4= Original-Received: by 10.239.145.142 with SMTP id s14mr544873hba.144.1252936221506; Mon, 14 Sep 2009 06:50:21 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115302 Archived-At: On Mon, Sep 14, 2009 at 15:29, Stefan Monnier wr= ote: > Interesting approach. It's simple. In my patch, "emacs -Q -xrm resource" won't obey -xrm either, but it is trivially easy to change it to allow that, if desired (it's just moving the "if() ... return" down a few lines in w32reg:x_get_resource_string). > I think that's OK, but the double-parsing of -Q is not > very satisfactory. =C2=A0I'd rather see a new variable Vinhibit_x_resourc= es > instead, which the Lisp code could set to non-nil when it parses > the -Q argument. I had in fact done that before (though I reused instead the currently undocumented emacs-quick-startup variable that startup.el uses now). But I didn't want to mess with the processing of -Q/--quick in the HAVE_NS block immediately following: #ifdef HAVE_NS ns_alloc_autorelease_pool(); if (!noninteractive) { char *tmp; display_arg =3D 4; if (argmatch (argv, argc, "-q", "--no-init-file", 6, NULL, &skip_args= )) { ns_no_defaults =3D 1; skip_args--; } if (argmatch (argv, argc, "-Q", "--quick", 5, NULL, &skip_args)) { ns_no_defaults =3D 1; skip_args--; } #ifdef NS_IMPL_COCOA if (skip_args < argc) { if (!strncmp(argv[skip_args], "-psn", 4)) { skip_args +=3D 1; chdir (getenv ("HOME")); } else if (skip_args+1 < argc && !strncmp(argv[skip_args+1], "-psn"= , 4)) { skip_args +=3D 2; chdir (getenv ("HOME")); } } #endif /* This used for remote operation.. not fully implemented yet. */ if (argmatch (argv, argc, "-_NSMachLaunch", 0, 3, &tmp, &skip_args)) display_arg =3D 4; else if (argmatch (argv, argc, "-MachLaunch", 0, 3, &tmp, &skip_args)= ) display_arg =3D 4; else if (argmatch (argv, argc, "-macosx", 0, 2, NULL, &skip_args)) display_arg =3D 4; else if (argmatch (argv, argc, "-NSHost", 0, 3, &tmp, &skip_args)) display_arg =3D 4; } #endif /* HAVE_NS */ I think intermixing this with the new processing of -Q/--quick will lead to uglier code... Juanma