help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to close or kill *messages* window by using elisp script


From: Michael Heerdegen
Subject: Re: How to close or kill *messages* window by using elisp script
Date: Tue, 04 Jun 2019 16:56:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Budi <budikusasi@gmail.com> writes:

> running this
>
> (quit-window nil "*Messages*")
>
> yields error:
>
> window-normalize-window: *Messages* is not a live window

You can get the window with `get-buffer-window-list' (a list cause there
can be more than one of course).

[ Dunno how your workflow is, but you might also like "winner.el" which
allows to go back in window config history (`winner-undo',
`winner-redo'). ]


Regards,

Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]