[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs won't start interactively
From: |
Eli Zaretskii |
Subject: |
Re: emacs won't start interactively |
Date: |
Tue, 28 May 2019 21:55:15 +0300 |
> Date: Tue, 28 May 2019 17:30:11 +0000
> From: Joe Trivers via help-gnu-emacs <help-gnu-emacs@gnu.org>
>
> > I'd have a good look at the environment variables you have set. Are
> > some of them Emacs related, perhaps? Any suspicious ones? Maybe post
> > the whole list of them here, perhaps someone will spot something.
>
> Nothing looks relevant, other than PATH. Is there a way in cmd.exe (like env
> in bash) to get such a list?
At the cmd prompt, type "set" and press Enter.
> > Also, do you see anything in the Windows' Event Logger, under
> > Application, around the times when you start Emacs and it immediately
> > exits?
>
> You may have something there.
>
> Log Name: Application
> Source: CbDefense
> Information: The application "C:\gnu\emacs-26.1\bin\emacs-26.1.exe" attempted
> to inject code into the process "C:\GNU\emacs-26.1\bin\emacs-26.1.exe" by
> calling the function "SetWindowsHookExA". The operation was blocked and the
> application terminated by Confer.
That's definitely your villain.
> Incidentally, when I typed the command into the Windows command prompt I used
> capital letters for "GNU".
>
> HAH! I renamed the C:\GNU directory to C:\gnu (in lower case) and now it
> works properly. Maybe CbDefense lowercases one string but not the other?
> And, yes, the "gnu" directory name is in lower case on the laptop where emacs
> has been working since last year. [facepalm]
So it's a simple bug in CbDefense: it doesn't know that file names on
Windows are case-insensitive.