unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: defun not working
Date: Mon, 18 Jul 2005 23:41:05 +0200	[thread overview]
Message-ID: <87oe8zdc7i.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 42dbf89e$1_1@news.iprimus.com.au

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	other threads:[~2005-07-18 21:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19 11:56 defun not working Baloff
2005-07-18 21:41 ` Pascal Bourguignon [this message]
2005-07-18 21:56   ` Lennart Borgman
2005-07-19 15:20 ` Stefan Monnier
2005-07-20  9:28 ` Alan Mackenzie
2005-07-20 19:32   ` rgb
2005-07-21 12:44   ` Baloff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oe8zdc7i.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).