|
From: | martin rudalics |
Subject: | How to close or kill *messages* window by using elisp script |
Date: | Wed, 5 Jun 2019 09:22:04 +0200 |
> How to close or kill *messages* window by using script of emacs lisp > > > running this > > (quit-window nil "*Messages*") > > yields error: > > window-normalize-window: *Messages* is not a live window The doc-string of 'quit-window' says (quit-window &optional KILL WINDOW) Quit WINDOW and bury its buffer. WINDOW must be a live window and defaults to the selected one. but *Messages* is a string most likely denoting a buffer. Try running (let ((window (get-buffer-window "*Messages*"))) (when (window-live-p window) (quit-window nil window))) instead. martin
[Prev in Thread] | Current Thread | [Next in Thread] |