unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <10122@debbugs.gnu.org>
Subject: bug#10122: 24.0.91; C-x C-v, invisible text: "Cannot switch...dedicated window"
Date: Wed, 23 Nov 2011 16:26:06 -0800	[thread overview]
Message-ID: <80C5FC7816CD4D5FBA10504B9B54857C@us.oracle.com> (raw)
In-Reply-To: <AF2FB2B686B1495CBC0BB44811BA673D@us.oracle.com>

Some more info, which should help:

I typed this into the file buffer:
(put-text-property (region-beginning) (region-end) 'invisible t)

I selected that sexp, leaving point just after it, then hit `C-x C-e'.

Then I used `C-x C-v' and got the same problem as before.

Before, I had evaled the sexp using `M-:', which I bind to a command that uses
`pp-eval-expression'.  It apparently does not matter how I eval it, as long as
the evaluation produces a buffer *Pp Eval Output* (which is dedicated, because
of my value of `special-display-regexps').

Even if I move point around a bit in the buffer, to be sure that it (and not,
say, buffer *Pp Eval Output*) is the current buffer, the problem arises.

However, if, after making the region invisible, I kill buffer *Pp Eval Output*
(doesn't matter whether using Buffer Menu or `C-x b'), and I then hit `C-x C-v',
there is no problem.

It seems that it is the mere presence of the *Pp...* buffer that causes the
problem.  Note that *Pp...* was never displayed by evaluating the sexp, since
the value (`nil') was so simple (no need to show it in a separate buffer).  But
the buffer remained in existence, even though it was not displayed.

My guess is that somehow Emacs is thinking that that (dedicated) buffer is the
one being replaced - even though it is definitely not the `current-buffer'.

Sounds like more fallout from the display-buffer makeover?






  reply	other threads:[~2011-11-24  0:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 23:33 bug#10122: 24.0.91; C-x C-v, invisible text: "Cannot switch...dedicated window" Drew Adams
2011-11-24  0:26 ` Drew Adams [this message]
2011-11-24  0:52   ` Drew Adams
2012-09-17  0:23     ` Drew Adams
2016-04-28 11:43     ` Lars Ingebrigtsen
2016-04-28 14:06       ` Drew Adams
2022-01-31 16:38 ` Lars Ingebrigtsen
2022-01-31 16:50   ` bug#10122: [External] : " Drew Adams

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=80C5FC7816CD4D5FBA10504B9B54857C@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=10122@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).