unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Escaping from emacs is too easy :-)
  2002-08-23 15:24 Escaping from emacs is too easy :-) Kim F. Storm
@ 2002-08-23 14:34 ` nferrier
  2002-08-23 15:04 ` Glenn Morris
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: nferrier @ 2002-08-23 14:34 UTC (permalink / raw)
  Cc: emacs-devel

no-spam@cua.dk (Kim F. Storm) writes:

> WDYT?

I like the idea personally, I often (oncve a week) mistype the exit
when I mean something else. Mostly my finger slips on an unfamiliar
keyboard.

I have never installed a fix because I use emacs in lots of different
places where it's more hassle than it's worth to keep a .emacs file up
to date.


Nic

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

* Re: Escaping from emacs is too easy :-)
  2002-08-23 15:24 Escaping from emacs is too easy :-) Kim F. Storm
  2002-08-23 14:34 ` nferrier
@ 2002-08-23 15:04 ` Glenn Morris
  2002-08-25  5:27 ` Richard Stallman
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2002-08-23 15:04 UTC (permalink / raw)
  Cc: emacs-devel

Kim F. Storm wrote:

> Both C-x and C-c are used very frequently as prefix keys, and being
> located right next to each other, I found it just too easy to hit
> both by mistake.

I still do that a lot. But

(setq confirm-kill-emacs 'y-or-n-p)

works fine for me to prevent accidental emacsicide.

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

* Escaping from emacs is too easy :-)
@ 2002-08-23 15:24 Kim F. Storm
  2002-08-23 14:34 ` nferrier
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Kim F. Storm @ 2002-08-23 15:24 UTC (permalink / raw)



A long time ago, when I first started using emacs, one of the first
key bindings which I decided to change was: C-x C-c

Both C-x and C-c are used very frequently as prefix keys, and being
located right next to each other, I found it just too easy to hit
both by mistake.

Now that CUA has arrived, using C-x and C-c will become even more
frequent for some users...

I'm using C-x C-c C-x instead of C-x C-c to exit emacs:

(global-set-key "\C-x\C-c"	'nil)
(global-set-key "\C-x\C-c\C-x"	'save-buffers-kill-emacs)

I find it trivial to type that extra C-x, but contrary to the standard
binding, I've _NEVER_ entered the C-x C-c C-x sequence by mistake.


     So, I propose to change the default binding to C-x C-c C-x.
     ===========================================================


Naturally, changing a long-lived binding like that may aggrevate a lot
of old users, but my belief is that they will quickly adapt (or install
the old binding :-)


I guess we could help them on the way like this:

They enter C-x C-c   ... and they expect something to happen...

A few secs later, C-x C-c- appears in the echo area, so they'll know
they are expected to type another character.  

Of course, they wont know what to type next the first time they get
that far [unless they have read the NEWS file of course], but we could
bind C-x C-c C-h and C-x C-c ? to a message saying to use C-x C-c C-x
to exit emacs.

WDYT?

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

* Re: Escaping from emacs is too easy :-)
  2002-08-23 15:24 Escaping from emacs is too easy :-) Kim F. Storm
  2002-08-23 14:34 ` nferrier
  2002-08-23 15:04 ` Glenn Morris
@ 2002-08-25  5:27 ` Richard Stallman
  2002-08-29  3:02 ` Rafael Sepúlveda
  2002-08-31  2:52 ` Colin Walters
  4 siblings, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2002-08-25  5:27 UTC (permalink / raw)
  Cc: emacs-devel

I don't think it is necessary to change this--I don't think
most users exit Emacs by mistake.

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

* Re: Escaping from emacs is too easy :-)
  2002-08-23 15:24 Escaping from emacs is too easy :-) Kim F. Storm
                   ` (2 preceding siblings ...)
  2002-08-25  5:27 ` Richard Stallman
@ 2002-08-29  3:02 ` Rafael Sepúlveda
  2002-08-31  2:52 ` Colin Walters
  4 siblings, 0 replies; 8+ messages in thread
From: Rafael Sepúlveda @ 2002-08-29  3:02 UTC (permalink / raw)


no-spam@cua.dk (Kim F. Storm) writes:

> I find it trivial to type that extra C-x, but contrary to the standard
> binding, I've _NEVER_ entered the C-x C-c C-x sequence by mistake.

>      So, I propose to change the default binding to C-x C-c C-x.
>      ===========================================================

I also had that problem, but I solve it in another way: Before emacs21
I had a function that asked me if I was sure if I wanted to exit. Now
with emacs21 you can set:

(setq confirm-kill-emacs 'y-or-n-p)

and it will ask you if you're sure if you want to exit. I haven't
quitted emacs by accident since then.

Usually I hate this kind of things on a program, but I find it
convenient in emacs, because I almost never quit from it.

           Rafael

-- 
Dr. Rafael Sepúlveda <drs@gnulinux.org.mx>
http://www.gnulinux.org.mx/~drs

1024D/AF54DED7  4391 1BF0 6555 8D09 B23D  501F ABB5 4044 AF54 DED7

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

* Re: Escaping from emacs is too easy :-)
  2002-08-23 15:24 Escaping from emacs is too easy :-) Kim F. Storm
                   ` (3 preceding siblings ...)
  2002-08-29  3:02 ` Rafael Sepúlveda
@ 2002-08-31  2:52 ` Colin Walters
  2002-08-31  3:03   ` Miles Bader
  4 siblings, 1 reply; 8+ messages in thread
From: Colin Walters @ 2002-08-31  2:52 UTC (permalink / raw)


On Fri, 2002-08-23 at 11:24, Kim F. Storm wrote:

> (global-set-key "\C-x\C-c\C-x"	'save-buffers-kill-emacs)

I personally use:

(global-set-key (kbd "C-M-A-H-S-s-e") 'save-buffers-kill-emacs)

I haven't exited Emacs accidentally since.

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

* Re: Escaping from emacs is too easy :-)
  2002-08-31  2:52 ` Colin Walters
@ 2002-08-31  3:03   ` Miles Bader
  2002-08-31  6:06     ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Miles Bader @ 2002-08-31  3:03 UTC (permalink / raw)
  Cc: emacs-devel

On Fri, Aug 30, 2002 at 10:52:53PM -0400, Colin Walters wrote:
> I personally use:
> 
> (global-set-key (kbd "C-M-A-H-S-s-e") 'save-buffers-kill-emacs)
> 
> I haven't exited Emacs accidentally since.

I guess the question is:  Is it _possible_ to exit emacs using that binding?

-Miles
-- 
P.S.  All information contained in the above letter is false,
      for reasons of military security.

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

* Re: Escaping from emacs is too easy :-)
  2002-08-31  3:03   ` Miles Bader
@ 2002-08-31  6:06     ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2002-08-31  6:06 UTC (permalink / raw)
  Cc: emacs-devel

> From: Miles Bader <miles@gnu.org>
> Date: Fri, 30 Aug 2002 23:03:29 -0400
> 
> On Fri, Aug 30, 2002 at 10:52:53PM -0400, Colin Walters wrote:
> > I personally use:
> > 
> > (global-set-key (kbd "C-M-A-H-S-s-e") 'save-buffers-kill-emacs)
> > 
> > I haven't exited Emacs accidentally since.
> 
> I guess the question is:  Is it _possible_ to exit emacs using that binding?

Well, there's always the "Files->Exit Emacs" menu item ;-)

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

end of thread, other threads:[~2002-08-31  6:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-23 15:24 Escaping from emacs is too easy :-) Kim F. Storm
2002-08-23 14:34 ` nferrier
2002-08-23 15:04 ` Glenn Morris
2002-08-25  5:27 ` Richard Stallman
2002-08-29  3:02 ` Rafael Sepúlveda
2002-08-31  2:52 ` Colin Walters
2002-08-31  3:03   ` Miles Bader
2002-08-31  6:06     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

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).