From: Jonas Bernoulli <jonas@bernoul.li>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Orgpan: resize the correct window
Date: Wed, 3 Oct 2012 15:32:42 +0200 [thread overview]
Message-ID: <87lifnn089.fsf@bernoul.li> (raw)
is resized to four lines not the document buffer.
TINYCHANGE
---
contrib/lisp/org-panel.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/lisp/org-panel.el b/contrib/lisp/org-panel.el
index 3ffdfaf..1df3847 100644
--- a/contrib/lisp/org-panel.el
+++ b/contrib/lisp/org-panel.el
@@ -598,12 +598,12 @@ button changes the binding of the arrow keys."
org-mode-map))
;;(org-back-to-heading)
;;(remove-hook 'window-configuration-change-hook 'orgpan-window-config-change)
- (split-window)
+ (setq orgpan-org-window (selected-window))
+ (setq orgpan-panel-window (split-window nil nil 'below))
+ (select-window orgpan-panel-window)
(set-window-buffer (selected-window) (orgpan-make-panel-buffer))
- (setq orgpan-panel-window (selected-window))
;;(set-window-dedicated-p (selected-window) t)
- (fit-window-to-buffer nil nil 3)
- (setq orgpan-org-window (next-window))
+ (fit-window-to-buffer nil 4 4)
;; The minor mode version starts here:
(when orgpan-minor-mode-version
(select-window orgpan-org-window)
--
1.7.9.5
Message-ID: <87mx03n090.fsf@bernoul.li>
next reply other threads:[~2012-10-03 13:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-03 13:32 Jonas Bernoulli [this message]
2012-10-03 13:47 ` [PATCH] Orgpan: resize the correct window Jonas Bernoulli
2012-10-26 13:10 ` Bastien
2012-10-27 20:07 ` [PATCH 0/2] Orgpan: resize " Jonas Bernoulli
2012-10-27 20:07 ` [PATCH 1/2] Orgpan: resize the " Jonas Bernoulli
2012-12-22 15:11 ` Bastien
2012-10-27 20:07 ` [PATCH 2/2] Orgpan: quiet byte-compiler Jonas Bernoulli
2012-12-22 15:13 ` Bastien
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lifnn089.fsf@bernoul.li \
--to=jonas@bernoul.li \
--cc=emacs-orgmode@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).