From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Concerning the new `ido-use-virtual-buffers' feature Date: Wed, 2 Jun 2010 11:55:16 +0200 Message-ID: <201006021155.18345.tassilo@member.fsf.org> References: <201006021029.04372.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275472544 27078 80.91.229.12 (2 Jun 2010 09:55:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Jun 2010 09:55:44 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 02 11:55:41 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@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 1OJkfh-0007RC-R0 for ged-emacs-devel@m.gmane.org; Wed, 02 Jun 2010 11:55:38 +0200 Original-Received: from localhost ([127.0.0.1]:38769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJkfg-0004pC-Dp for ged-emacs-devel@m.gmane.org; Wed, 02 Jun 2010 05:55:36 -0400 Original-Received: from [140.186.70.92] (port=55175 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJkfW-0004nV-Ix for emacs-devel@gnu.org; Wed, 02 Jun 2010 05:55:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJkfR-0004MH-9s for emacs-devel@gnu.org; Wed, 02 Jun 2010 05:55:26 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:3533) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJkfR-0004M4-1V for emacs-devel@gnu.org; Wed, 02 Jun 2010 05:55:21 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 90DEB78A4151; Wed, 2 Jun 2010 11:55:19 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23212-04; Wed, 2 Jun 2010 11:55:18 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.localnet (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 7F1F77826BCA; Wed, 2 Jun 2010 11:55:18 +0200 (CEST) User-Agent: KMail/1.13.3 (Linux/2.6.34-gentoo; KDE/4.4.4; x86_64; ; ) In-Reply-To: X-Face: `TY6r/ws=N5uqO1E`M=Sups<}n%T[E^o_?MJj< =?utf-8?q?O4j=265ljV6lU=7DcXU7oftH=26/x=5F=7EK=7B=26zv9=7D=0A=09sB=7D5/Ea=5B?= =?utf-8?q?hU=7BCS=23=3F=3F0=3F=3Fn?=@sX+ft]?{(l?, mp"a`u 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:125448 Archived-At: On Wednesday 02 June 2010 11:28:34 Juanma Barranquero wrote: > I like the virtual buffers feature, but most of the time I switch to > an existing bufer, so having a dozen virtual buffers in the list is > just cruft. `auto' seems like the answer... except when I can not > remember how the file was named. Exactly, and then you can hit . > > So how about this: toggles virtual buffers temporarily, and if > > `ido-use-virtual-buffers' is non-nil, then "no match" enables them, > > too. > > Similar to what I'm proposing, that is, that in `auto' mode, after > "C-x b", should temporarily switch to `always'. Ah, Leo was the one to change the values back to nil/non-nil back again. IMO, that fits well with your tab completion idea. If you don't remember the name, C-x b will enable the virtual buffers temporarily. `C-x b foobar' with no match and ido-use-virtual-buffers set to non-nil will also enable them temporarily. I think, that fits our usecases very good. > > So basically, `ido-use-virtual-buffers' non-nil does what 'auto does > > with Leo's patch now. There's no way to have virtual buffers per > > default, which is pretty useless IMHO anyway. > > Difficult to say. I wouldn't be surprised to find people who wants the > virtual buffers to be shown all the time. Sure, but as this feature has never been in a released emacs version, now is the time to come up with something that fits at least most usecases. And the combined with the "auto if ido-use-virtual-buffers in non-nil" idea fits the "I want to be quick/DWIM" as well as the "I want to see what I have" usecases well. Till now, I cannot imagine any other usecase... > > I think should not only enable but toggle, because else I could > > not create a new buffer "foo.a" if `ido-use-virtual-buffers' is non-nil. > > C-o already toggles it, i.e., C-x b foo.a C-o Yes, but is more convenient, and the behavior I tried to summarize hopefully tries to minimize the need for toggling, i.e. you only need it if you want to see all recent files or you want to create a new buffer which is not associated to a recent file with similar name. Bye, Tassilo