From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Llu=C3=ADs?= Newsgroups: gmane.emacs.devel Subject: Re: C-x 2 and C-x 3 Date: Thu, 27 Oct 2011 13:08:11 +0200 Message-ID: <87ehxy4rqc.fsf@ginnungagap.bsc.es> References: <87wrbs5vsx.fsf@gnu.org> <4EA7EBCF.70207@harpegolden.net> <87sjmf7rip.fsf@ginnungagap.bsc.es> <87obx33pss.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1319713719 15744 80.91.229.12 (27 Oct 2011 11:08:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 11:08:39 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , David De La Harpe Golden To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 13:08:31 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJNoz-0001vu-F1 for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 13:08:29 +0200 Original-Received: from localhost ([::1]:47039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJNow-0004rn-6u for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 07:08:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJNot-0004rW-9x for emacs-devel@gnu.org; Thu, 27 Oct 2011 07:08:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJNon-0001Jt-KX for emacs-devel@gnu.org; Thu, 27 Oct 2011 07:08:23 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:48060) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RJNon-0001Jl-5A for emacs-devel@gnu.org; Thu, 27 Oct 2011 07:08:17 -0400 Original-Received: (qmail invoked by alias); 27 Oct 2011 11:08:15 -0000 Original-Received: from unknown (EHLO localhost) [84.88.53.92] by mail.gmx.net (mp022) with SMTP; 27 Oct 2011 13:08:15 +0200 X-Authenticated: #12333383 X-Provags-ID: V01U2FsdGVkX18XBTcjShMXKTmN7WZjA3tstA5sUsaBxqJix0ZB/U vUj2FFOLvUqN4q In-Reply-To: <87obx33pss.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 27 Oct 2011 09:33:15 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) 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:145642 Archived-At: Juri Linkov writes: >> Looking at 'split-window', its argument names and documentation should be >> changed accordingly (right now it's using the horizontal concept). The optimal >> would probably be to pass a symbol to a `where-new' argument (e.g., 'bottom, >> 'right, etc), but that might just be too disruptive on current code (unless some >> backwards-compatible argument parsing code was also present). > Your version of `split-window' is outdated. The latest version is: > (split-window &optional WINDOW SIZE SIDE) > ... > Optional third argument SIDE nil (or `below') specifies that the > new window shall be located below WINDOW. SIDE `above' means the > new window shall be located above WINDOW. > ... > SIDE t (or `right') specifies that the new window shall be > located on the right side of WINDOW. SIDE `left' means the new > window shall be located on the left of WINDOW. > So the most logical would be to name split functions by adding the > `SIDE' argument to the existing base function name using a template > "split-window-" thus creating new names (like Stefan already suggested): > split-window-below > split-window-above > split-window-right > split-window-left Aaaahhh! Excelent. Then I wouldn't give it any more thought, as this is, I think, the most consistent way to name them. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth