jackr@dblues.wpd.sgi.com (John "Jack" Repenning) (04/26/91)
I'm getting very weird results from redefining keys in a recursive edit. I defined a hook for view-mode (in view.el) like this: (defun view-hook () (local-set-key "\C-x\C-c" 'exit-recursive-edit)) (setq view-hook 'view-hook) I have \C-x\C-c bound to my normal "I'm done with this buffer" function (save-buffer-kill-buffer, which I wrote, but which does what the name says). So, my fingers are irretrievably wired to that keysequence to get ridda this buffer. View-mode enters a recursive edit on the viewed file, and finishes up when you exit that recursive edit, so I want to make this keysequence exit view mode, when looking at a view-mode buffer. And it works just fine, too. Except that it also rebinds the key sequence in every other window in Emacs!!! I don't understand! Help??? Jack Repenning 9U-530 jackr@wpd.sgi.com Silicon Graphics, Inc. Off:(415) 335-7477 Systems Software Technology Center Fax:(415) 969-2314