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

emacs mystery



After upgrade to squeeze, I have the following emacs curiosity.

I bind C-xC-c to:

(defun ctrlxctrlc () "Careful exit from emacs"
  (interactive)
  (if (y-or-n-p "Do you really want to exit emacs? ")
       (save-buffers-kill-emacs)
    (message "")
    ))

to avoid accidentally closing emacs.

Under squeeze, for all three versions of emacs (21, 22,23) if I do
C-xC-c and then respond y to the prompt, emacs closes and a y is sent
to the xterm that launched emacs!

Any ideas?


Reply to: