emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Orgpan: resize the correct window
@ 2012-10-03 13:32 Jonas Bernoulli
  2012-10-03 13:47 ` Jonas Bernoulli
  2012-10-27 20:07 ` [PATCH 0/2] Orgpan: resize " Jonas Bernoulli
  0 siblings, 2 replies; 8+ messages in thread
From: Jonas Bernoulli @ 2012-10-03 13:32 UTC (permalink / raw)
  To: emacs-orgmode

  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>

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-22 23:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03 13:32 [PATCH] Orgpan: resize the correct window Jonas Bernoulli
2012-10-03 13:47 ` 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

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