help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: defun not working


From: Pascal Bourguignon
Subject: Re: defun not working
Date: Mon, 18 Jul 2005 23:41:05 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Baloff <vddr2u@bi.edu.gr> writes:

> Hello
> I have this in my ~/.emacs
>
> (defun edo-vertical-to-horizontal ()
> (interactive)
> (let ((one-buf (window-buffer (selected-window))))
> (other-window 1)
> (delete-other-window)
> (split-window-horizontally)
> (switch-to-buffer one-buf))
>
> upone M-x edo-vertical-to-horizontal
> it actually do horizontal to vertical which is the opposite to what it
> is suppost to do. it was working good last time I used it which was a
> year or so ago, I since upgraded my debain.
>
> not sure why it would do this.

Because that's the way it is: split-window-horizontally splits vertical windows
and  split-window-vertically splits horizontal windows.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
Until real software engineering is developed, the next best practice
is to develop with a dynamic system that has extreme late binding in
all aspects. The first system to really do this in an important way
is Lisp. -- Alan Kay


reply via email to

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