[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: splitting windows and switching buffers

From: martin rudalics
Subject: Re: splitting windows and switching buffers
Date: Fri, 23 Mar 2012 20:31:28 +0100

> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]