From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea crotti Subject: Re: Agenda restrict to buffer Date: Thu, 12 Jul 2012 15:14:36 +0100 Message-ID: References: <87bojl1jkr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 Cc: emacs-orgmode@gnu.org 2012/7/12 Bastien : > > (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?