all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: David De La Harpe Golden <david@harpegolden.net>,
	Emacs developers <emacs-devel@gnu.org>,
	Miles Bader <miles@gnu.org>
Subject: Re: Not loading the Registry settings
Date: Mon, 14 Sep 2009 15:48:30 +0200	[thread overview]
Message-ID: <f7ccd24b0909140648q7df1cfc9ta7337bd1d0890d69@mail.gmail.com> (raw)
In-Reply-To: <jwv3a6pfyh7.fsf-monnier+emacs@gnu.org>

On Mon, Sep 14, 2009 at 15:29, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> 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.  I'd rather see a new variable Vinhibit_x_resources
> 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 = 4;
      if (argmatch (argv, argc, "-q", "--no-init-file", 6, NULL, &skip_args))
        {
          ns_no_defaults = 1;
          skip_args--;
        }
      if (argmatch (argv, argc, "-Q", "--quick", 5, NULL, &skip_args))
        {
          ns_no_defaults = 1;
          skip_args--;
        }
#ifdef NS_IMPL_COCOA
      if (skip_args < argc)
        {
          if (!strncmp(argv[skip_args], "-psn", 4))
            {
              skip_args += 1;
              chdir (getenv ("HOME"));
            }
          else if (skip_args+1 < argc && !strncmp(argv[skip_args+1], "-psn", 4))
            {
              skip_args += 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 = 4;
      else if (argmatch (argv, argc, "-MachLaunch", 0, 3, &tmp, &skip_args))
          display_arg = 4;
      else if (argmatch (argv, argc, "-macosx", 0, 2, NULL, &skip_args))
          display_arg = 4;
      else if (argmatch (argv, argc, "-NSHost", 0, 3, &tmp, &skip_args))
          display_arg = 4;
    }
#endif /* HAVE_NS */

I think intermixing this with the new processing of -Q/--quick will
lead to uglier code...

    Juanma




  reply	other threads:[~2009-09-14 13:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-12 11:45 Not loading the Registry settings Juanma Barranquero
2009-09-12 12:28 ` David De La Harpe Golden
2009-09-12 12:50   ` Adrian Robert
2009-09-12 14:22   ` Juanma Barranquero
2009-09-12 19:14     ` Stefan Monnier
2009-09-13  2:29       ` Miles Bader
2009-09-14  0:34         ` Juanma Barranquero
2009-09-14 13:29           ` Stefan Monnier
2009-09-14 13:48             ` Juanma Barranquero [this message]
2009-09-14 13:54               ` Juanma Barranquero
2009-09-14 21:53                 ` Stefan Monnier
2009-09-14 22:24                   ` Juanma Barranquero
2009-09-15  1:31                     ` Stefan Monnier
2009-09-15  9:26                       ` Juanma Barranquero
2009-09-15 13:34                         ` Stefan Monnier
2009-09-15 14:27                           ` Juanma Barranquero
2009-09-14 14:51               ` Adrian Robert
     [not found]               ` <jwv63bl5onb.fsf-monnier+emacs@gnu.org>
2009-09-14 19:39                 ` Adrian Robert
2009-09-17 23:09                   ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0909140648q7df1cfc9ta7337bd1d0890d69@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=david@harpegolden.net \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.