unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: help-gnu-emacs@gnu.org
Subject: Re: bs-show breaks and get confused about the minibuffer
Date: Fri, 29 Aug 2008 11:26:59 +0200	[thread overview]
Message-ID: <48B7C0E3.3090207@gmx.at> (raw)

> I'm not sure what causes it but once it breaks it makes my current emacs
> session very hard to use as I can't switch buffers. Basically once it
> starts any attempt to execute:
>
> (bs-show "all")
>
> Causes emacs to complain that I "Cannot switch buffers in minibuffer
> window" despite not being in the minibuffer. Has anyone ever come across
> this sticky minibuffer behaviour and how to get out of it?

Good catch, I suppose.  I've eliminated this stuff in my Emacs for some
time.  Basically, the function no_switch_window defined in buffer.c has

if (EQ (minibuf_window, window))
     return "Cannot switch buffers in minibuffer window";

which prints the error message.  Surprisingly no_switch_window is called
by `switch-to-buffer' as

   err = no_switch_window (selected_window);
   if (err)
     /* If can't display in current window, let pop-to-buffer
        try some other window. */
     return call3 (intern ("pop-to-buffer"), buffer, Qnil, norecord);

so Emacs should ignore this but God knows what really happens.

Please file a bug report and we will (hopefully) take care of it.

martin







             reply	other threads:[~2008-08-29  9:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-29  9:26 martin rudalics [this message]
2008-08-29 13:49 ` bs-show breaks and get confused about the minibuffer Nikolaj Schumacher
2008-08-29 14:34   ` martin rudalics
2008-08-29 16:44     ` Nikolaj Schumacher
2008-08-30  8:20       ` martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2008-08-28 15:15 Alex Bennee

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48B7C0E3.3090207@gmx.at \
    --to=rudalics@gmx.at \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).