bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-x C-c needs to say more than just "save file...?"


From: Jaume Guasch
Subject: Re: C-x C-c needs to say more than just "save file...?"
Date: 12 Jan 2001 11:43:33 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.4

address@hidden (Dan Jacobson) writes:

> 
> Often I find myself with say, a *Shell command output* buffer with
> results of say 30 minuties of tinkering with various ESC !
> commands... sure, one would say if I intended to save the command line
> I slowly refined thru repeated ESC !, I should have edited a file say,
> called script.sh, and used the convenience of M-x compile... however,
> things do not always start out that way... one starts tinkering, says
> "hey, this is signifigant, I ought to start saving this to a
> file... ok, I will, just give me one more minute here" and zap: a
> misplaced C-x C-c throws it all away.   OK, this is just an example...
> Hmmm, maybe the user, um, me, should decide eariler what he intends to
> save. OK, never mind :-)


That's why I put:

; --------------------------------------------------
;;This ask before quiting:
  (defun ask-before-quit ()
    "Ask if the user really wants to quit Emacs."
    (interactive)
    (y-or-n-p "Really quit emacs? "))

  (add-hook 'kill-emacs-query-functions 'ask-before-quit)
; --------------------------------------------------

in my .emacs

Regards,

Jaume



-- 
guasch at itp dot uni-karlsruhe dot de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]