emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: [tiny patch] calling org-agenda from eshell command line
Date: Tue, 24 Feb 2009 07:11:57 -0800	[thread overview]
Message-ID: <87wsbfq37m.fsf@gmail.com> (raw)

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

             reply	other threads:[~2009-02-24 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-24 15:11 Eric Schulte [this message]
2009-02-25 12:51 ` [tiny patch] calling org-agenda from eshell command line Carsten Dominik

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:

  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=87wsbfq37m.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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