emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien Guerry <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: [Accepted] [O] Re: multiple agenda buffers
Date: Thu,  3 Mar 2011 17:41:13 +0100 (CET)	[thread overview]
Message-ID: <20110303164113.E45C76A43@myhost.localdomain> (raw)
In-Reply-To: 87k4ghe1cw.fsf@fastmail.fm

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 <mdl@imapmail.org>
> X-Patchwork-Id: 648
> Message-Id: <87k4ghe1cw.fsf@fastmail.fm>
> To: Bastien <bastien.guerry@wikimedia.fr>
> Cc: org-mode mailing list <emacs-orgmode@gnu.org>
> 
> Hi Bastien,
> 
> Bastien <bastien.guerry@wikimedia.fr> writes:
> 
> > Hi all,
> >
> > Suvayu Ali <fatkasuvayu+linux@gmail.com> 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)))
> 

  reply	other threads:[~2011-03-03 16:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-04 18:55 multiple agenda buffers suvayu ali
2011-02-11 15:20 ` Bastien
2011-02-11 17:06   ` Suvayu Ali
2011-02-19 11:20     ` Bastien
2011-02-19 23:02       ` Suvayu Ali
2011-02-22 11:17         ` Bastien
2011-03-02 20:03       ` Matt Lundin
2011-03-03 16:41         ` Bastien Guerry [this message]
2011-03-03 16:43         ` Bastien
2011-03-02 20:08   ` Matt Lundin
2011-03-03  8:43     ` Bastien

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=20110303164113.E45C76A43@myhost.localdomain \
    --to=bzg@altern.org \
    --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).