From mboxrd@z Thu Jan  1 00:00:00 1970
From: andrea crotti <andrea.crotti.0@gmail.com>
Subject: Re: Agenda restrict to buffer
Date: Thu, 12 Jul 2012 15:14:36 +0100
Message-ID: <CAF_E5Ja7VbXcOv4D2z2gQY1SoK_DXRQtrgkHXyBjDnBQZVS66w@mail.gmail.com>
References: <CAF_E5JbMwWC4qV0TcnUJfYRodXGo4r=m5GzuEmeGOJJXNP-DpQ@mail.gmail.com>
	<87bojl1jkr.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:42629)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andrea.crotti.0@gmail.com>) id 1SpKAO-0006j8-VK
	for emacs-orgmode@gnu.org; Thu, 12 Jul 2012 10:15:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andrea.crotti.0@gmail.com>) id 1SpKAA-0000yM-7M
	for emacs-orgmode@gnu.org; Thu, 12 Jul 2012 10:14:52 -0400
In-Reply-To: <87bojl1jkr.fsf@gnu.org>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org

2012/7/12 Bastien <bzg@gnu.org>:
>
> (defun my-org-agenda-command ()
>   (interactive)
>   (org-agenda-set-restriction-lock 'file)
>   (org-agenda nil "%"))
>
> Note that you need to be in your .org file for this to work, so this
> isn't really suited for a global keybinding, only for org-mode-map.
>
> HTH,
>
> --
>  Bastien


Nice thanks I'll give it a try..
I can maybe switch to the buffer automatically and run that, as I was
trying to do before.
Just for curiosity, why the lispy arguments are deprecated?