emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: pop-up-windows
Date: Fri, 24 Apr 2009 20:44:22 -0700	[thread overview]
Message-ID: <20524da70904242044g264eb994vfd13a3d258452210@mail.gmail.com> (raw)

When I click on a link, org-open-at-point splits the window.
What I would like is for it to open the link in the current
window.  The same occurs with org-remember; it splits the
window, but I would like to have the whole window.

Both Emacs and Xemacs have a standard variable,
pop-up-windows, that allows the user to control this
behavior.  Users who set it to nil can expect all but the
most unusual buffers to open in the current window.  Most
parts of emacs respect it.

IMO it would be useful for org to do the same.  It is easy to do,
because you can call pop-to-buffer instead of
switch-to-buffer-other-window.

Try these:

(let ((pop-up-windows t)) (pop-to-buffer (get-buffer "*Messages*")))
(let ((pop-up-windows)) (pop-to-buffer (get-buffer "*Messages*")))

People who use small screens and people who use large fonts
use nil because splitting the window makes small windows.

In org, todo state selection and tag selection should
probably ignore the variable, provided that the window
height contains the buffer.  The context is useful, so it's
OK to split the window.

Export dispatch and agenda dispatch should probably respect
the variable because context usually does not add to the
decision being made (among other reasons).  They do not
currently respect it.

org-complete is currently problematic because it
inadvertently respects the variable.  It changes to the
completions buffer, and then the completion keys do not
work.  This should probably either ignore the variable or accept the
completion keys.  However, I do not use it, so I have not
tried it much.

I hope this made enough sense to be useful to you.  :)

Thanks.

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Greed is corrupting science into foul nonsense.  Anybody can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

             reply	other threads:[~2009-04-25  3:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-25  3:44 Samuel Wales [this message]
2009-05-06 12:14 ` pop-up-windows Carsten Dominik
2009-05-28 22:49   ` pop-up-windows Samuel Wales

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=20524da70904242044g264eb994vfd13a3d258452210@mail.gmail.com \
    --to=samologist@gmail.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).