1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(calc-quit): Make sure that the keypad buffer exists before delete its windows.

This commit is contained in:
Jay Belanger 2008-11-04 23:52:15 +00:00
parent 650d0dbc02
commit bc6922de39
2 changed files with 6 additions and 1 deletions

View file

@ -1431,7 +1431,7 @@ commands given here will actually operate on the *Calculator* stack."
(setq calc-window-height (- (window-height win) 2)))
(progn
(delete-windows-on buf)
(delete-windows-on kbuf))
(and kbuf (delete-windows-on kbuf)))
(bury-buffer buf)
(bury-buffer calc-trail-buffer)
(and kbuf (bury-buffer kbuf))))))