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 10:29:02 +0200 Message-ID: <201006021029.04372.tassilo@member.fsf.org> References: <201006020842.48913.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1275467544 9362 80.91.229.12 (2 Jun 2010 08:32:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Jun 2010 08:32:24 +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 10:32:23 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 1OJjN5-0007AW-H3 for ged-emacs-devel@m.gmane.org; Wed, 02 Jun 2010 10:32:19 +0200 Original-Received: from localhost ([127.0.0.1]:47555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJjN4-00052y-Nd for ged-emacs-devel@m.gmane.org; Wed, 02 Jun 2010 04:32:18 -0400 Original-Received: from [140.186.70.92] (port=49162 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJjMk-00050l-Tr for emacs-devel@gnu.org; Wed, 02 Jun 2010 04:32:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJjK0-00077O-Mz for emacs-devel@gnu.org; Wed, 02 Jun 2010 04:29:09 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:10975) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJjK0-00076y-DY for emacs-devel@gnu.org; Wed, 02 Jun 2010 04:29:08 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 2637778A48D4; Wed, 2 Jun 2010 10:29:07 +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 00775-01; Wed, 2 Jun 2010 10:29:06 +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 52C8278A46DA; Wed, 2 Jun 2010 10:29:06 +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< =?iso-8859-1?q?O4j=265ljV6lU=7DcXU7oftH=26/x=5F=7EK=7B=26zv9=7D=0A=09sB?= =?iso-8859-1?q?=7D5/Ea=5BhU=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:125443 Archived-At: On Wednesday 02 June 2010 09:23:50 you wrote: Sorry for removing the list and Leo on my last reply to Juanma. > > I don't think so. `C-x b foo RET' is in my muscle memory, and when > > I use `C-x b' I know what buffer/file I want to open. I don't want > > to worry about if it is an open buffer or a recent file. With `C-o' > > toggling only, I always have know if that file is already visited in > > a buffer. >=20 > If you always remember the file you want to edit, then yes. My point > is that if you don't remember (that happens to me a lot, I remember > what I was doing but I forget the file name), having to do C-o defeats > having auto. So you would have no virtual buffers by default and just enable them when you don't remember the file name? So why not enable them by default? =46or me, the reason to use ido is because substring matching is very quick: I type C-x b foo RET without even looking at the completions. In 99% of all cases, it brings me to the right buffer, unless virtual buffers are enabled. In that case, it will bring me to "foo.aux" (recent file I had a look at some time ago) instead of "foo.tex" (currently open for editing). The 'auto value enables that DWIM behavior also for recent files for me. So when I type C-x b foo.a RET, I really want to open "foo.aux", and still I don't have to care about if it is really open. > Though the real fix, as I proposed, is having completion enable > the virtual buffers temporarily. =46rom my point of view, that's not as good as the 'auto value, at least in my usecase, because then I have to mentally distinguish between open buffers and recent files. So how about this: toggles virtual buffers temporarily, and if `ido-use-virtual-buffers' is non-nil, then "no match" enables them, too. 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. 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. What do you think? Bye, Tassilo