unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Newbie, Emacs won't quit
@ 2002-09-01 19:21 Greg K
  2002-09-01 19:30 ` A. L. Meyers
  2002-09-01 21:01 ` Jochen Küpper
  0 siblings, 2 replies; 15+ messages in thread
From: Greg K @ 2002-09-01 19:21 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-01 19:21 Newbie, Emacs won't quit Greg K
@ 2002-09-01 19:30 ` A. L. Meyers
  2002-09-01 20:21   ` Greg K
  2002-10-01  0:15   ` David Combs
  2002-09-01 21:01 ` Jochen Küpper
  1 sibling, 2 replies; 15+ messages in thread
From: A. L. Meyers @ 2002-09-01 19:30 UTC (permalink / raw)


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 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-01 20:21   ` Greg K
@ 2002-09-01 20:18     ` Kai Großjohann
  2002-09-01 20:42       ` Greg K
  0 siblings, 1 reply; 15+ messages in thread
From: Kai Großjohann @ 2002-09-01 20:18 UTC (permalink / raw)


"Greg K" <qxrskjmz@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)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-01 19:30 ` A. L. Meyers
@ 2002-09-01 20:21   ` Greg K
  2002-09-01 20:18     ` Kai Großjohann
  2002-10-01  0:15   ` David Combs
  1 sibling, 1 reply; 15+ messages in thread
From: Greg K @ 2002-09-01 20:21 UTC (permalink / raw)




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" <nospam.look@replyto.because.this.is.invalid> wrote in
message news:87wuq57bj1.fsf@nomad.consult-meyers.com...
> 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
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-01 20:18     ` Kai Großjohann
@ 2002-09-01 20:42       ` Greg K
  2002-09-02 14:34         ` Kai Großjohann
  0 siblings, 1 reply; 15+ messages in thread
From: Greg K @ 2002-09-01 20:42 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

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.Grossjohann@CS.Uni-Dortmund.DE> wrote in message
news:vafd6rxxy34.fsf@crybaby.cs.uni-dortmund.de...
> "Greg K" <qxrskjmz@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)
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-01 19:21 Newbie, Emacs won't quit Greg K
  2002-09-01 19:30 ` A. L. Meyers
@ 2002-09-01 21:01 ` Jochen Küpper
  2002-09-01 21:17   ` Greg K
  1 sibling, 1 reply; 15+ messages in thread
From: Jochen Küpper @ 2002-09-01 21:01 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-01 21:01 ` Jochen Küpper
@ 2002-09-01 21:17   ` Greg K
  0 siblings, 0 replies; 15+ messages in thread
From: Greg K @ 2002-09-01 21:17 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]

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" <jochen@unc.edu> wrote in message
news:lylm6lctlg.fsf@bock.chem.unc.edu...
> 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
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-01 20:42       ` Greg K
@ 2002-09-02 14:34         ` Kai Großjohann
  2002-09-04 23:53           ` Bill Wishon
  0 siblings, 1 reply; 15+ messages in thread
From: Kai Großjohann @ 2002-09-02 14:34 UTC (permalink / raw)


"Greg K" <qxrskjmz@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.

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-02 14:34         ` Kai Großjohann
@ 2002-09-04 23:53           ` Bill Wishon
  2002-09-05  1:39             ` Sacha Chua
       [not found]             ` <mailman.1031190246.25006.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 15+ messages in thread
From: Bill Wishon @ 2002-09-04 23:53 UTC (permalink / raw)


> 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-04 23:53           ` Bill Wishon
@ 2002-09-05  1:39             ` Sacha Chua
       [not found]             ` <mailman.1031190246.25006.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 15+ messages in thread
From: Sacha Chua @ 2002-09-05  1:39 UTC (permalink / raw)


bill-ggroups@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 <sacha@free.net.ph> - 4 BS CS Ateneo geekette
interests: emacs, gnu/linux, wearables, teaching compsci

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
       [not found]             ` <mailman.1031190246.25006.help-gnu-emacs@gnu.org>
@ 2002-09-06  4:13               ` Bill Wishon
  2002-09-18 20:13                 ` Bill Wishon
  0 siblings, 1 reply; 15+ messages in thread
From: Bill Wishon @ 2002-09-06  4:13 UTC (permalink / raw)


> 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-06  4:13               ` Bill Wishon
@ 2002-09-18 20:13                 ` Bill Wishon
  2005-01-24 15:13                   ` YL
  0 siblings, 1 reply; 15+ messages in thread
From: Bill Wishon @ 2002-09-18 20:13 UTC (permalink / raw)


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-ggroups@wishon.org (Bill Wishon) wrote in message news:<42d681a7.0209052013.fe22bd0@posting.google.com>...
> > 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-01 19:30 ` A. L. Meyers
  2002-09-01 20:21   ` Greg K
@ 2002-10-01  0:15   ` David Combs
  1 sibling, 0 replies; 15+ messages in thread
From: David Combs @ 2002-10-01  0:15 UTC (permalink / raw)


Have you tried M-x save-buffers-exit-emacs?

David

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2002-09-18 20:13                 ` Bill Wishon
@ 2005-01-24 15:13                   ` YL
  2005-01-24 16:03                     ` Matthew Huggett
  0 siblings, 1 reply; 15+ messages in thread
From: YL @ 2005-01-24 15:13 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Newbie, Emacs won't quit
  2005-01-24 15:13                   ` YL
@ 2005-01-24 16:03                     ` Matthew Huggett
  0 siblings, 0 replies; 15+ messages in thread
From: Matthew Huggett @ 2005-01-24 16:03 UTC (permalink / raw)


   From: "YL" <elim.qiu@gmail.com>
   
>   > 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.


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-01-24 16:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-01 19:21 Newbie, Emacs won't quit Greg K
2002-09-01 19:30 ` A. L. Meyers
2002-09-01 20:21   ` Greg K
2002-09-01 20:18     ` Kai Großjohann
2002-09-01 20:42       ` Greg K
2002-09-02 14:34         ` Kai Großjohann
2002-09-04 23:53           ` Bill Wishon
2002-09-05  1:39             ` Sacha Chua
     [not found]             ` <mailman.1031190246.25006.help-gnu-emacs@gnu.org>
2002-09-06  4:13               ` Bill Wishon
2002-09-18 20:13                 ` Bill Wishon
2005-01-24 15:13                   ` YL
2005-01-24 16:03                     ` Matthew Huggett
2002-10-01  0:15   ` David Combs
2002-09-01 21:01 ` Jochen Küpper
2002-09-01 21:17   ` Greg K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).