unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-commit] emacs/src window.c
       [not found] <E1ITxdc-0002Hx-5d@cvs.savannah.gnu.org>
@ 2007-09-08 21:26 ` Romain Francoise
  2007-09-08 23:07   ` Juri Linkov
  0 siblings, 1 reply; 5+ messages in thread
From: Romain Francoise @ 2007-09-08 21:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Modified files:
> 	src            : window.c

> Log message:
> 	(prefer_window_split_horizontally): New variable.
> 	(display_buffer): Consider splitting window horizontally depending on
> 	prefer_window_split_horizontally.

Unless I'm mistaken there was no need to install this, Stefan already
implemented this feature via `split-window-preferred-function'.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-commit] emacs/src window.c
  2007-09-08 21:26 ` [Emacs-commit] emacs/src window.c Romain Francoise
@ 2007-09-08 23:07   ` Juri Linkov
       [not found]     ` <uejh8r0m9.fsf@gnu.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Juri Linkov @ 2007-09-08 23:07 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

> Eli Zaretskii <eliz@gnu.org> writes:
>
>> Modified files:
>> 	src            : window.c
>
>> Log message:
>> 	(prefer_window_split_horizontally): New variable.
>> 	(display_buffer): Consider splitting window horizontally depending on
>> 	prefer_window_split_horizontally.
>
> Unless I'm mistaken there was no need to install this, Stefan already
> implemented this feature via `split-window-preferred-function'.

Yes, and Stefan's implementation is superior.

It allows specifying such a preference as splitting windows horizontally
when there are enough horizontal space for two side-by-side windows
(I think this should be added as a new choice to the new variable):

(setq split-window-preferred-function
      (lambda (window)
        (split-window window nil (if (> (frame-width) 160) 'horiz))))

It even allows implementing functionality I missed in Emacs for a long time!
After setting it to the following value:

(setq split-window-preferred-function
      (lambda (window)
        (if (member (buffer-name (window-buffer window))
                    '("*Help*"))
            (selected-window)
          (split-window window nil 'horiz))))

it visits source files from the *Help* buffer in the same window.

-- 
Juri Linkov
http://www.jurta.org/emacs/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-commit] emacs/src window.c
@ 2007-09-09  7:38 Angelo Graziosi
  0 siblings, 0 replies; 5+ messages in thread
From: Angelo Graziosi @ 2007-09-09  7:38 UTC (permalink / raw)
  To: emacs-devel; +Cc: Eli Zaretskii, Dan Nicolaescu



Could this


Romain Francoise wrote:

> Eli Zaretskii <address@hidden> writes:
>
>> Modified files:
>>       src            : window.c
>
>> Log message:
>>       (prefer_window_split_horizontally): New variable.
>>       (display_buffer): Consider splitting window horizontally
>>       depending on
>>       prefer_window_split_horizontally.
>
> Unless I'm mistaken there was no need to install this, Stefan already
> implemented this feature via `split-window-preferred-function'.


be the cause of the problem I dercribed here

http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg00756.html ?



   Angelo.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-commit] emacs/src window.c
       [not found]     ` <uejh8r0m9.fsf@gnu.org>
@ 2007-09-09 20:06       ` Richard Stallman
  2007-09-12 11:34         ` Romain Francoise
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2007-09-09 20:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: juri, emacs-devel

    > Yes, and Stefan's implementation is superior.

    I installed that change because Richard asked for that.

My message requesting installation of this patch
crossed in the mail with Stefan's message that he had
installed a similar feature.

Since Stefan's is more general, the thing to do is revert the other.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-commit] emacs/src window.c
  2007-09-09 20:06       ` Richard Stallman
@ 2007-09-12 11:34         ` Romain Francoise
  0 siblings, 0 replies; 5+ messages in thread
From: Romain Francoise @ 2007-09-12 11:34 UTC (permalink / raw)
  To: rms; +Cc: juri, Eli Zaretskii, emacs-devel

Richard Stallman <rms@gnu.org> writes:

> My message requesting installation of this patch crossed in the
> mail with Stefan's message that he had installed a similar
> feature.

> Since Stefan's is more general, the thing to do is revert the
> other.

Done.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-12 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1ITxdc-0002Hx-5d@cvs.savannah.gnu.org>
2007-09-08 21:26 ` [Emacs-commit] emacs/src window.c Romain Francoise
2007-09-08 23:07   ` Juri Linkov
     [not found]     ` <uejh8r0m9.fsf@gnu.org>
2007-09-09 20:06       ` Richard Stallman
2007-09-12 11:34         ` Romain Francoise
2007-09-09  7:38 Angelo Graziosi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).