all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Budi <budikusasi@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to close or kill *messages* window by using elisp script
Date: Tue, 04 Jun 2019 16:56:58 +0200	[thread overview]
Message-ID: <87lfyho0ud.fsf@web.de> (raw)
In-Reply-To: <CAH0GyZDwGUUp7Ttjz7QAaT+aykAihx8oQB-ZW25xo67i8P8PaA@mail.gmail.com> (Budi's message of "Tue, 4 Jun 2019 20:16:19 +0700")

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.



  parent reply	other threads:[~2019-06-04 14:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-04  8:08 How to close or kill *messages* window by using elisp script Budi
2019-06-04 13:16 ` Budi
2019-06-04 13:23   ` Anders Dalskov
2019-06-04 14:56   ` Michael Heerdegen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-06-05  7:22 martin rudalics
2019-06-05  7:52 ` Emanuel Berg via help-gnu-emacs

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=87lfyho0ud.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --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.