emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [tiny patch] calling org-agenda from eshell command line
@ 2009-02-24 15:11 Eric Schulte
  2009-02-25 12:51 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Schulte @ 2009-02-24 15:11 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]


The attached patch makes the prefix argument ARG to `org-agenda'
optional so that it is easier to call from the eshell command line.
There may be some reason not to make this change, but so far I am
enjoying it.

Thanks -- Eric

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Make-the-ARG-argument-to-org-agenda-optional.-Thi.patch --]
[-- Type: text/x-diff, Size: 938 bytes --]

From 1fd28b94613846616ae1dc8829c16fc70ee54454 Mon Sep 17 00:00:00 2001
From: Eric Schulte <schulte.eric@gmail.com>
Date: Tue, 24 Feb 2009 07:07:38 -0800
Subject: [PATCH] Make the ARG argument to `org-agenda' optional.  This makes it easy to
 call org-agenda from the eshell command line.

 lisp/org-agenda.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 435a967..74bd614 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1444,7 +1444,7 @@ that have been changed along."
 (defvar org-agenda-overriding-restriction nil)
-(defun org-agenda (arg &optional keys restriction)
+(defun org-agenda (&optional arg  keys restriction)
   "Dispatch agenda commands to collect entries to the agenda buffer.
 Prompts for a command to execute.  Any prefix arg will be passed
 on to the selected command.  The default selections are:

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-25 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 15:11 [tiny patch] calling org-agenda from eshell command line Eric Schulte
2009-02-25 12:51 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox


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).