From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paul Du Bois" Newsgroups: gmane.emacs.bugs Subject: bug#9378: 23.3; iswitchb-make-buflist returns a nonexistent buffer Date: Thu, 25 Aug 2011 17:27:40 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1314320214 26665 80.91.229.12 (26 Aug 2011 00:56:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2011 00:56:54 +0000 (UTC) To: 9378@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 26 02:56:50 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qwkj3-0006KB-5D for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Aug 2011 02:56:49 +0200 Original-Received: from localhost ([::1]:48310 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwkj2-0003zc-Sf for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Aug 2011 20:56:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwkdm-0003Zu-8R for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 20:51:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwkdl-0005Bf-CK for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 20:51:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwkdl-0005Bb-At for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 20:51:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QwkgM-0006s4-H6; Thu, 25 Aug 2011 20:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Paul Du Bois" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Aug 2011 00:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9378 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.131432002926389 (code B ref -1); Fri, 26 Aug 2011 00:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Aug 2011 00:53:49 +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 1Qwkg8-0006ra-Hz for submit@debbugs.gnu.org; Thu, 25 Aug 2011 20:53:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qwkf0-0006pm-UL for submit@debbugs.gnu.org; Thu, 25 Aug 2011 20:52:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwkcO-0004z3-Mz for submit@debbugs.gnu.org; Thu, 25 Aug 2011 20:49:57 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:60752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwkcO-0004yz-LX for submit@debbugs.gnu.org; Thu, 25 Aug 2011 20:49:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwkcN-0003UP-Gt for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 20:49:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwkcM-0004y3-8E for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 20:49:55 -0400 Original-Received: from mail.doublefine.com ([216.55.28.142]:9165 helo=CLEM.doublefine.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwkcM-0004wy-43 for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 20:49:54 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 23.3; iswitchb-make-buflist returns a nonexistent buffer Thread-Index: AcxjhvbmuSu6+PRlRQWBzPvB+NUgDg== X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 25 Aug 2011 20:53:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 25 Aug 2011 20:54:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Thu, 25 Aug 2011 20:56:46 -0400 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50352 Archived-At: emacs -Q (require 'iswitchb) (setq read-buffer-function 'iswitchb-read-buffer) (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup) find several files C-x b C-k C-k After the first C-k, the buffer is deleted, but remains at the head of the iswitchb list. The second C-k produces an error "No buffer named " The problem is that iswitchb-make-buflist does not correspond to its documentation: "... If DEFAULT is non-nil, and corresponds to an existing buffer, it is put to the start of the list." Changing the implementation to match the documentation fixes the bug: --- iswitchb.el 2011-06-16 15:36:18.084715400 -0700 +++ iswitchb2.el 2011-08-25 17:23:04.724373400 -0700 @@ -849,7 +849,7 @@ (run-hooks 'iswitchb-make-buflist-hook) ;; Should this be after the hooks, or should the hooks be the ;; final thing to be run? - (if default + (if (and default (get-buffer default)) (progn (setq iswitchb-temp-buflist (delete default iswitchb-temp-buflist)) In GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601) of 2011-03-10 on 3249CTO Windowing system distributor `Microsoft Corp.', version 6.1.7601 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/imagesupport/include'