From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jason S. Cornez" Newsgroups: gmane.emacs.bugs Subject: bug#6585: 23.1; Hang / CPU 100% on background interaction when in minibuffer Date: Thu, 15 Jul 2010 14:05:14 +0200 Message-ID: <4C3EF97A.5080208@ravenpack.com> References: <20100708141906.C46AE80333@dev268-l> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279197043 3514 80.91.229.12 (15 Jul 2010 12:30:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 12:30:43 +0000 (UTC) To: 6585@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 15 14:30:41 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZNaJ-0006uY-5C for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jul 2010 14:30:39 +0200 Original-Received: from localhost ([127.0.0.1]:56732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZNaI-00045U-KW for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jul 2010 08:30:38 -0400 Original-Received: from [140.186.70.92] (port=58927 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZNa6-0003zF-Cv for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2010 08:30:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZNa1-0000IG-4o for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2010 08:30:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53803) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZNa1-0000I7-1a for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2010 08:30:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OZNCU-0001bl-43; Thu, 15 Jul 2010 08:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jason S. Cornez" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jul 2010 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6585 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6585-submit@debbugs.gnu.org id=B6585.12791955266169 (code B ref 6585); Thu, 15 Jul 2010 12:06:02 +0000 Original-Received: (at 6585) by debbugs.gnu.org; 15 Jul 2010 12:05:26 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZNBt-0001bS-AR for submit@debbugs.gnu.org; Thu, 15 Jul 2010 08:05:26 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZNBr-0001bJ-G8 for 6585@debbugs.gnu.org; Thu, 15 Jul 2010 08:05:24 -0400 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 83D3B16F3F0 for <6585@debbugs.gnu.org>; Thu, 15 Jul 2010 08:05:17 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 15 Jul 2010 08:05:17 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpout; bh=3sGbiMBmormDkjoScYOm0wXW9hc=; b=U1fAWxSqb6ILnXVCbf1sMOBazf+6cOebHxFks2bsUs/hT0LLQtxkZ+77iJyQ2oWQY4U8D1BtrMqe5WTkay2U5hxo4pJEGMn9QhzSwAlfomv7FYD02usMZfgk8PK6PgFgWus4n1DP+KTO+qMb8h70eloLy4btIsqhlwrBcSXSXlQ= X-Sasl-enc: b0/q8PQJ2AnEnPwbvyWzljc+8Iw9ub9MxPt8WFfOOm3f 1279195517 Original-Received: from [10.1.3.5] (unknown [83.39.117.46]) by mail.messagingengine.com (Postfix) with ESMTPSA id CF5C04E18B9 for <6585@debbugs.gnu.org>; Thu, 15 Jul 2010 08:05:16 -0400 (EDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12pre) Gecko/20100712 Lightning/1.0b1 Shredder/3.0.7pre ThunderBrowse/3.3.1 In-Reply-To: X-Enigmail-Version: 1.0.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 15 Jul 2010 08:06:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38552 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I believe I have found the problem. A custom function to switch to a buffer is being called. It looks like... - ---- (defun my::switch-to-buffer (buffer) ;; if buffer is in some window, go to it, otherwise switch-to-buffer (let ((start (selected-window)) (current (next-window (selected-window) 'no-minibuffer 'visible)) (found nil)) (while (and (not (eq current start)) (not found)) (if (eq buffer (window-buffer current)) (setq found current)) (setq current (next-window current 'no-minibuffer 'visible))) (if (null found) (switch-to-buffer buffer) (select-window found)))) - ---- Now, if start == (selected-window) is the minibuffer, then it should be clear that current == (next-window ... 'no-minibuffer ...) will never result in (eq start current). And if the buffer that is passed in isn't visible then (not found) will never be nil and we are stuck in an infinite loop. So this part is not an emacs problem at all. But I am puzzled as to why if this is byte-compiled I can't C-g and break out of this. I'll fix my code and then the problem goes away. So if you want to consider this "not-a-bug", ok. But shouldn't C-g work here? Thanks, - -Jason -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw++XoACgkQQlm6HDTMLyM0FACgivAX/CS3aQ8GjHguFJmPUoOs HkwAoOevvsIpPWnEYEHl/By38pnh4DqV =EHpz -----END PGP SIGNATURE-----