From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: agenda view opening multiple buffers Date: Mon, 28 Mar 2011 20:47:34 +0200 Message-ID: <73568D24-AB5A-433F-B28A-DDDCF3071F2E@gmail.com> References: <87ei5sr7gj.fsf@norang.ca> <878vw0y78z.wl%markert.michael@googlemail.com> <815582FF-9288-4B52-9B5A-4D838D6A1FFD@gmail.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=58679 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4HTb-0002z9-BC for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 14:47:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4HTa-0006yz-1T for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 14:47:43 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:34479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4HTZ-0006yo-TF for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 14:47:41 -0400 Received: by eyd9 with SMTP id 9so919256eyd.0 for ; Mon, 28 Mar 2011 11:47:41 -0700 (PDT) In-Reply-To: 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: Manish Cc: Julian Burgos , Bernt Hansen , emacs-orgmode@gnu.org, Michael Markert On 28.3.2011, at 20:30, Manish wrote: > On Mon, Mar 28, 2011 at 8:48 PM, Carsten Dominik wrote: >>=20 >> On 27.3.2011, at 20:55, Manish wrote: >>=20 >>> On Sun, Mar 27, 2011 at 8:21 PM, Julian Burgos wrote: >>>> Thanks. Using x is good enough for now. I=C2=B4ll explore also = Michael=C2=B4s >>>> suggestions. It would be good to have the agenda open in a buffer >>>> without having all the agenda files opened too. >>>>=20 >>>=20 >>> Following code should do what you want (I think). >>>=20 >>> #+begin_src emacs-lisp >>> ;; function code copied from definition of org-agenda-exit >>> (add-hook 'org-finalize-agenda-hook >>> (lambda () >>> (interactive) >>> (org-release-buffers org-agenda-new-buffers) >>> (setq org-agenda-new-buffers nil))) >>> #+end_src >>=20 >> This will make the agenda disfunctional. Each line in the agenda = contains a pointer to the entry the line was derived from, so remote = editing etc will stop working. >>=20 >> Exiting with "x" is the much better solution. >>=20 >=20 >=20 > Thanks for pointing that out. Wouldn't "x" that close the agenda as > well along with the buffers? Yes. > OP said: " It would be good to have the > agenda open in a buffer without having all the agenda files opened > too." May be a special custom agenda command that calls the above > lambda function at the end would work better by limiting the damaged > behaviour to just one command? No. The agenda buffer needs the source buffers alive to function. - Carsten=