From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Out-of-date completions for `read-buffer' Date: Thu, 17 Aug 2006 11:18:34 -0400 Message-ID: References: <34189.128.165.123.18.1155761732.squirrel@webmail.lanl.gov> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1155827968 16490 80.91.229.2 (17 Aug 2006 15:19:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Aug 2006 15:19:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 17 17:19:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GDjeO-00006K-S5 for ged-emacs-devel@m.gmane.org; Thu, 17 Aug 2006 17:19:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDjeO-0008GC-4M for ged-emacs-devel@m.gmane.org; Thu, 17 Aug 2006 11:19:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDjdk-0007v7-2u for emacs-devel@gnu.org; Thu, 17 Aug 2006 11:18:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDjdi-0007ub-Us for emacs-devel@gnu.org; Thu, 17 Aug 2006 11:18:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDjdi-0007uV-Qz for emacs-devel@gnu.org; Thu, 17 Aug 2006 11:18:34 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GDjkE-0006XO-GO for emacs-devel@gnu.org; Thu, 17 Aug 2006 11:25:18 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GDjdi-0002n6-4c; Thu, 17 Aug 2006 11:18:34 -0400 Original-To: herring@lanl.gov In-reply-to: <34189.128.165.123.18.1155761732.squirrel@webmail.lanl.gov> (herring@lanl.gov) 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: news.gmane.org gmane.emacs.devel:58470 Archived-At: Copying the alist for the call to Fcompleting_read (which is trivial to implement) would solve the reordering problems but not the ones involving creation/destruction; the real solution is to write a `complete-buffer' completion function that would re-consult the buffer list each time completion was needed. WDOT? Is this worth fixing, and if so in which way? I think it is worth fixing. Copying the alist pairs as well as the alist itself would be simple and avoid any danger of crashing. It would still "complete wrong" in the case of creating or killing buffers, but that seems like a minor issue. So I think that solution would be fine. However, the `complete-buffer' solution you proposed would be fine too. Would you like to fix it one way or the other?