From: bbrady <bryan.brady@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: delete window help
Date: Tue, 4 Nov 2008 13:41:48 -0800 (PST) [thread overview]
Message-ID: <3339f6a0-09b2-4e43-9d31-a2c68bd732a4@b31g2000prb.googlegroups.com> (raw)
In-Reply-To: 26df59a1-196b-4c01-8b58-c82a5bebae37@d10g2000pra.googlegroups.com
> give it a argument of 2. Type this:
>
> Ctrl+u 2 Ctrl+x 0
>
> in general, if you want to give a argument to a command, just type Ctrl
> +u first then argument, then call the command.
Thanks for the info, I didn't know how to give arguments to a
command.
I've tried what you mentioned above and its not working. I also tried
giving delete-window arguments 0 and 1. The behavior is the same. That
is, window 'c' becomes the entire left side. Which is the same thing
that happens when I run Ctrl+x 0 without arguments. (Note, I was in
window 'a' when I did Ctrl+u 2 Ctrl+x 0)
To make sure we're on the same page, executing the elisp code below
should bring you to the same state I'm in when I want to delete window
'c'.
(split-window-horizontally)
(split-window)
(find-file "a")
(other-window 1)
(find-file "c")
(other-window 1)
(find-file "b")
(other-window 1)
I tried eval-expression on (delete-window 2) and I got the following
error trace:
Debugger entered--Lisp error: (wrong-type-argument windowp 2)
delete-window(2)
eval((delete-window 2))
eval-expression((delete-window 2) nil)
call-interactively(eval-expression)
execute-extended-command(nil)
call-interactively(execute-extended-command)
It looks like delete-window wants a pointer to a window object,
instead of an integer.
bbrady
next prev parent reply other threads:[~2008-11-04 21:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 17:57 delete window help bbrady
2008-11-04 20:42 ` Xah
2008-11-04 21:41 ` bbrady [this message]
2008-11-04 22:47 ` aartist
2008-11-05 1:47 ` Xah
2008-11-05 2:20 ` bbrady
2008-11-05 6:39 ` Xah
2008-11-05 16:56 ` aartist
2008-11-05 21:15 ` bbrady
2008-11-05 22:41 ` Chetan
2008-11-06 0:48 ` bbrady
[not found] ` <u3ai5389e.fsf@myhost.sbcglobal.net>
2008-11-06 17:29 ` bbrady
2008-11-06 16:30 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3339f6a0-09b2-4e43-9d31-a2c68bd732a4@b31g2000prb.googlegroups.com \
--to=bryan.brady@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.