From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6454: 24.0.50; kill-buffer switches current-buffer Date: Fri, 18 Jun 2010 11:33:43 -0400 Message-ID: References: <4C1B643D.1080703@gmx.at> <4C1B83AF.80600@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276876744 4536 80.91.229.12 (18 Jun 2010 15:59:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Jun 2010 15:59:04 +0000 (UTC) Cc: Helmut Eller , 6454@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 18 17:58:59 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 1OPdy2-0001Fu-2r for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jun 2010 17:58:54 +0200 Original-Received: from localhost ([127.0.0.1]:34055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPdy1-0008TU-0o for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jun 2010 11:58:53 -0400 Original-Received: from [140.186.70.92] (port=45840 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPdxv-0008TJ-5j for bug-gnu-emacs@gnu.org; Fri, 18 Jun 2010 11:58:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPdxu-0007XU-1m for bug-gnu-emacs@gnu.org; Fri, 18 Jun 2010 11:58:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47698) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPdxt-0007XJ-Vz for bug-gnu-emacs@gnu.org; Fri, 18 Jun 2010 11:58:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OPdZy-0004OB-MF; Fri, 18 Jun 2010 11:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Jun 2010 15:34: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.127687523916865 (code B ref 6454); Fri, 18 Jun 2010 15:34:02 +0000 Original-Received: (at 6454) by debbugs.gnu.org; 18 Jun 2010 15:33:59 +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 1OPdZv-0004Ny-GR for submit@debbugs.gnu.org; Fri, 18 Jun 2010 11:33:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPdZt-0004Nr-Aq for 6454@debbugs.gnu.org; Fri, 18 Jun 2010 11:33:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAIwuG0xLd+Hj/2dsb2JhbACfEHLCSYJZgkIEjRg X-IronPort-AV: E=Sophos;i="4.53,440,1272859200"; d="scan'208";a="68357712" Original-Received: from 75-119-225-227.dsl.teksavvy.com (HELO pastel.home) ([75.119.225.227]) by ironport2-out.pppoe.ca with ESMTP; 18 Jun 2010 11:33:44 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E235E7F26; Fri, 18 Jun 2010 11:33:43 -0400 (EDT) In-Reply-To: <4C1B83AF.80600@gmx.at> (martin rudalics's message of "Fri, 18 Jun 2010 16:33:19 +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: Fri, 18 Jun 2010 11:34: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:37836 Archived-At: >> I know that kill-buffer should not change current-buffer. > What about C-x k ;-) C-x k is no exception: the kill-buffer function there should not (and usually will not) change current-buffer (other than in the obvious case where we kill the current-buffer, obviously). > So we would have to check whether we want to kill the current buffer and > not change it if we don't. That's right. > Unfortunately, there's no proof that the buffer current when calling > `kill-buffer' is the buffer considered current by the outermost > calling application. It might be just current because some > intermittent part (the actual caller of `kill-buffer') wanted to have > a look at the buffer's local variables. So `kill-buffer' can't be > sure about the "real identity of the current buffer" either. I don't see a problem here. Can you give a more detailed scenario? Stefan