* Re: Refile to a different Org file?
[not found] <201011251701.oAPH1gbM032630@hormel5.ieee.org>
@ 2010-11-29 18:49 ` Raymond Zeitler
2010-12-06 12:45 ` Matt Lundin
0 siblings, 1 reply; 5+ messages in thread
From: Raymond Zeitler @ 2010-11-29 18:49 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Me
Thank you Sebastien. (Sorry about the Americanized spelling of your name.)
I added (setq org-refile-use-outline-path 'file) and switched to a maxlevel
of 2. Now I have a working solution. That was one "point" to my post.
Org-agenda-refile still doesn't find the categories within other files. And
now completion is broken for categories even within the main todo file. But
this a viable alternative because:
1. I have only one category within the extra files that I have listed in
org-agenda-files.
2. It offers the ability to complete the file name.
3. I'll probably split the main todo file into multiple "category" files.
My other point was that refile is not working as well as it could. Or
perhaps I have a misunderstanding about how to construct an org file in
order to take advantage of it.
I do think that the documentation for org-refile-targets should refer to the
variable org-refile-use-outline-path.
All the best!
- Ray
--
Raymond Zeitler <r.zeitler@ieee.org>
-----Original Message-----
Date: Wed, 24 Nov 2010 22:44:53 +0100
From: S?bastien Vauban <wxhgmqzgwmuf@spammotel.com>
Subject: [Orgmode] Re: Refile to a different Org file?
To: emacs-orgmode@gnu.org
Message-ID: <80k4k2jt0q.fsf@missioncriticalit.com>
Content-Type: text/plain; charset=utf-8
Hi Raymond,
"Raymond Zeitler" wrote:
> I'm trying to change the value of org-refile-targets to enable me to
refile
> to the other files that make up my agenda view. Its value started out as
> just nil, which worked exactly right for one file because I was able to
> refile to all the *categories* in ~/todo.org, using tab completion, and it
> didn't get confused by tags or heading names.
>
> So far I've used customization to put this into the appropriate section of
> my .emacs:
>
> '(org-refile-targets (quote ((org-agenda-files :maxlevel . 1) (nil
> :maxlevel . 1))))
>
> This doesn't work the way I expect. I figured out that I can refile if I
> specify the heading "Tasks" and the filename. But I cannot refile to any
> categories other than the ones in ~/todo.org. And sometimes I get choices
> that I don't want where the heading starts with the same text as the
> category name. BTW, I use unique category names across all files.
This is what I'm using:
#+begin_src emacs-lisp
;; any headline with level <= 2 is a target
(setq org-refile-targets '((nil :maxlevel . 2)
; all top-level headlines in the
; current buffer are used (first) as a
; refile target
(org-agenda-files :maxlevel . 2)))
;; provide refile targets as paths, including the file name
;; (without directory) as level 1 of the path
(setq org-refile-use-outline-path 'file)
;; allow to create new nodes (must be confirmed by the user) as
;; refile targets
(setq org-refile-allow-creating-parent-nodes 'confirm)
;; refile only within the current buffer
(defun my/org-refile-within-current-buffer ()
"Move the entry at point to another heading in the current buffer."
(interactive)
(let ((org-refile-targets '((nil :maxlevel . 5))))
(org-refile)))
#+end_src
In particular, the file notation allows me to easily refile to any Org file
(from the agenda ones):
Work.org/Appointments
or
Perso.org/Appointments
Does this answer your concern, or did I miss your point?
Best regards,
Seb
--
SC)bastien Vauban
------------------------------
Message: 15
Date: Wed, 24 Nov 2010 17:12:33 -0500
From: "Raymond Zeitler" <r.zeitler@ieee.org>
Subject: [Orgmode] Re: Sunrise / Sunset in Agenda View only for
Current Day?
To: "'Matt Lundin'" <mdl@imapmail.org>
Cc: emacs-orgmode@gnu.org
Message-ID: <FAF41162FEC948E9B187F134B36F7FBB@PHONON.COM>
Content-Type: text/plain; charset="us-ascii"
This worked wonderfully! Thanks!
I decided to combine the &%%(diary-day-of-year) into the same category with
&%%(diary-sunrise-sunset).
My setup is shown on Emacs wiki:
http://www.emacswiki.org/emacs/RaymondZeitler
All the best!
--
Raymond Zeitler <r.zeitler@ieee.org>
-----Original Message-----
From: Matt Lundin [mailto:mdl@imapmail.org]
Sent: Wednesday, November 03, 2010 8:44 PM
To: Raymond Zeitler
Cc: emacs-orgmode@gnu.org
Subject: Re: Sunrise / Sunset in Agenda View only for Current Day?
"Raymond Zeitler" <r.zeitler@ieee.org> writes:
> I added sunrise & day of the week to the org file that I base my agenda
view
> on. But this adds the information for every day that's displayed in the
> agenda. Is it possible to get the information to show up only for the
> current day?
>
> TIA
>
> Here's the relevant content in the org file:
> #+CATEGORY: Day/Year
> &%%(diary-day-of-year)
> #+CATEGORY: Sunrise
> &%%(diary-sunrise-sunset)
One way to accomplish this is with a custom skip function and a custom
agenda command. In order for this particular setup to work, you'll need
to put the sunrise sexp in it's own subtree, as in:
--8<---------------cut here---------------start------------->8---
* Sunrise
:PROPERTIES:
:CATEGORY: Sunrise
:END:
&%%(diary-sunrise-sunset)
--8<---------------cut here---------------end--------------->8---
Note: it's important that you use the CATEGORY property to ensure that
the category "Sunrise" is limited to a single subtree.
Then, you could add the following function to your emacs:
--8<---------------cut here---------------start------------->8---
(defun my-org-skip-sunrise ()
(if (and (not (equal date (calendar-current-date)))
(string= (org-get-category) "Sunrise"))
(org-end-of-subtree t)
nil))
--8<---------------cut here---------------end--------------->8---
Finally, you could define a custom command that instructs org to use the
skip function to bypass all "Sunrise" entries for days other than today:
--8<---------------cut here---------------start------------->8---
(add-to-list 'org-agenda-custom-commands
'("x" "My agenda" agenda ""
((org-agenda-ndays 7)
(org-agenda-skip-function 'my-org-skip-sunrise))))
--8<---------------cut here---------------end--------------->8---
If you're feeling brave, you could disregard the docstring for
org-agenda-skip-function and bind the variable globally (i.e., invoke
my-org-skip-sunrise on all agenda commands), but I wouldn't recommend
this.
Hope this helps,
Matt
------------------------------
Message: 16
Date: Wed, 24 Nov 2010 17:45:39 -0500
From: "Brody, William (Buck)" <BrodyW11@darden.virginia.edu>
Subject: [Orgmode] mobileorg and archive sibling
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Message-ID:
<46FF04F1BA077D4586212E7E31C57D2A0AB5051CB9@MAIL.darden.virginia.edu>
Content-Type: text/plain; charset="us-ascii"
I use the "archive sibling" feature for completed items. Within MobileOrg,
the ARCHIVE tag does not seem to have any functionality. As a result, my
MobileOrg file is cluttered with many obsolete items. Any ideas for how I
might fix this problem?
Thanks
Buck
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.gnu.org/archive/html/emacs-orgmode/attachments/20101124/caee15f
7/attachment.html
------------------------------
Message: 17
Date: Wed, 24 Nov 2010 17:11:09 -0600
From: Nathan Neff <nathan.neff@gmail.com>
Subject: [Orgmode] Awesome! Date-tree from agenda!
To: emacs-orgmode <emacs-orgmode@gnu.org>
Message-ID:
<AANLkTikJt_OsVT=4T+S_mT2fUespJ_b9fppRAasBrW+x@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
I've been looking for a way to do quick "journal" entries
for /past/ dates, and was disappointed that the Journal
capture template always used the current date.
I found out you can go to a date in the agenda, and press "k c", which
will cause any capture-template to use the date in the agenda, not today's
date.
This will use the agenda's date when putting journal entries into a
file like this:
* 2010-11-17 Wednesday
** Did something in the past (I entered this from the agenda, going
back to 2010-11-17)
Cool!
http://orgmode.org/manual/Using-capture.html#Using-capture
------------------------------
Message: 18
Date: Thu, 25 Nov 2010 00:30:17 +0100
From: Gustav Wikstr?m <gustav.erik@gmail.com>
Subject: [Orgmode] ASCII export - "AutoFill"
To: emacs-orgmode@gnu.org
Message-ID:
<AANLkTimJRWQooaevxujH_VxM+bzR8AbQ0Ho7MdGFX2k_@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello!
Just a silly question... If I want to export to ASCII from my Org-file, and
want the exported ASCII to have all the paragraphs restricted to, say, 80
columns - Is there a nice way to do this without first converting all the
paragraphs in the org-file?
In essence, Org-mode file:
* Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc varius
scelerisque nisi, ac tristique tellus porta ut. Cras porta, tortor eget
malesuada pellentesque, lorem enim accumsan mauris, quis imperdiet risus
velit id ante. Quisque porttitor ornare turpis non aliquam.
Exported ASCII-text file:
* Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc
varius scelerisque nisi, ac tristique tellus porta ut. Cras
porta, tortor eget malesuada pellentesque, lorem enim accumsan
mauris, quis imperdiet risus velit id ante. Quisque porttitor
ornare turpis non aliquam.
Best regards
Gustav
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.gnu.org/archive/html/emacs-orgmode/attachments/20101125/6773d61
e/attachment.html
------------------------------
Message: 19
Date: Wed, 24 Nov 2010 18:56:11 -0500
From: Bernt Hansen <bernt@norang.ca>
Subject: [Orgmode] Re: org-latex-to-pdf-process missing?
To: Jeff Horn <jrhorn424@gmail.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Message-ID: <878w0ip97o.fsf@gollum.intra.norang.ca>
Content-Type: text/plain; charset=utf-8
Jeff Horn <jrhorn424@gmail.com> writes:
>>> 3) Shouldn't org-latex be loaded automatically?
>>
>> You're referencing a variable in org-latex. B It probably doesn't get
>> defined until you have auto-loaded org-latex by using some function
>> provided by that file. B If you want to use the variable before that I
>> think you need to require the package to force loading it early.
>
> I didn't realized that's how autoloads work. So they're "just in time"
> loads? Designed to cut back on the initial load time?
That's my understanding of how it works. The main purpose of autoloads
(as far as I know) is to speed up Emacs initial startup time.
Regards,
Bernt
------------------------------
Message: 20
Date: Wed, 24 Nov 2010 19:07:47 -0500
From: tycho garen <garen@tychoish.com>
Subject: Re: [Orgmode] Re: repo.or.cz down
To: Seweryn Kokot <sewkokot@gmail.com>
Cc: emacs-orgmode@gnu.org
Message-ID: <20101125000747.GE19973@deleuze.tychoish.com>
Content-Type: text/plain; charset="us-ascii"
On Wed, Nov 24, 2010 at 02:48:38PM +0000, Seweryn Kokot wrote:
> It seems that the server http://repo.or.cz/w/org-mode.git was up just for
a
> moment since I managed to pull the latest org-mode version, now it's down
> again.
The server didn't come back as promptly as we would have liked after a
networking issue, and pasky disabled Apache for a while things
stabilized. Everything should be working at this point. I'd poke a bit
further, but I'm on a train at the moment, and my connection
is... somewhat lackluster.
Sorry about that.
Cheers,
sam
--
tycho(ish) @
garen@tychoish.com
http://www.tychoish.com/
http://www.cyborginstitute.com/
"don't get it right, get it written" -- james thurber
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url :
http://lists.gnu.org/archive/html/emacs-orgmode/attachments/20101124/67fc21e
a/attachment.bin
------------------------------
Message: 21
Date: Wed, 24 Nov 2010 20:35:25 -0500
From: Uriel Avalos <amscopub-mail@yahoo.com>
Subject: Re: [Orgmode] Re: Automatic global tag list?
To: emacs-orgmode@gnu.org
Message-ID:
<20101124203525.11b6cddfamscopub-mail@yahoo.com@dove.localdomain>
Content-Type: text/plain; charset=ISO-8859-1
Thanks. That did the trick. I found that I also had to disable
org-use-fast-tag-selection. For some reason, with that set to t or
auto, I couldn't select from the global tag list.
On Wed, 24 Nov 2010 09:38:26 +0100
Sibastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:
> Hi Matt,
>
> Matt Lundin wrote:
> > Have you tried the following setting?
> >
> > (setq org-complete-tags-always-offer-all-agenda-tags t)
> >
> >> BTW, where is the documentation? I'm using orgmode 7.03, perhaps it's
> >> not documented there?
> >
> > C-h f org-global-tags-completion-table.
>
> C-h v org-complete-tags-always-offer-all-agenda-tags says:
>
> ,----
> | org-complete-tags-always-offer-all-agenda-tags is a variable defined
in `org.el'.
> | Its value is nil
> |
> | Documentation:
> | If non-nil, always offer completion for all tags of all agenda
files.
> | Instead of customizing this variable directly, you might want to
> | set it locally for remember buffers, because there no list of
> | tags in that file can be created dynamically (there are none).
> |
> | (add-hook 'org-remember-mode-hook
> | (lambda ()
> | (set (make-local-variable
> | 'org-complete-tags-always-offer-all-agenda-tags)
> | t)))
> |
> | You can customize this variable.
> |
> | [back]
> `----
>
> (didn't know about that var)
>
> You see that one should sed 's/remember/capture/g'.
>
> --8<---------------cut here---------------start------------->8---
> --- INDEX:/lisp/org.el
> +++ WORKDIR:/lisp/org.el
> @@ -2732,10 +2732,10 @@ To disable these tags on a per-file basis, insert
anywhere in the file:
> (defcustom org-complete-tags-always-offer-all-agenda-tags nil
> "If non-nil, always offer completion for all tags of all agenda files.
> Instead of customizing this variable directly, you might want to
> -set it locally for remember buffers, because there no list of
> +set it locally for capture buffers, because there no list of
> tags in that file can be created dynamically (there are none).
>
> - (add-hook 'org-remember-mode-hook
> + (add-hook 'org-capture-mode-hook
> (lambda ()
> (set (make-local-variable
> 'org-complete-tags-always-offer-all-agenda-tags)
> --8<---------------cut here---------------end--------------->8---
>
> It seems there are a lot more references to remember, but I'm not sure
which
> can be safely removed.
>
> Best regards,
> Seb
>
> --
> Sibastien Vauban
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
------------------------------
Message: 22
Date: Wed, 24 Nov 2010 20:38:13 -0500
From: Uriel Avalos <amscopub-mail@yahoo.com>
Subject: [Orgmode] Generate list of all tags in use?
To: emacs-orgmode@gnu.org
Message-ID:
<20101124203813.3329b176amscopub-mail@yahoo.com@dove.localdomain>
Content-Type: text/plain; charset=US-ASCII
Is there a way to generate a list of all tags in use in all agenda files?
I'm thinking of something like a tag cloud.
------------------------------
Message: 23
Date: Wed, 24 Nov 2010 19:15:17 -0800
From: Richard Lawrence <richard.lawrence@berkeley.edu>
Subject: [Orgmode] Re: Generate list of all tags in use?
To: emacs-orgmode@gnu.org
Message-ID: <87d3put7p6.fsf@berkeley.edu>
Content-Type: text/plain; charset=us-ascii
Hi Uriel,
> Is there a way to generate a list of all tags in use in all agenda files?
> I'm thinking of something like a tag cloud.
Would org-get-buffer-tags help you out?
Richard
------------------------------
Message: 24
Date: Thu, 25 Nov 2010 08:00:25 +0000
From: Eric S Fraga <ucecesf@ucl.ac.uk>
Subject: Re: [Orgmode] Awesome! Date-tree from agenda!
To: Nathan Neff <nathan.neff@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Message-ID: <874ob57qoy.fsf@pinto.chemeng.ucl.ac.uk>
Content-Type: text/plain; charset=us-ascii
Nathan Neff <nathan.neff@gmail.com> writes:
> I've been looking for a way to do quick "journal" entries
> for /past/ dates, and was disappointed that the Journal
> capture template always used the current date.
>
> I found out you can go to a date in the agenda, and press "k c", which
> will cause any capture-template to use the date in the agenda, not today's
date.
> This will use the agenda's date when putting journal entries into a
> file like this:
Thanks for this. I have always been a little frustrated by the
limitation you mention above (but obviously not frustrated enough to do
anything about it). using the agenda view to accomplish this is
perfectly fine!
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.130.g9cc1)
------------------------------
Message: 25
Date: Thu, 25 Nov 2010 09:41:23 +0100
From: S?bastien Vauban <wxhgmqzgwmuf@spammotel.com>
Subject: [Orgmode] Agenda with CLOCK items over more than one day
To: emacs-orgmode@gnu.org
Message-ID: <8039qpkd70.fsf@missioncriticalit.com>
Content-Type: text/plain; charset=utf-8
Hi,
* Abstract
A clocked item that spans over 2 days is displayed in *only one day*'s
agenda
view.
* Example
2010-11-24 Wed
_________________________________________________________________
8:00-09:00 ________
Work: 9:20-10:12 Clocked: (0:52) Email and News
:work:
10:00-11:00 ________
Client: 10:12-12:32 Clocked: (2:20) Did this
12:00-13:00 ________
Work: 13:32- 9:35 Clocked: (20:03) Organization
:work:
14:00-15:00 ________
16:00-17:00 ________
18:00-19:00 ________
20:00-21:00 ________
22:00-23:00 ________
2010-11-25 Thu
_________________________________________________________________
8:00-09:00 ________
Work: 9:35-10:35 Clocked: (-) Email and News
:work:
10:00-11:00 ________
12:00-13:00 ________
14:00-15:00 ________
16:00-17:00 ________
18:00-19:00 ________
20:00-21:00 ________
22:00-23:00 ________
* Question
Shouldn't we see the task in the first day, from its beginning time up to
24:00, and in the second day, from 00:00 up to its end time?
Best regards,
Seb
--
SC)bastien Vauban
------------------------------
Message: 26
Date: Thu, 25 Nov 2010 10:02:18 +0000 (UTC)
From: Herbert Sitz <hesitz@gmail.com>
Subject: [Orgmode] Update on Org-mode clone in Vim
To: emacs-orgmode@gnu.org
Message-ID: <loom.20101125T105418-785@post.gmane.org>
Content-Type: text/plain; charset=us-ascii
Just wanted to update anybody interested that I'm still making progress on
my
Vim org-mode clone. Agenda view and flexible agenda searches on dates,
todos,
and tags all work pretty well now. I've got basic clocking and clock table
generation done, and some other things. All is available at github:
https://github.com/hsitz/VimOrganizer
Another video on very basic date spec and agenda viewing stuff is here:
http://vimeo.com/17182850
I have a list of videos I want to get done in short order on:
(1) specifying tags and tag editing and searching
(2) specifying todos and editing todos and searching
(3) agenda searches on dates, tags, todos, their combinations, other
properties,
etc.
(4) clocking in and out and clock tables
All this stuff is very similar to how Emacs Org-mode works, so the videos
won't
be too interesting to most of you. But I think they'll be quite helpful to
people coming from Vim, some of whom have never even heard of Org-mode (if
you
can imagine that).
Cheers,
Herb Sitz
------------------------------
Message: 27
Date: Thu, 25 Nov 2010 11:34:12 +0100
From: S?bastien Vauban <wxhgmqzgwmuf@spammotel.com>
Subject: [Orgmode] The way tags are exported in HTML (without colons!)
-- no workaround for searches!
To: emacs-orgmode@gnu.org
Message-ID: <80lj4hitej.fsf@missioncriticalit.com>
Content-Type: text/plain; charset=utf-8
#+TITLE: HTML export of tags
#+DATE: 2010-11-25
#+LANGUAGE: en_US
* Abstract
In HTML exports, one can wanna search on a tag name, via the Web browser's
simple =find= command (=Ctrl-F=).
In the Org file, such a simple search is easily done (let's say from Vim),
as
tags are delimited by colon markers. So, just search on ":tagname:".
In the HTML file, there is no such marker. That means, finding a tag can be
really tough.
* Example
Format of the source Org file:
#+begin_src org
** TODO Order a new book
:me:
In the meanwhile, give me something else to read than the AsciiDoc tutorial.
#+end_src
Searching the tag (string) "me" through the HTML output will be matched
4B times:
#+begin_src html
** TODO Order a new book me
^
In the meanwhile, give me something else to read than the AsciiDoc tutorial.
^ ^ ^
#+end_src
* Workaround?
Maybe adding a colon before and after the tag would help? CSS to the
rescue:
#+begin_src
.tag:before {
content: ":";
}
.tag:after {
content: ":";
}
#+end_src
Answer is: no! In the HTML display, we now do well see a ":me:", but
searches
on that same string fail to find it.
* Solution?
- Really add a colon marker in the exported file (to HTML)
- As well, clearly make a separation between the different tags, instead of
concatenating them as one big chunck, so that we could put a background
color that'd be cut between the consecutive tags:
+----+ +----+ +----+
|tag1| |tag2| |tag3|
+----+ +----+ +----+
Best regards,
Seb
--
SC)bastien Vauban
------------------------------
Message: 28
Date: Thu, 25 Nov 2010 10:14:45 -0300
From: OSiRiS <osiux@osiux.com.ar>
Subject: Re: [Orgmode] Update on Org-mode clone in Vim
To: emacs-orgmode@gnu.org
Message-ID: <20101125131445.GD5962@merlot.osiux.com.ar>
Content-Type: text/plain; charset="us-ascii"
On jue, 25 nov 2010, Herbert Sitz wrote:
> All this stuff is very similar to how Emacs Org-mode works, so the videos
won't
> be too interesting to most of you. But I think they'll be quite helpful
to
> people coming from Vim, some of whom have never even heard of Org-mode (if
you
> can imagine that).
Excelent!!
--
Osiris Alejandro Gomez (OSiUX) osiux@osiux.com.ar
E1B1 EB8E E37B 10B3 47E9 D73A 2C09 297C FFB9 4410
http://wiki.buenosaireslibre.org/NodoOsiux
http://osiux.com.ar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
Url :
http://lists.gnu.org/archive/html/emacs-orgmode/attachments/20101125/103008d
3/attachment.bin
------------------------------
Message: 29
Date: Thu, 25 Nov 2010 14:32:56 +0100
From: Julien Danjou <julien@danjou.info>
Subject: [Orgmode] [PATCH] Add org-agenda-todo-ignore-timestamp
To: emacs-orgmode@gnu.org
Cc: Julien Danjou <julien@danjou.info>
Message-ID: <1290691976-11203-1-git-send-email-julien@danjou.info>
* lisp/org-agenda.el: Add org-agenda-todo-ignore-timestamp.
(org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item):
Honor org-agenda-todo-ignore-timestamp.
* doc/org.texi: Mention org-agenda-todo-ignore-timestamp.
Signed-off-by: Julien Danjou <julien@danjou.info>
---
doc/org.texi | 8 ++++--
lisp/org-agenda.el | 57
+++++++++++++++++++++++++++++++++++++++++++++++++--
2 files changed, 59 insertions(+), 6 deletions(-)
diff --git a/doc/org.texi b/doc/org.texi
index f391e84..ed1c4bb 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -7117,13 +7117,15 @@ it more compact:
@item
@vindex org-agenda-todo-ignore-scheduled
@vindex org-agenda-todo-ignore-deadlines
+@vindex org-agenda-todo-ignore-timestamp
@vindex org-agenda-todo-ignore-with-date
Some people view a TODO item that has been @emph{scheduled} for execution
or
have a @emph{deadline} (@pxref{Timestamps}) as no longer @emph{open}.
Configure the variables @code{org-agenda-todo-ignore-scheduled},
-@code{org-agenda-todo-ignore-deadlines}, and/or
-@code{org-agenda-todo-ignore-with-date} to exclude such items from the
-global TODO list.
+@code{org-agenda-todo-ignore-deadlines},
+@code{org-agenda-todo-ignore-timestamp} and/or
+@code{org-agenda-todo-ignore-with-date} to exclude such items from the
global
+TODO list.
@item
@vindex org-agenda-todo-list-sublevels
TODO items may have sublevels to break up the task into subtasks. In
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index a248068..acdc1b2 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -562,6 +562,33 @@ See also the variable
`org-agenda-tags-todo-honor-ignore-options'."
:group 'org-agenda-todo-list
:type 'boolean)
+(defcustom org-agenda-todo-ignore-timestamp nil
+ "Non-nil means don't show entries with a timestamp.
+This applies when creating the global todo list.
+Valid values are:
+
+past Don't show entries for today or in the past.
+
+future Don't show entries with a timestamp in the future.
+ The idea behind this is that if it has a future
+ timestamp, you don't want to think about it until the
+ date.
+
+all Don't show any entries with a timestamp in the global todo list.
+ The idea behind this is that by setting a timestamp, you
+ have already \"taken care\" of this item.
+
+See also `org-agenda-todo-ignore-with-date'.
+See also the variable `org-agenda-tags-todo-honor-ignore-options' if you
want
+to make his option also apply to the tags-todo list."
+ :group 'org-agenda-skip
+ :group 'org-agenda-todo-list
+ :type '(choice
+ (const :tag "Ignore future timestamp todos" future)
+ (const :tag "Ignore past or present timestamp todos" past)
+ (const :tag "Ignore all timestamp todos" all)
+ (const :tag "Show timestamp todos" nil)))
+
(defcustom org-agenda-todo-ignore-scheduled nil
"Non-nil means, ignore some scheduled TODO items when making TODO list.
This applies when creating the global todo list.
@@ -632,7 +659,8 @@ to make his option also apply to the tags-todo list."
"Non-nil means honor todo-list ...ignore options also in tags-todo
search.
The variables
`org-agenda-todo-ignore-with-date',
- `org-agenda-todo-ignore-scheduled'
+ `org-agenda-todo-ignore-timestamp',
+ `org-agenda-todo-ignore-scheduled',
`org-agenda-todo-ignore-deadlines'
make the global TODO list skip entries that have time stamps of certain
kinds. If this option is set, the same options will also apply for the
@@ -4435,7 +4463,8 @@ the documentation of `org-diary'."
"Do we have a reason to ignore this TODO entry because it has a time
stamp?"
(when (or org-agenda-todo-ignore-with-date
org-agenda-todo-ignore-scheduled
- org-agenda-todo-ignore-deadlines)
+ org-agenda-todo-ignore-deadlines
+ org-agenda-todo-ignore-timestamp)
(setq end (or end (save-excursion (outline-next-heading) (point))))
(save-excursion
(or (and org-agenda-todo-ignore-with-date
@@ -4458,7 +4487,29 @@ the documentation of `org-diary'."
(> (org-days-to-time (match-string 1)) 0))
((eq org-agenda-todo-ignore-deadlines 'past)
(<= (org-days-to-time (match-string 1)) 0))
- (t (org-deadline-close (match-string 1)))))))))
+ (t (org-deadline-close (match-string 1)))))
+ (and org-agenda-todo-ignore-timestamp
+ (let ((buffer (current-buffer))
+ (regexp
+ (concat
+ org-scheduled-time-regexp "\\|" org-deadline-time-regexp))
+ (start (point)))
+ ;; Copy current buffer into a temporary one
+ (with-temp-buffer
+ (insert-buffer-substring buffer start end)
+ (goto-char (point-min))
+ ;; Delete SCHEDULED and DEADLINE items
+ (while (re-search-forward regexp end t)
+ (delete-region (match-beginning 0) (match-end 0)))
+ (goto-char (point-min))
+ ;; No search for timestamp left
+ (when (re-search-forward org-ts-regexp nil t)
+ (cond
+ ((eq org-agenda-todo-ignore-timestamp 'future)
+ (> (org-days-to-time (match-string 1)) 0))
+ ((eq org-agenda-todo-ignore-timestamp 'past)
+ (<= (org-days-to-time (match-string 1)) 0))
+ (t))))))))))
(defconst org-agenda-no-heading-message
"No heading for this item in buffer or region.")
--
1.7.2.3
------------------------------
Message: 30
Date: Thu, 25 Nov 2010 14:38:29 +0100
From: Rainer M Krug <r.m.krug@gmail.com>
Subject: [Orgmode] OT: Question concerning vc-working-revision in git
versus svn
To: emacs-orgmode <emacs-orgmode@gnu.org>
Message-ID: <4CEE66D5.2030909@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I migrated from svn to git, but I have one problem: in some documents, I
used
src_emacs-lisp[:exports results]{(vc-working-revision (or
(buffer-file-name) org-current-export-file))}
to insert the revision of the document. In svn, this resulted in a
number, through which I could identify the revision and retrieve it from
svn when needed in the future.
Under git, it simply tells me "master" - is there anything I can do to
get something similar then the revision number in svn, which I can use
to retrieve the version from git?
Thanks,
Rainer
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzuZtUACgkQoYgNqgF2egoa/ACfWnus5RHcIUq45FJns2xZI7mj
ixsAn2r+/vQaahvbcEex8s93iR9QcP47
=MmZf
-----END PGP SIGNATURE-----
------------------------------
Message: 31
Date: Thu, 25 Nov 2010 16:32:49 +0000 (UTC)
From: Dan <dandavison7@gmail.com>
Subject: [Orgmode] Re: [Babel] Handling of errors when using Ledger
To: emacs-orgmode@gnu.org
Message-ID: <loom.20101125T162526-124@post.gmane.org>
Content-Type: text/plain; charset=utf-8
Eric S Fraga <ucecesf <at> ucl.ac.uk> writes:
>
> On Tue, 12 Oct 2010 21:58:46 +0200, SC)bastien Vauban <wxhgmqzgwmuf <at>
spammotel.com> wrote:
> >
> > Hi Dan,
> >
> > Dan Davison wrote:
> > > SC)bastien Vauban writes:
> > > [...]
> > >> Let's imagine I thought (which was the case at some point) I needed
to
> > >> enclose the parameters between quotes:
> > >>
> > >> #+srcname: quoted-params
> > >> #+begin_src ledger :cmdline "reg unknown" :noweb yes :session
> > >> <<data>>
> > >> #+end_src
> > >>
> > >> #+results: quoted-params
> > >>
> > >> Nothing is returned. In fact, I would expect an error to be thrown
[...]
[...]
> > > Babel has a standard mechanism for evaluating shell commands and
displaying
> > > errors if any. It is the function `org-babel-eval' in ob-eval.el. The
> > > problem is that ob-ledger is not using this mechanism.
[...]
This patch should make ob-ledger use the common org-babel error mechanism.
It is
in branch ledger of the main repo. However, I'm not yet a ledger user. Could
someone test it?
Incidentally, can any gnus users tell me -- is there a non-painful way of
retrieving an old message from nntp in order to create a reply in the
correct
thread? Or do you hack the headers to make it appear in the right thread?
I'm
using the gmane web interface to send this.
Thanks,
Dan
----------------------------------------------------------
diff --git a/lisp/ob-ledger.el b/lisp/ob-ledger.el
index 33ec9d3..f06ea5d 100644
--- a/lisp/ob-ledger.el
+++ b/lisp/ob-ledger.el
@@ -43,24 +43,15 @@
'((:results . "output") (:cmdline . "bal"))
"Default arguments to use when evaluating a ledger source block.")
+(defvar org-babel-ledger-command "ledger"
+ "Command to invoke ledger")
+
(defun org-babel-execute:ledger (body params)
"Execute a block of Ledger entries with org-babel. This function is
called by `org-babel-execute-src-block'."
- (message "executing Ledger source code block")
- (let ((result-params (split-string (or (cdr (assoc :results params))
"")))
- (cmdline (cdr (assoc :cmdline params)))
- (in-file (org-babel-temp-file "ledger-"))
- (out-file (org-babel-temp-file "ledger-output-")))
- (with-temp-file in-file (insert body))
- (message (concat "ledger"
- " -f " (org-babel-process-file-name in-file)
- " " cmdline))
- (with-output-to-string
- (shell-command (concat "ledger"
- " -f " (org-babel-process-file-name in-file)
- " " cmdline
- " > " (org-babel-process-file-name out-file))))
- (with-temp-buffer (insert-file-contents out-file) (buffer-string))))
+ (org-babel-eval
+ (concat org-babel-ledger-command " " (cdr (assoc :cmdline params)))
+ body))
(defun org-babel-prep-session:ledger (session params)
(error "Ledger does not support sessions"))
----------------------------------------------------------
>
> Please do!! As the original author (basing my code on other babel
> codes, mind you), I am happy to lose this fight I really don't
> know enough babel to make the changes required quickly and I also am
> struggling with "free" time at the moment.
>
>
>
------------------------------
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
End of Emacs-orgmode Digest, Vol 57, Issue 33
*********************************************
----------------------------------------------------
This message has been processed by Firetrust Benign.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.872 / Virus Database: 271.1.1/3278 - Release Date: 11/25/10
02:34:00
^ permalink raw reply related [flat|nested] 5+ messages in thread