From: Dan Griswold <dgriswol@rochester.rr.com>
To: emacs-orgmode@gnu.org
Subject: Re: Agenda view resizes frames
Date: Mon, 15 Oct 2007 07:20:25 -0400 [thread overview]
Message-ID: <87bqb04oau.fsf@cantor.griswold.home> (raw)
In-Reply-To: a1a40244ca7bca1ed43156e8efa6f266@science.uva.nl
Carsten Dominik <dominik@science.uva.nl> writes:
> On Oct 14, 2007, at 20:02, Sebastjan Trepca wrote:
>
>> Hi,
>>
>> when I open agenda view it always resizes the frame and ruins my
>> current frames. How could I fix that, so that it stays in the frame
>> where I executed the command and doesn't resize it?
>
> Use the selfdocumenting power of Emacs:
...
> Ahh, the current value is `reorganize-frame', which is why it messes
> up my frame...
> - Carsten
This was somewhat helpful to me, but mostly in helping me track down
the problem.
The issue (for me, anyway) is that "reorganize-frame" does not work
the same as it used to. For example, let's assume that I have the
*Calendar* buffer displayed, and my agenda will by default display the
whole week, which happens to be very busy lately. Then, when I call
org-agenda-list, the result is that I can see only the last line or
two of the calendar.
This is not what used to happen in previous versions of
org-mode. Looking for something that would account for the change in
behavior, I found a difference in org-fit-agenda-window. In short,
that function has this as its affirmative result in version 10b:
(fit-window-to-buffer nil (/ (* (frame-height) 3) 4)
(/ (frame-height) 2))
while in version 12c it is simply:
(fit-window-to-buffer)
Then, in a V-8 moment (doh!) I thought to check the Changelog, wherein
I found this note:
(org-fit-agenda-window): Limitations on window size removed.
So, this was an intentional change. It must have been for an important
reason.
However, the previous functionality actually worked better for me than
the current definition of org-fit-agenda-window (more of the
(week-long) agenda listed, with all of the calendar but no wasted
space for the calendar). I also liked what it delivered better than
what results now from having org-agenda-window-setup set to
`other-window', which simply splits the window in two. I can't say
whether this is what the OP was after as well.
At any rate, I'll adjust, by having this option set to other-window,
and changing the value of org-agenda-ndays to 1.
Thanks,
Dan
--
--------------
Dan Griswold
Rochester, NY
--------------
next prev parent reply other threads:[~2007-10-15 11:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-14 18:02 Agenda view resizes frames Sebastjan Trepca
2007-10-15 7:56 ` Carsten Dominik
2007-10-15 11:20 ` Dan Griswold [this message]
2007-10-15 11:29 ` Carsten Dominik
2007-10-15 13:43 ` Sebastjan Trepca
2007-10-15 18:19 ` Bernt Hansen
2007-10-16 6:50 ` Carsten Dominik
2007-10-15 18:20 ` Bernt Hansen
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=87bqb04oau.fsf@cantor.griswold.home \
--to=dgriswol@rochester.rr.com \
--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).