From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: pop-up-windows Date: Fri, 24 Apr 2009 20:44:22 -0700 Message-ID: <20524da70904242044g264eb994vfd13a3d258452210@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxYot-0001o7-94 for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 23:44:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxYon-0001lh-Tq for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 23:44:50 -0400 Received: from [199.232.76.173] (port=49742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxYon-0001le-NV for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 23:44:45 -0400 Received: from wa-out-1112.google.com ([209.85.146.179]:44437) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxYon-0001im-85 for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 23:44:45 -0400 Received: by wa-out-1112.google.com with SMTP id m33so479700wag.26 for ; Fri, 24 Apr 2009 20:44:43 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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