* Re: Lisp functions called on Emacs close
[not found] <pan.2002.09.01.06.52.58.332970@rivenstone.net>
@ 2002-09-01 18:40 ` Kai Großjohann
2002-09-02 21:03 ` Ehud Karni
2002-09-01 19:26 ` D. Goel
1 sibling, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2002-09-01 18:40 UTC (permalink / raw)
"Joseph Fannin" <jhf@rivenstone.net writes:
> Can anyone point me to which lisp functions are called when emacs is
> closed? Specifically, I'd like to know which functions are called when
> the window manager's close button is pressed.
Whee. Not sure. There is kill-emacs-hook and there is
kill-emacs-query-functions. I don't know whether they are executed
in that case, though.
kai
--
A large number of young women don't trust men with beards. (BFBS Radio)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Lisp functions called on Emacs close
[not found] <pan.2002.09.01.06.52.58.332970@rivenstone.net>
2002-09-01 18:40 ` Lisp functions called on Emacs close Kai Großjohann
@ 2002-09-01 19:26 ` D. Goel
1 sibling, 0 replies; 3+ messages in thread
From: D. Goel @ 2002-09-01 19:26 UTC (permalink / raw)
"Joseph Fannin" <jhf@rivenstone.net writes:
> Can anyone point me to which lisp functions are called when emacs is
> closed? Specifically, I'd like to know which functions are called when
> the window manager's close button is pressed.
Joseph
Dunno, but here are some pointers--->
* Do M-x find-function save-buffers-kill-emacs and go on from there.
* See the manual.
DG http://24.197.159.102/~deego/
--
RIAA logic applied to cars--->
http://www.bbspot.com/News/2002/08/ride_sharing.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Lisp functions called on Emacs close
2002-09-01 18:40 ` Lisp functions called on Emacs close Kai Großjohann
@ 2002-09-02 21:03 ` Ehud Karni
0 siblings, 0 replies; 3+ messages in thread
From: Ehud Karni @ 2002-09-02 21:03 UTC (permalink / raw)
Cc: help-gnu-emacs
On Sun, 01 Sep 2002 20:40:52 +0200, Kai.Grossjohann@CS.Uni-Dortmund.DE wrote:
>
> "Joseph Fannin" <jhf@rivenstone.net writes:
>
> > Can anyone point me to which lisp functions are called when emacs is
> > closed? Specifically, I'd like to know which functions are called when
> > the window manager's close button is pressed.
>
> Whee. Not sure. There is kill-emacs-hook and there is
> kill-emacs-query-functions. I don't know whether they are executed
> in that case, though.
The hook `kill-emacs-query-functions' is surely called when using any
way to kill emacs willingly (C-x C-c, M-x save-buffers-kill-emacs,
close by the window manager), but not by M-x kill-emacs.
I have this function to warn me, and it saved me several times.
(defun kill-warn ()
(interactive)
(or (boundp 'NO-kill-warn) ;; define this to disable warning
(yes-or-no-p "Stop editing and kill all buffers ?")))
(add-hook 'kill-emacs-query-functions 'kill-warn)
Ehud.
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
mailto:ehud@unix.mvs.co.il Better Safe Than Sorry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-02 21:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <pan.2002.09.01.06.52.58.332970@rivenstone.net>
2002-09-01 18:40 ` Lisp functions called on Emacs close Kai Großjohann
2002-09-02 21:03 ` Ehud Karni
2002-09-01 19:26 ` D. Goel
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).