GNU bug report logs - #10122
24.0.91; C-x C-v, invisible text: "Cannot switch...dedicated window"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Drew Adams" <drew.adams@HIDDEN>; Keywords: moreinfo; dated Wed, 23 Nov 2011 23:36:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 10122 <at> debbugs.gnu.org:


Received: (at 10122) by debbugs.gnu.org; 28 Apr 2016 11:43:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 28 07:43:42 2016
Received: from localhost ([127.0.0.1]:51366 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1avkMA-0001P0-HT
	for submit <at> debbugs.gnu.org; Thu, 28 Apr 2016 07:43:42 -0400
Received: from hermes.netfonds.no ([80.91.224.195]:36386)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1avkM8-0001Oq-0F
 for 10122 <at> debbugs.gnu.org; Thu, 28 Apr 2016 07:43:40 -0400
Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse)
 by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <larsi@HIDDEN>)
 id 1avkM2-00029o-1s; Thu, 28 Apr 2016 13:43:38 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: "Drew Adams" <drew.adams@HIDDEN>
Subject: Re: bug#10122: 24.0.91;
 C-x C-v, invisible text: "Cannot switch...dedicated window"
References: <AF2FB2B686B1495CBC0BB44811BA673D@HIDDEN>
 <80C5FC7816CD4D5FBA10504B9B54857C@HIDDEN>
 <9562EC07958F4E5C86AD78D20A416794@HIDDEN>
Date: Thu, 28 Apr 2016 13:43:33 +0200
In-Reply-To: <9562EC07958F4E5C86AD78D20A416794@HIDDEN> (Drew Adams's
 message of "Wed, 23 Nov 2011 16:52:07 -0800")
Message-ID: <877ffinel6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: "Drew Adams" <drew.adams@HIDDEN> writes: > Playing around
 a little more, I see that when you use `C-x C-v', even when there > is no
 problem, it temporarily switches to another existing buffer in the same >
 window. That would seem to be the cause of the problem: If that buffer
 switched
 > to is, like *Pp Eval Output* in my case, dedicated, then suddently it throws
 a > monkey wrench in the system. > > The dedicated nature of that temporarily
 substituted buffer should presumably > not enter into the picture at all
 (if we in fact need to temporarily substitute > some other buffer in that
 window). [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
 trust [80.91.224.195 listed in list.dnswl.org]
 1.3 GAPPY_SUBJECT          Subject: contains G.a.p.p.y-T.e.x.t
X-Debbugs-Envelope-To: 10122
Cc: 10122 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  "Drew Adams" <drew.adams@HIDDEN> writes: > Playing around
    a little more, I see that when you use `C-x C-v', even when there > is no
    problem, it temporarily switches to another existing buffer in the same >
    window. That would seem to be the cause of the problem: If that buffer switched
    > to is, like *Pp Eval Output* in my case, dedicated, then suddently it throws
    a > monkey wrench in the system. > > The dedicated nature of that temporarily
    substituted buffer should presumably > not enter into the picture at all
   (if we in fact need to temporarily substitute > some other buffer in that
   window). [...] 
 
 Content analysis details:   (1.3 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
                             trust
                             [80.91.224.195 listed in list.dnswl.org]
  1.3 GAPPY_SUBJECT          Subject: contains G.a.p.p.y-T.e.x.t

"Drew Adams" <drew.adams@HIDDEN> writes:

> Playing around a little more, I see that when you use `C-x C-v', even when there
> is no problem, it temporarily switches to another existing buffer in the same
> window.  That would seem to be the cause of the problem: If that buffer switched
> to is, like *Pp Eval Output* in my case, dedicated, then suddently it throws a
> monkey wrench in the system.  
>
> The dedicated nature of that temporarily substituted buffer should presumably
> not enter into the picture at all (if we in fact need to temporarily substitute
> some other buffer in that window).

There is no clear recipe, starting from -Q, to reproduce this problem.
Are you still seeing it?  If so, can you create a recipe?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10122; Package emacs. Full text available.

Message received at 10122 <at> debbugs.gnu.org:


Received: (at 10122) by debbugs.gnu.org; 17 Sep 2012 00:24:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 16 20:24:27 2012
Received: from localhost ([127.0.0.1]:37935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TDP8U-0006nj-MJ
	for submit <at> debbugs.gnu.org; Sun, 16 Sep 2012 20:24:27 -0400
Received: from acsinet15.oracle.com ([141.146.126.227]:20400)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1TDP8T-0006nd-Px
	for 10122 <at> debbugs.gnu.org; Sun, 16 Sep 2012 20:24:26 -0400
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
	by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with
	ESMTP id q8H0NC0e008706
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <10122 <at> debbugs.gnu.org>; Mon, 17 Sep 2012 00:23:13 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156])
	by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	q8H0NCER013356
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <10122 <at> debbugs.gnu.org>; Mon, 17 Sep 2012 00:23:12 GMT
Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72])
	by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	q8H0NCrx018614
	for <10122 <at> debbugs.gnu.org>; Sun, 16 Sep 2012 19:23:12 -0500
Received: from dradamslap1 (/10.159.170.142)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Sun, 16 Sep 2012 17:23:11 -0700
From: "Drew Adams" <drew.adams@HIDDEN>
To: <10122 <at> debbugs.gnu.org>
References: <AF2FB2B686B1495CBC0BB44811BA673D@HIDDEN><80C5FC7816CD4D5FBA10504B9B54857C@HIDDEN>
	<9562EC07958F4E5C86AD78D20A416794@HIDDEN>
Subject: RE: bug#10122: 24.0.91;
	C-x C-v, invisible text: "Cannot switch...dedicated window"
Date: Sun, 16 Sep 2012 17:23:01 -0700
Message-ID: <038F9D2B7A984C5B9AF21468E7BECAB7@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <9562EC07958F4E5C86AD78D20A416794@HIDDEN>
Thread-Index: AcyqOEzzrZrBo0tbQJG4yK8VDu5EGwAA5+2wAAHCegA6iedisA==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
X-Spam-Score: -5.5 (-----)
X-Debbugs-Envelope-To: 10122
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.5 (-----)

ping





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10122; Package emacs. Full text available.

Message received at 10122 <at> debbugs.gnu.org:


Received: (at 10122) by debbugs.gnu.org; 24 Nov 2011 00:53:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 19:53:44 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RTNZP-0004Ll-Rc
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2011 19:53:44 -0500
Received: from rcsinet15.oracle.com ([148.87.113.117])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1RTNZO-0004Le-0F
	for 10122 <at> debbugs.gnu.org; Wed, 23 Nov 2011 19:53:42 -0500
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pAO0qCTM012953
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <10122 <at> debbugs.gnu.org>; Thu, 24 Nov 2011 00:52:12 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	pAO0qBqp026622
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <10122 <at> debbugs.gnu.org>; Thu, 24 Nov 2011 00:52:11 GMT
Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63])
	by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pAO0q5ex011993
	for <10122 <at> debbugs.gnu.org>; Wed, 23 Nov 2011 18:52:05 -0600
Received: from dradamslap1 (/10.159.44.3)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Wed, 23 Nov 2011 16:52:05 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: <10122 <at> debbugs.gnu.org>
References: <AF2FB2B686B1495CBC0BB44811BA673D@HIDDEN>
	<80C5FC7816CD4D5FBA10504B9B54857C@HIDDEN>
Subject: RE: bug#10122: 24.0.91;
	C-x C-v, invisible text: "Cannot switch...dedicated window"
Date: Wed, 23 Nov 2011 16:52:07 -0800
Message-ID: <9562EC07958F4E5C86AD78D20A416794@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <80C5FC7816CD4D5FBA10504B9B54857C@HIDDEN>
Thread-Index: AcyqOEzzrZrBo0tbQJG4yK8VDu5EGwAA5+2wAAHCegA=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-CT-RefId: str=0001.0A090203.4ECD953D.000C,ss=1,re=0.594,fgs=0
X-Spam-Score: -5.7 (-----)
X-Debbugs-Envelope-To: 10122
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.7 (-----)

Playing around a little more, I see that when you use `C-x C-v', even when there
is no problem, it temporarily switches to another existing buffer in the same
window.  That would seem to be the cause of the problem: If that buffer switched
to is, like *Pp Eval Output* in my case, dedicated, then suddently it throws a
monkey wrench in the system.  

The dedicated nature of that temporarily substituted buffer should presumably
not enter into the picture at all (if we in fact need to temporarily substitute
some other buffer in that window).





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10122; Package emacs. Full text available.

Message received at 10122 <at> debbugs.gnu.org:


Received: (at 10122) by debbugs.gnu.org; 24 Nov 2011 00:27:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 19:27:42 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RTNAE-0003jA-M2
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2011 19:27:42 -0500
Received: from rcsinet15.oracle.com ([148.87.113.117])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1RTNAC-0003j2-FB
	for 10122 <at> debbugs.gnu.org; Wed, 23 Nov 2011 19:27:41 -0500
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pAO0QAbG023259
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <10122 <at> debbugs.gnu.org>; Thu, 24 Nov 2011 00:26:11 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156])
	by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	pAO0Q9Ox028523
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <10122 <at> debbugs.gnu.org>; Thu, 24 Nov 2011 00:26:10 GMT
Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54])
	by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pAO0Q4vb032195
	for <10122 <at> debbugs.gnu.org>; Wed, 23 Nov 2011 18:26:04 -0600
Received: from dradamslap1 (/10.159.44.3)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Wed, 23 Nov 2011 16:26:04 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: <10122 <at> debbugs.gnu.org>
References: <AF2FB2B686B1495CBC0BB44811BA673D@HIDDEN>
Subject: RE: bug#10122: 24.0.91;
	C-x C-v, invisible text: "Cannot switch...dedicated window"
Date: Wed, 23 Nov 2011 16:26:06 -0800
Message-ID: <80C5FC7816CD4D5FBA10504B9B54857C@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <AF2FB2B686B1495CBC0BB44811BA673D@HIDDEN>
Thread-Index: AcyqOEzzrZrBo0tbQJG4yK8VDu5EGwAA5+2w
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
X-CT-RefId: str=0001.0A090207.4ECD8F23.0047,ss=1,re=0.594,fgs=0
X-Spam-Score: -5.7 (-----)
X-Debbugs-Envelope-To: 10122
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.7 (-----)

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?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10122; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Nov 2011 23:35:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 18:35:20 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RTMLY-0002TB-Ac
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2011 18:35:20 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1RTMLW-0002T4-0N
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2011 18:35:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RTMK2-00064V-4M
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2011 18:33:49 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,GAPPY_SUBJECT,
	RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD,
	UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:36179)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RTMK2-00064R-2r
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2011 18:33:46 -0500
Received: from eggs.gnu.org ([140.186.70.92]:44008)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RTMJw-0007wt-2k
	for bug-gnu-emacs@HIDDEN; Wed, 23 Nov 2011 18:33:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RTMJq-0005wl-5y
	for bug-gnu-emacs@HIDDEN; Wed, 23 Nov 2011 18:33:40 -0500
Received: from rcsinet15.oracle.com ([148.87.113.117]:53385)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RTMJq-0005wf-0m
	for bug-gnu-emacs@HIDDEN; Wed, 23 Nov 2011 18:33:34 -0500
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pANNXW8B011213
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <bug-gnu-emacs@HIDDEN>; Wed, 23 Nov 2011 23:33:32 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	pANNXVdc012302
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <bug-gnu-emacs@HIDDEN>; Wed, 23 Nov 2011 23:33:31 GMT
Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62])
	by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pANNXQsP000974
	for <bug-gnu-emacs@HIDDEN>; Wed, 23 Nov 2011 17:33:26 -0600
Received: from dradamslap1 (/10.159.44.3)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Wed, 23 Nov 2011 15:33:25 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 24.0.91; C-x C-v, invisible text: "Cannot switch...dedicated window"
Date: Wed, 23 Nov 2011 15:33:27 -0800
Message-ID: <AF2FB2B686B1495CBC0BB44811BA673D@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
Thread-Index: AcyqOEzzrZrBo0tbQJG4yK8VDu5EGw==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-CT-RefId: str=0001.0A090209.4ECD82CD.000A,ss=1,re=0.594,fgs=0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.7 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.7 (-----)

This is with my setup.  I don't have a recipe from emacs -Q.
Among other things, buffers that have names `*...*' are special-display,
and I have non-nil `pop-up-frames'.
 
In a small elisp file buffer, I make a couple of contiguous
definitions invisible, using (put-text-property (region-beginning)
(region-end) 'invisible t).
 
Then I do `C-x C-v' and accept the default, which is the same file.
I enter `no' to the question about saving modified buffer, and
`yes' to the question about killing and replacing without saving.
 
Buffer *Pp Eval Ouput* pops up (in a separate frame), with value `nil'
displayed.  Just after it pops up, buffer *Backtrace* pops up, with this:
 
Debugger entered--Lisp error: (error "Buffer name `throw-test.el' is in use")
  rename-buffer("throw-test.el")
  byte-code("..." [obuf ofile buffer-file-name onum buffer-file-number
                   otrue lock-buffer rename-buffer buffer-file-truename
                   odir dired-directory oname] 2)
  signal(error ("Cannot switch buffers in a dedicated window"))
  error("Cannot switch buffers in a dedicated window")
  old-switch-to-buffer(#<buffer throw-test.el> nil force-same-window)
  switch-to-buffer(#<buffer throw-test.el> nil force-same-window)
  find-file("c:/drews-lisp-20/throw-test.el" t)
  find-alternate-file("c:/drews-lisp-20/throw-test.el" t)
  call-interactively(find-alternate-file nil nil)

Also, buffer `**lose**' has taken the place of the original elisp file
buffer in the same (undedicated) window.  The content of buffer `**lose**'
is the elisp buffer content, with the hidden sexps still invisible.

The original lisp buffer still exists, but is not displayed.
If I display it I see the whole buffer - nothing is invisible.

It seems like maybe:
(a) something causes an evaluation, which shows *Pp Eval Output*
    (even for the small value `nil' - no idea why)
(b) perhaps *Pp Eval Output* becomes the current buffer (?)
(c) since it is in a dedicated window, Emacs barfs, saying it is
    unable to show the orginal file in that same window.
 
I do not see the same problem if there is no invisible text.  Buffer
*Messages* shows nothing particular.  I have no idea what evaluation
led to *Pp Eval Output* being shown, nor why it would be shown for as
simple a value as nil.
 
Note that the elisp file buffer was NEVER shown in a dedicated window.
There were NO dedicated windows when I used `C-x C-v'.  The first
dedicated window shown was *Pp Eval Output*, and the second was
*Backtrace*.  There were no other dedicated windows.

This is the (re)definition of `switch-to-buffer' that I use:

(defun switch-to-buffer (buffer-or-name &optional norecord force-same-window)
    "..."
    (interactive
     (list (read-buffer-to-switch "Switch to buffer: ")
           nil 'force-same-window))
    (let ((orig-buf    (current-buffer))
          (switch-buf  (old-switch-to-buffer
                        buffer-or-name norecord force-same-window)))
      (when (and (one-window-p t)
                 (not (eq switch-buf orig-buf)) ; Don't resize if same buffer.
                 autofit-frames-flag
                 (fit-frame)))
      switch-buf))

where `old-switch-to-buffer' was defined this way:
(fset 'old-switch-to-buffer (symbol-function 'switch-to-buffer))

This is 100% reproducible, but as I say, this is with my setup.
Perhaps you have enough info to figure the problem out?

In GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-21 on MARVIN
 Windowing system distributor `Microsoft Corp.', version 5.1.2600
 configured using `configure --with-gcc (4.6) --no-opt --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-2.10.1/include --ldflags
 -LD:/devel/emacs/libs/gnutls-2.10.1/lib'
 





Acknowledgement sent to "Drew Adams" <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10122; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 28 Apr 2016 11:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.