From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] [O] Re: multiple agenda buffers Date: Thu, 3 Mar 2011 17:41:13 +0100 (CET) Message-ID: <20110303164113.E45C76A43@myhost.localdomain> References: <87k4ghe1cw.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=48645 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvBak-00039V-UW for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 11:41:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvBac-0000L1-V0 for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 11:41:30 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:40792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvBac-0000Kt-OL for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 11:41:22 -0500 Received: by wwb29 with SMTP id 29so120295wwb.0 for ; Thu, 03 Mar 2011 08:41:21 -0800 (PST) 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 Patch 648 (http://patchwork.newartisans.com/patch/648/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C87k4ghe1cw.fsf%40fastmail.fm%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O] Re: multiple agenda buffers > Date: Thu, 03 Mar 2011 01:03:43 -0000 > From: Matt Lundin > X-Patchwork-Id: 648 > Message-Id: <87k4ghe1cw.fsf@fastmail.fm> > To: Bastien > Cc: org-mode mailing list > > Hi Bastien, > > Bastien writes: > > > Hi all, > > > > Suvayu Ali writes: > > > >> However I was wondering, block agenda commands might work at least for > >> doing multiple searches. But I don't think there is any interactive > >> interface to it. > > > > inspired by this conversation, I have add a new agenda command: > > > > M-x org-agenda-append-agenda RET > > > > It is bound to `A' in the agenda buffer and lets you append any > > agenda to the currently displayed one, thus providing some kind > > of interactive interface to build block agendas from simple ones. > > > > I think it's a neat addition -- especially useful when you want > > to compare to _small_ list of items. > > > > Let me know what you think - and thanks Suvayu for the idea! > > Thanks for the new function. However, at the moment, it has destructive > effects if it is called in a buffer other than the agenda buffer, as it > appends the new agenda results to the current buffer and then makes the > buffer read-only. > > Perhaps for now we could throw an error if the append function is called > from outside the agenda: > > --8<---------------cut here---------------start------------->8--- > --8<---------------cut here---------------end--------------->8--- > > Best, > Matt > > > diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el > index ea822da..f2eac99 100644 > --- a/lisp/org-agenda.el > +++ b/lisp/org-agenda.el > @@ -2266,6 +2266,8 @@ Pressing `<' twice means to restrict to the current subtree or region > This function allows interactive building of block agendas. > Agenda views are separated by `org-agenda-block-separator'." > (interactive) > + (unless (string= (buffer-name) org-agenda-buffer-name) > + (error "Can only append from within agenda buffer")) > (let ((org-agenda-multi t)) > (org-agenda) > (widen))) >