From: martin rudalics <rudalics@gmx.at>
To: budikusasi@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: How to close or kill *messages* window by using elisp script
Date: Wed, 5 Jun 2019 09:22:04 +0200 [thread overview]
Message-ID: <879265d4-6ab3-e92a-abfe-46ce894e8621@gmx.at> (raw)
> 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
next reply other threads:[~2019-06-05 7:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-05 7:22 martin rudalics [this message]
2019-06-05 7:52 ` How to close or kill *messages* window by using elisp script Emanuel Berg via help-gnu-emacs
-- strict thread matches above, loose matches on Subject: below --
2019-06-04 8:08 Budi
2019-06-04 13:16 ` Budi
2019-06-04 13:23 ` Anders Dalskov
2019-06-04 14:56 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=879265d4-6ab3-e92a-abfe-46ce894e8621@gmx.at \
--to=rudalics@gmx.at \
--cc=budikusasi@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.