From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#6454: 24.0.50; kill-buffer switches current-buffer Date: Sun, 20 Jun 2010 09:48:14 +0200 Message-ID: References: <4C1CC855.4060508@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277020744 31965 80.91.229.12 (20 Jun 2010 07:59:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Jun 2010 07:59:04 +0000 (UTC) Cc: 6454@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 20 09:59:02 2010 connect(): No such file or directory 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 1OQFQj-0007bK-Pc for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jun 2010 09:59:02 +0200 Original-Received: from localhost ([127.0.0.1]:45444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQFQh-0008UW-3m for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jun 2010 03:58:59 -0400 Original-Received: from [140.186.70.92] (port=36153 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQFQa-0008SZ-2s for bug-gnu-emacs@gnu.org; Sun, 20 Jun 2010 03:58:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQFQZ-0004dt-0p for bug-gnu-emacs@gnu.org; Sun, 20 Jun 2010 03:58:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45187) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQFQY-0004dm-OZ for bug-gnu-emacs@gnu.org; Sun, 20 Jun 2010 03:58:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OQFH4-0007Gk-Ev; Sun, 20 Jun 2010 03:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Jun 2010 07:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6454 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6454-submit@debbugs.gnu.org id=B6454.127702010427933 (code B ref 6454); Sun, 20 Jun 2010 07:49:02 +0000 Original-Received: (at 6454) by debbugs.gnu.org; 20 Jun 2010 07:48:24 +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 1OQFGR-0007GU-6G for submit@debbugs.gnu.org; Sun, 20 Jun 2010 03:48:23 -0400 Original-Received: from mail-ww0-f44.google.com ([74.125.82.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQFGP-0007GN-26 for 6454@debbugs.gnu.org; Sun, 20 Jun 2010 03:48:21 -0400 Original-Received: by wwi18 with SMTP id 18so228246wwi.3 for <6454@debbugs.gnu.org>; Sun, 20 Jun 2010 00:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :references:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=IVBFdI+wci6Fj/Kfk+9vHiwPcD7y8NDR8e1r9xYT4Fc=; b=KbUEDugmy59jFhEmpehjNCm10jdaDSAWELWtVwPBAirp/Wy3pf2Q8mVSkDSlhazw1S p/lLvmvi7mFjqzPjtrMclhjpsde+fF9+NAruwnTAOk4XdXf01ToJCKG31aThUp1ZtSOg gupLjlc5Hm6lVE/sDUO18gEBdgnseIAMlK/ao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=sn59TNIBbOodPtUFXQ9Iie7kOoJqFdxoDuVHV10YqviVkY7+yxxRoS1JX6Nn2Z1ZXn l/KuBSdDfncL4qbDKzuXVLLMCsjDgF2I5WAPJefkxACBoWcsGonBhQl/OS7EWOIetVQ3 7y30UN2ZVQJkm1f/hFKMVcBJB45JFZVUTAN8M= Original-Received: by 10.227.142.200 with SMTP id r8mr3153379wbu.72.1277020097339; Sun, 20 Jun 2010 00:48:17 -0700 (PDT) Original-Received: from ix (dial-182193.pool.broadband44.net [212.46.182.193]) by mx.google.com with ESMTPS id y31sm13409231wby.16.2010.06.20.00.48.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 20 Jun 2010 00:48:16 -0700 (PDT) Original-Received: from helmut by ix with local (Exim 4.69) (envelope-from ) id 1OQFGI-00013C-1e; Sun, 20 Jun 2010 09:48:14 +0200 In-Reply-To: <4C1CC855.4060508@gmx.at> (martin rudalics's message of "Sat, 19 Jun 2010 15:38:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 20 Jun 2010 03:49: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:37899 Archived-At: * martin rudalics [2010-06-19 15:38+0200] writes: > Helmut, please try whether the attached patch fixes your bug. Yes, the patch fixes my immediate problem. Thanks. I'm wondering a bit though: kill-buffer protects the current buffer while calling kill-buffer-hook. Wouldn't it be prudent to do that for the entire function? Actually, I think there is a small bug there: if kill-buffer-hook is a list of functions, the first function could potentially switch buffer and the second function would be called in the wrong buffer. [The change in window_loop looks like good thing either way.] Helmut