Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Newbie, Emacs won't quit

96 views
Skip to first unread message

Greg K

unread,
Sep 1, 2002, 3:21:08 PM9/1/02
to
Hi,

I just downloaded Cygwin last week and I've been poking around on
the editors using a Linux programming book. I invoked Emacs, and every
command on it seems to work with the exception of the "quit" command (C-x
C-c). Even the Emacs help says to use this but it still does not work. The
only way I seem to be able to quit from it is to access the menu bar by
pressing F10, then Enter, then pressing "e". Has anyone ever seen this? Is
this a bug specific to Emacs in Cygwin?

Thanks,

Greg


A. L. Meyers

unread,
Sep 1, 2002, 3:30:42 PM9/1/02
to
Sounds wierd, but have never used cygwin. Another way to leave Emacs
at least on my setups is F10 f e usually followed by a confirmation
"yes", then Ret .

Lucien
--
If you receive this by error, please delete it and inform the sender.
PGP Key fingerprint=F1C0 D9AE 1B18 1405 4DFA B4CC 6DC7 FF78 C76E FB15
To Big Brother Echelon from "spook":
Marxist South Africa $400 million in gold bullion KGB NSA fissionable

Greg K

unread,
Sep 1, 2002, 4:21:59 PM9/1/02
to

It IS weird, and I've just now discovered by accident that C-z (Ctrl-z) will
cause it to exit. That solves that I guess. :)

Thanks again,

Greg


"A. L. Meyers" <nospa...@replyto.because.this.is.invalid> wrote in
message news:87wuq57...@nomad.consult-meyers.com...

Kai Großjohann

unread,
Sep 1, 2002, 4:18:55 PM9/1/02
to
"Greg K" <qxrs...@yahoo.com> writes:

> It IS weird, and I've just now discovered by accident that C-z (Ctrl-z) will
> cause it to exit. That solves that I guess. :)

No, I think that C-z will only suspend Emacs. You can use the "fg"
command (on a Unix system) to get back to it.

What does C-h k C-x C-c say? What does C-h k C-z say?

kai
--
A large number of young women don't trust men with beards. (BFBS Radio)

Greg K

unread,
Sep 1, 2002, 4:42:33 PM9/1/02
to
You're right. That suspends it.

Those other key sequences don't seem to say anything. C-x C-c itself
results in absolutely nothing. Emacs still sits there with a blinking
cursor.


"Kai Großjohann" <Kai.Gro...@CS.Uni-Dortmund.DE> wrote in message
news:vafd6rx...@crybaby.cs.uni-dortmund.de...

Jochen Küpper

unread,
Sep 1, 2002, 5:01:31 PM9/1/02
to
On Sun, 01 Sep 2002 19:21:08 GMT Greg K wrote:

Greg> I just downloaded Cygwin last week and I've been poking around
Greg> on the editors using a Linux programming book. I invoked Emacs,
Greg> and every command on it seems to work with the exception of the
Greg> "quit" command (C-x C-c). Even the Emacs help says to use this
Greg> but it still does not work. The only way I seem to be able to
Greg> quit from it is to access the menu bar by pressing F10, then
Greg> Enter, then pressing "e". Has anyone ever seen this? Is this a
Greg> bug specific to Emacs in Cygwin?

Works for me. Emacs-21.2 on Cygwin.

I compiled it myself 'cause I wanted Motif scrollbars, but since I
used the cygwin-sources that *shouldn't* affect it.

Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: 44BCCD8E
Sex, drugs and rock-n-roll

Greg K

unread,
Sep 1, 2002, 5:17:27 PM9/1/02
to
That's the version I have also, but yet, it's still the only key sequence
that I know of so far that does not work. I installed it straight from the
net though. If you compiled yours and it works I guess maybe it DOES affect
it. Either that or I just have some very strange bug.


"Jochen Küpper" <joc...@unc.edu> wrote in message
news:lylm6lc...@bock.chem.unc.edu...

Kai Großjohann

unread,
Sep 2, 2002, 10:34:39 AM9/2/02
to
"Greg K" <qxrs...@yahoo.com> writes:

> Those other key sequences don't seem to say anything. C-x C-c itself
> results in absolutely nothing. Emacs still sits there with a blinking
> cursor.

Hm? If you type, say C-h k C-f, do you then get the documentation
for the C-f key?

Do you get a similar documentation after C-h k C-x C-c?

Is your window manager eating C-x or C-c, perhaps?

You could type aaa, then C-x C-c, then bbb, then C-h l. Then between
the a's and the b's you should be able to see what Emacs saw when you
typed C-x C-c.

Bill Wishon

unread,
Sep 4, 2002, 7:53:44 PM9/4/02
to
> Hm? If you type, say C-h k C-f, do you then get the documentation
> for the C-f key?

I'm having the same trouble quiting emacs. I can't do C-h k anything
because when I do Alt-X describe-key C-h emacs recognizes it at DEL
and gives me the docs for the DEL key.

> Do you get a similar documentation after C-h k C-x C-c?

Alt-X describe-key C-x C-c results in emacs displaying "C-x C-g is
undefined" in the minibuffer. So when I type C-c emacs is seeing a
C-g.

> Is your window manager eating C-x or C-c, perhaps?

I'm running this from the cygwin shell without X.

> You could type aaa, then C-x C-c, then bbb, then C-h l. Then between
> the a's and the b's you should be able to see what Emacs saw when you
> typed C-x C-c.

emacs is seeing my C-x C-c sequence as C-x C-g which results in
nothing since the C-g (keyboard quit) cancels the C-x.

Anyone know how to fiddle with how the keys are interpreted by the
shell for cygwin?

BTW I have the same problem using C-x C-c in jed so I believe the
proper solution should lie in some sort of shell / terminal
configuration, not in .emacs

Thanks,
~>Bill

Sacha Chua

unread,
Sep 4, 2002, 9:39:02 PM9/4/02
to
bill-g...@wishon.org (Bill Wishon) writes:

> > Hm? If you type, say C-h k C-f, do you then get the documentation
> > for the C-f key?
> I'm having the same trouble quiting emacs. I can't do C-h k anything
> because when I do Alt-X describe-key C-h emacs recognizes it at DEL
> and gives me the docs for the DEL key.

You can use F1-k instead of C-h k - in general, F1 can be used as the help-command
if your terminal absolutely won't distinguish between C-h and DEL.

> > Do you get a similar documentation after C-h k C-x C-c?
> Alt-X describe-key C-x C-c results in emacs displaying "C-x C-g is
> undefined" in the minibuffer. So when I type C-c emacs is seeing a

That's really weird. Do you happen to have some sort of keymapping going on - .inputrc,
bindkeys, wha?

--
Sacha Chua <sa...@free.net.ph> - 4 BS CS Ateneo geekette
interests: emacs, gnu/linux, wearables, teaching compsci


Bill Wishon

unread,
Sep 6, 2002, 12:13:52 AM9/6/02
to
> You can use F1-k instead of C-h k - in general, F1 can be used as the help-command
> if your terminal absolutely won't distinguish between C-h and DEL.

Okay workaround, but I usually like to remap all my F-Keys for other
purposes in my .emacs ( F1 for me is habitually ingrained to do the
same thing as "C-x 1")

> That's really weird. Do you happen to have some sort of keymapping going on - .inputrc,
> bindkeys, wha?

Nope, I did have a very small .inputrc, but I removed it and get the
same behaviour.

I'm not familiar enough yet with /etc/termcap, but I'm thinking it
might be somewhere in there near the cygwin terminal type. When I get
the chance I'll do some man'ing / digging around that and see what I
find.

~>Bill

Bill Wishon

unread,
Sep 18, 2002, 4:13:17 PM9/18/02
to
I figured it out by accident. In trying to get sshd working under
cygwin (which I haven't done yet) I set the environment variable

CYGWIN=binmode ntsec tty

This fixes this problem for me, and I believe it is the tty portion of
that environment variable that is the key one to changing the
behaviour.

~>Bill

bill-g...@wishon.org (Bill Wishon) wrote in message news:<42d681a7.0209...@posting.google.com>...

David Combs

unread,
Sep 30, 2002, 8:15:12 PM9/30/02
to
Have you tried M-x save-buffers-exit-emacs?

David

YL

unread,
Jan 24, 2005, 10:13:22 AM1/24/05
to

Bill Wishon wrote:
> I figured it out by accident. In trying to get sshd working under
> cygwin (which I haven't done yet) I set the environment variable
>
> CYGWIN=binmode ntsec tty
>
> This fixes this problem for me, and I believe it is the tty portion
of
> that environment variable that is the key one to changing the
> behaviour.
>
> ~>Bill

It worked for me. Thanks. But after exit emacs and back to cygwin
shell,
any command typed won't shown (they still work though). Also, I don't
know where and how to put 'CYGWIN=binmode ntsec tty' so that emacs can
work correctly without set this environment everytime.

Thanks

Matthew Huggett

unread,
Jan 24, 2005, 11:03:47 AM1/24/05
to help-gn...@gnu.org
From: "YL" <elim...@gmail.com>


It goes in your cygwin.bat file in the root of your cygwin
installation.

It should look something like:

@echo off
set CYGWIN=binmode tty ntsec
C:
chdir \cygwin\bin

bash --login -i


Reference: http://ist.uwaterloo.ca/~kscully/SSH/CygwinSSHD_W2K3.html

Matt

0 new messages