From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: `ido.el' small, but annoying bug Date: Fri, 3 Dec 2004 20:05:53 +0200 Message-ID: <200412032005.53520.pogonyshev@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1102097129 22848 80.91.229.6 (3 Dec 2004 18:05:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2004 18:05:29 +0000 (UTC) Cc: "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 03 19:05:22 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CaHo1-00058d-00 for ; Fri, 03 Dec 2004 19:05:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaHxd-0003PN-Da for ged-emacs-devel@m.gmane.org; Fri, 03 Dec 2004 13:15:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CaHxE-0003PB-Si for emacs-devel@gnu.org; Fri, 03 Dec 2004 13:14:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CaHxE-0003Oq-8U for emacs-devel@gnu.org; Fri, 03 Dec 2004 13:14:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaHxE-0003Od-55 for emacs-devel@gnu.org; Fri, 03 Dec 2004 13:14:52 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CaHnE-0003FC-Fz for emacs-devel@gnu.org; Fri, 03 Dec 2004 13:04:32 -0500 Original-Received: (qmail 19460 invoked by uid 65534); 3 Dec 2004 18:04:30 -0000 Original-Received: from unknown (EHLO localhost.localdomain) (195.50.12.115) by mail.gmx.net (mp022) with SMTP; 03 Dec 2004 19:04:30 +0100 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.4.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30642 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30642 Type `C-x b', use left/right arrow to select a different buffer and then `C-k' to kill it. With my Emacs (a recent CVS) the list of buffers disappears, but can be reshown again by e.g. pressing left/right arrow. The following smallish patch seems to fix it. However, `ido.el' maintainer should certainly review it. 2004-12-03 Paul Pogonyshev =09* ido.el (ido-matches): Doc fix. =09(ido-kill-buffer-at-head): Remove the killed buffer from =09`ido-matches' in addition to `ido-cur-list'. =09(ido-delete-file-at-head): Likewise for deleted file. --- ido.el=0924 Nov 2004 21:52:11 +0200=091.45 +++ ido.el=0903 Dec 2004 19:59:32 +0200=09 @@ -917,7 +917,7 @@ Copied from `icomplete-eoinput'.") "The initial string for the users string it is typed in.") =20 (defvar ido-matches nil - "List of files currently matching `ido-text'.") + "List of files or buffers currently matching `ido-text'.") =20 (defvar ido-report-no-match t "Report [No Match] when no completions matches ido-text.") @@ -3218,7 +3218,8 @@ for first matching file." =09 ;; buffer couldn't be killed. =09 (setq ido-rescan t) =09;; else buffer was killed so remove name from list. -=09(setq ido-cur-list (delq buf ido-cur-list)))))) +=09(setq ido-cur-list (delq buf ido-cur-list) +=09 ido-matches (delq buf ido-matches)))))) =20 ;;; DELETE CURRENT FILE (defun ido-delete-file-at-head () @@ -3239,7 +3240,8 @@ for first matching file." =09 ;; file could not be deleted =09 (setq ido-rescan t) =09;; else file was killed so remove name from list. -=09(setq ido-cur-list (delq (car ido-matches) ido-cur-list)))))) +=09(setq ido-cur-list (delq (car ido-matches) ido-cur-list) +=09 ido-matches (cdr ido-matches)))))) =20 =20 ;;; VISIT CHOSEN BUFFER