From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: splitting windows and switching buffers Date: Fri, 23 Mar 2012 20:31:28 +0100 Message-ID: <4F6CCF90.20302@gmx.at> References: <4F6AD765.3050404@gmx.at> <87lims5x1q.fsf@gnu.org> <4F6B7937.2070202@gmx.at> <87d3845pk9.fsf@gnu.org> <4F6C51C1.7080903@gmx.at> <87limr4b2r.fsf_-_@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1332531109 24647 80.91.229.3 (23 Mar 2012 19:31:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2012 19:31:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: sds@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 23 20:31:48 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SBADA-0004ph-BK for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2012 20:31:44 +0100 Original-Received: from localhost ([::1]:51042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBAD9-0000xX-Ou for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2012 15:31:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBAD7-0000uy-9e for emacs-devel@gnu.org; Fri, 23 Mar 2012 15:31:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBAD5-0000ij-Kb for emacs-devel@gnu.org; Fri, 23 Mar 2012 15:31:40 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:44070) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SBAD5-0000iS-AX for emacs-devel@gnu.org; Fri, 23 Mar 2012 15:31:39 -0400 Original-Received: (qmail invoked by alias); 23 Mar 2012 19:31:37 -0000 Original-Received: from 62-47-50-43.adsl.highway.telekom.at (EHLO [62.47.50.43]) [62.47.50.43] by mail.gmx.net (mp030) with SMTP; 23 Mar 2012 20:31:37 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18cxbQeDEsclVs2dHsgTfHSdiLT2XchoOsMKOZ27x BHF3LA16lbsN/o In-Reply-To: <87limr4b2r.fsf_-_@gnu.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149202 Archived-At: > That's why I have > > (defun sds-split-window (size) > "Split the window (sideways if it is wide) and switch buffer." > (interactive "P") > (if (< split-width-threshold (window-width)) > (split-window-right size) > (split-window-below size)) > (unrecord-window-buffer) > (switch-to-buffer (other-buffer))) > > bound to [f2] and I (almost) never use C-x 2 or C-x 3. IIUC you do this to show the other buffer in the window above or on the left and make sure that the buffer previously shown is not reshown. I don't understand yet whether you have problems when using `sds-split-window' or whether `sds-split-window' avoids showing the same buffer twice thus solving your problems. > I understand and recognize that some people like to show the same buffer > in two windows, but I don't think I ever do, and I wish there were a way > to ensure that this actually never happen without an express request > from me. E.g., make the buffer lists associated with windows disjoint. Could you file a request at emacs-devel, explicitly stating that the behavior you need was supported until Emacs 23.4 and is no more supported in Emacs 24.1? The appropriate patch would be similar to the one you applied with the exception that the actual behavior would depend on the value of a user option. martin