GNU bug report logs - #3142
23.0.92; split-window-prefered-function should be able to use split-window-horizontally/split-window-vertically

Previous Next

Package: emacs;

Reported by: Jared Finder <jfinder <at> crypticstudios.com>

Date: Tue, 28 Apr 2009 01:45:03 UTC

Severity: wishlist

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #47 received at 3142 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'martin rudalics'" <rudalics <at> gmx.at>, <3142 <at> debbugs.gnu.org>,
        "'Juri Linkov'" <juri <at> jurta.org>
Cc: "'Jared Finder'" <jfinder <at> crypticstudios.com>
Subject: RE: bug#3142: 23.0.92;split-window-prefered-function should be able to usesplit-window-horizontally/split-window-vertically
Date: Wed, 29 Apr 2009 06:50:41 -0700
> Remains the question whether `split-window-preferred-function' should
> always operate on the selected window or have a window 
> argument.  AFAICT
> nothing speaks for the window argument but the fact that 
> people may have
> customized this already.  Omitting the window argument would 
> allow users
> to put `split-window-vertically' directly as value of
> `split-window-preferred-function' without having to delve any deeper.

I haven't followed this thread, and I'm not familiar with the commands in
question.

But if you have a choice between defining foo to be unary or nullary, consider
defining it with &optional: (defun foo (&optional window)...)

That allows use of foo as an object method for windows. That is, given a window,
`foo' is one of the functions that can be applied to it. If defined as nullary,
this is not possible.





This bug report was last modified 13 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.