From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Feeling lost without tabs Date: Mon, 21 Jul 2014 14:04:56 -0400 Organization: A noiseless patient Spider Message-ID: References: <834myc64eh.fsf@gnu.org> <877g37ubbi.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405965925 10313 80.91.229.3 (21 Jul 2014 18:05:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2014 18:05:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 21 20:05:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X9Hxe-00041Z-UF for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 20:05:19 +0200 Original-Received: from localhost ([::1]:35606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Hxe-0001q6-34 for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 14:05:18 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 74 Injection-Info: mx05.eternal-september.org; posting-host="aabc59b8ce9cdce0c2995912677c9e55"; logging-data="23834"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18x1UchEOrTmqfCQIwl99LQsc0LjyfOPfw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:wYWb2v+K0zsUyECNvqB58WxsVnA= Original-Xref: usenet.stanford.edu gnu.emacs.help:206599 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98871 Archived-At: Bob Proulx writes: > Emanuel Berg wrote: >> Bob Proulx writes: >> > I bind C-x C-b to electric-buffer-list. I couldn't >> > live without it now. In MNHO it is soooo much nicer >> > than list-buffers. >> >> Could you just short say what the differences are and >> how you experience them to be better? I never used >> `electric-buffer-list' but it looks kind of the same at >> first glance. > > As others have said it opens a buffer window, places the point at the > first file in that buffer window. This shows me a buffer window list > and focuses there. I can review my buffer windows. Hitting SPACE > selects a buffer window. If I hit SPACE immediately then I return to > the same buffer window I left. Otherwise I can n, n, n down to the > buffer window I want and SPACE to select it. The newly selected > buffer now replaces the previously selected buffer window. The new > emacs window configuration with regard to split windows is the same > for all other windows but the currently focused window only is changed > to another buffer. > > I had previously said C-n C-p to move through the menu list. But of > course n and p also work. I usually already have my finger on the > control so had not really taken notice of the flexibility. > > With list-buffers the buffer list splits the current frame into two > windows and puts the buffer window list into the other window. > Whatever buffer I had in the other split window is now gone. In order > to focus on the buffer list I need to either C-x 0 or C-x o. Then in > the *Buffer list* window I use n or p to position on the desired > buffer. Then press f or o or any of a variety of keys to select that > buffer in either the current window or the other window. > > The result is that with list-buffers it is disruptive to the window > layout that I have active at the moment I want to switch one of the > windows to a different buffer. Plus there are more steps needed to > perform the same function. > > With electric-buffer-list bound: C-x C-b n n SPACE > > With buffer-list bound: C-x C-b C-o n n f C-x 4 b C-x 4 b C-x 4 b > > The C-x 4 b times three is the finger memory way I rotate through two > windows in order to swap their contents. Because using list-buffers > splits the current frame or replaces the other window in the frame it > causes order of windows to be reversed from the previous arrangement. > That requires a window buffer swap in order to restore the desired > ordering. For example I prefer a code window above and a gdb debugger > window below and not the other way around. Maybe there is a better > way to use list-buffers that avoids that problem but I just looked > again and I didn't see it. The window order issue is completely > avoided by using electric-buffer-list since that only affects the > current window and does not modify any others. > > I hadn't been aware of buffer-menu. Playing with it now shows that it > works very similarly to electric-buffer-list. I think anyone using > either buffer-menu or electric-buffer-list are in the same group and > want the same thing and could use either of those almost > interchangeably. I assume electric-buffer-list came first and > buffer-menu duplicated the behavior since I have been using > electric-buffer-list for a very many years and had not ever heard of > buffer-menu before? That is my assumption until I learn otherwise. buffer menu first. I think you'll find it's the default binding. Something that should have changed a long time ago. -- Dan Espen