all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jerry Asher <ja2038@gmail.com>
Cc: 23186@debbugs.gnu.org
Subject: bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match
Date: Sat, 02 Apr 2016 19:44:18 +0300	[thread overview]
Message-ID: <8337r4rme5.fsf@gnu.org> (raw)
In-Reply-To: <CACTc7Z=D-2pS4g=_KtKm1N+f21ThRp_-Ep-CBGjPUa=SuhkdCQ@mail.gmail.com> (message from Jerry Asher on Sat, 2 Apr 2016 09:06:57 -0700)

> From: Jerry Asher <ja2038@gmail.com>
> Date: Sat, 2 Apr 2016 09:06:57 -0700
> 
> So here's the caveat, I have poked the emacs.exe image so that it does not start as a console app, but so
> that it starts as a windows app. Now, I am not a windows developer, I do not know that this is why COMSPEC
> has not been set, but boy, it's got to be, right? ?
> 
> For more on how to poke the emacs.exe image to start as a windows app, see here
> https://github.com/jerryasher/consoleAppToWin basically, doing so seems to make both ntemacs and cygwin
> emacs run a bit nicer, and so far, this is the only issue I've seen crop up.
> 
> Now, you might reasonably claim that since I am starting up emacs in a very non-standard unsupported
> manner, the issue is totally mine and no fix is necessary. And there is some logic to that.
> 
> Regardless, I would say the assumption that COMSPEC is always set and so therefore if it fails it is okay to
> assign nil to tramp-encoding-shell knowing that later on it will be in a string-match is problematic in and of
> itself. 

Tramp is designed to work with Emacs as released by the Emacs
development team.  That Emacs doesn't have this problem.  I think it
would be unreasonable for anyone to expect the Tramp maintainers to
cater to arbitrary changes in the Emacs code or in how it is
configured on Windows, let alone if you poke some addresses in the PE
headers of the produced binary.

> I don't know that my fix would fix those issues as well, but those issues point to a basic problem where
> tramp-encoding-shell is set to nil and then later compared in string-match.

Your fix is AFAIK incorrect because the directory where cmd.exe lives
is not necessarily C:\Windows\system32.  It just happens to be there
on the particular system where you tried that.

What is the full contents of the environment of the Emacs process when
you run that zapped binary?





  reply	other threads:[~2016-04-02 16:44 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-02 16:06 bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match Jerry Asher
2016-04-02 16:44 ` Eli Zaretskii [this message]
2016-04-02 17:26   ` Eli Zaretskii
2016-04-02 19:37   ` Michael Albinus
2016-04-02 20:03     ` Eli Zaretskii
2016-04-02 20:21       ` Jerry Asher
2016-04-02 20:29         ` Eli Zaretskii
2016-04-03  7:05         ` Michael Albinus
     [not found] ` <handler.23186.D23186.145961804117806.notifdone@debbugs.gnu.org>
2016-04-02 17:32   ` bug#23186: closed (Re: bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match) Jerry Asher
2016-04-02 17:37     ` Jerry Asher
2016-04-02 17:50       ` Jerry Asher
2016-04-02 19:47         ` Michael Albinus
2016-04-02 20:02           ` Eli Zaretskii
2016-04-02 20:19             ` Jerry Asher
2016-04-02 20:33               ` Eli Zaretskii
2016-04-02 20:11           ` bug#23186: closed (Re: " Jerry Asher
2016-04-02 20:28             ` Eli Zaretskii
2016-04-03  7:15               ` Michael Albinus
2016-04-02 21:35             ` John Wiegley
2016-04-03 14:54           ` Eli Zaretskii
2016-04-03 15:55             ` Michael Albinus
2016-04-03 16:17               ` Eli Zaretskii
2016-04-03 16:49                 ` Michael Albinus
2016-04-03 14:51 ` bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match Eli Zaretskii

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=8337r4rme5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=23186@debbugs.gnu.org \
    --cc=ja2038@gmail.com \
    /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.