[O] Simple question re: use of conditional in cell formula

2014-02-20 Thread Subhan Tindall
Here's my clockreport setup:

'(org-agenda-clockreport-parameter-plist (quote (:link t :maxlevel 3
:formula $9=$2-$6;t::$8=$2-$5;t::$7=$2-$4;t :properties (\
Effort

portion of table output follows (as you can see my effort estimates are
sporadic, and vary in level

What I'd like to do, but can't seem to find the proper syntax for, is use a
conditional assignment so that
when there is no Effort value only a blank, or ***, or similar is in the
destination cell.
SImilarly, when there is no value in one of the time sub-columns the
corresponding cell is left blank

IE
instead of
|  |   0:15 | \_ DONE 2014-02-12 Wed email to david...  |
|   |  0:10 |   0.25 |   0.25 |   0.08 |
Id like to see:
|  |   0:15 | \_ DONE 2014-02-12 Wed email to david...  |
|   |  0:10 |  |  |   0.08 |
And instead of
|  || \__ Todos   |
|  0:45 |   |   0.00 |  -0.75 |   0.00 |
I'd like to see

|  || \__ Todos   |
|  0:45 |   |     | *   |     |

I have searched mightily and can't seem to find any syntax that will work
in my table.
Any ideas or help will be much appreciated!


And, while I'm on the topic, is there anyway way to get a column in the
clocktable to display the sum of all
Effort estimates for it's displayed subtrees?  IE like this:
|  | 0:45 | JWRK PPTDEV-389 VBA macros  |
30:55 |   |   | -30.92 |   0.00 |   0.00 |   this is sum of
the two efforts below
|  || \__ Notes   |
| 30:10 |   |   0.00 | -30.17 |   0.00 |
|  || \_ NOTES Directions to Estimate Redbox...   |
|   | 30:10 |   0.00 |   0.00 | -30.17 |
|  || \__ Todos   |
|  0:45 |   |   0.00 |  -0.75 |   0.00 |
|  |   0:15 | \_ DONE 2014-02-12 Wed email to david...  |
|   |  0:10 |   0.25 |   0.25 |   0.08 |
|  || \_ DONE 2014-02-12 Wed update...  |
|   |  0:25 |   0.00 |   0.00 |  -0.42 |
|  |   0:30 | \_ DONE 2014-02-12 Wed change...  |
|   |  0:10 |   0.50 |   0.50 |   0.33 |



| File | Effort | Headline|
   Time |   |   ||||
|--++-+-+---+---+++|
|  |ALL | *Total time*|
*38:28* |   |   | -38.47 |   0.00 |   0.00 |
|--++-+-+---+---+++|
| Work-log.org || *File time* |
*38:28* |   |   | -38.47 |   0.00 |   0.00 |
|  || RECURING PPTDEV-514 Miscellaneous   |
   3:12 |   |   |  -3.20 |   0.00 |   0.00 |
|  || \__ W07 email, morning  |
|  3:12 |   |   0.00 |  -3.20 |   0.00 |
|  || RECURING PPTDEV-513 smt 2014 Meetings   |
   2:38 |   |   |  -2.63 |   0.00 |   0.00 |
|  |   0:45 | \__ DONE 2014-02-18 Tue meeting w/Miriam  |
|  0:40 |   |   0.75 |   0.08 |   0.75 |
|  || \__ Standup |
|  1:12 |   |   0.00 |  -1.20 |   0.00 |
|  || \__ pers. meeting w/steve re:floats, time...|
|  0:46 |   |   0.00 |  -0.77 |   0.00 |
|  || JWRK PPTDEV-318 HVE Industry - Feed...  |
   1:43 |   |   |  -1.72 |   0.00 |   0.00 |
|  |0.5 | \__ SPEC redo spec with RDE |
|  0:42 |   |   0.00 |  -0.70 |   0.00 |
|  |   0:30 | \_ TODO setup coding evironment  review... |
|   |  0:42 |   0.50 |   0.50 |  -0.20 |
|  || \__ TODO Modify...  |
|  1:01 |   |   0.00 |  -1.02 |   0.00 |
|  |4.5 | \_ NOTES developement notes from Rob|
|   |  1:01 |   0.00 |   0.00 |  -1.02 |
|  || JWRK PPTDEV-389 VBA macros  |
  30:55 |   |   | -30.92 |   0.00 |   0.00 |
|  || \__ Notes   |
| 30:10 |   |   0.00 | -30.17 |   0.00 |
|  || \_ NOTES Directions to Estimate Redbox...   |
|   | 30:10 |   0.00 |   0.00 | -30.17 |
|  || \__ Todos   |
|  0:45 |   |   0.00 |  -0.75 |   0.00 |
|  |   0:15 | 

[O] How to get effort summary in clocktable in agenda?

2014-02-05 Thread Subhan Tindall
Hi, i've got an agenda report that includes a clocktable that looks like
this:
| File | Effort | ALLTAGS | Headline
  |   Time |
|--++-+--+|
|  | ALL| | *Total time*
  | *8:24* |
|--++-+--+|
| Work-log.org || | *File time*
 | *8:24* |
|  || :514:   | PPTDEV-514 Miscellaneous
  |   1:06 |
|  || :514:   | \__ W06 email, morning
  |   1:06 |
|  || :513:   | PPTDEV-513 smt 2014 Meetings
  |   0:17 |
|  || :513:   | \__ Standup
 |   0:17 |
|  || | PPTDEV-318 HVE Industry - Feed
runner... |   4:47 |
|  | 0:15   | | \__ SPEC redo spec with RDE
 |   1:39 |
|  || | \__ TODO Modify...
  |   3:08 |
|  || :389:   | JWRK PPTDEV-389 VBA macros
  |   2:14 |
|  || :389:   | \__ Notes
 |   2:14 |

What I'd really love to have is a column that shows the summarized Effort
estimate for the top level headings.
IE PPTDEV-318-HVE Industry has a time summary of 4:47 for the day, but only
shows the the effort
estimate for the individual subtasks that are displayed.  If I increase the
task level I can see more of the underlying structure, but not a summary.
Is there a variable I'm missing here to set up my column as a summary?
While I'm at it, is there an easy way to include a calculated column in the
clock table (either in the agenda or one generated in my org file) that
would show  Effort - time for a given headline?

Thanks!
Subhan


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] Possible Bug Report: org-agenda-show-inherited-tags

2014-01-22 Thread Subhan Tindall
This may simply be a functionality issue, but either way I'm looking for a
workaround.

With org-agenda-show-inherited-tags set to 'always,  headlines with an
inherited tag will match a tag search for agendas such as 'm'
However, the inherited tags themselves remain invisible in many agendas
(see below)
I would love to have a setting or command to add to my custom agendas to
force showing all inherited tags, for example in my daily agenda:
Day-agenda (W04):
Wednesday  22 January 2014
   8:00.. 
  Work-log:8:10- 8:53 Clocked:   (0:43) W04 email, morning
Should be an inherited tag here
  Work-log:8:53- 9:30 Clocked:   (0:37) WORK 2014-01-20 Mon
building user form for title lookups
  Work-log:9:30- 9:44 Clocked:   (0:14) DONE Meet w/Sandra.
Questions: - see instruction sheet
  Work-log:9:44-10:13 Clocked:   (0:29) DONE Meet w/Sandra.
Questions:
  10:00.. 
  Work-log:   10:00-10:14 Clocked:   (0:14) Standup
  Work-log:   10:14.. Clocked:   (-) WORK 2014-01-20 Mon
building user form for title lookups
  10:39.. now - - - - - - - - - - - - - - - - - - -
- - - - - -

I would love to have each line here include the tags inherited from the
parent headline/task
Thanks!


Example file:
* PPTDEV-514 Miscellaneous
 :514:
** W04 email, morning
   CLOCK: [2014-01-22 Wed 08:10]--[2014-01-22 Wed 08:53] =  0:43
*** TODO 2014-01-20 Mon did some work
CLOCK: [2014-01-20 Mon 09:39]--[2014-01-20 Mon 10:24] =  0:45

C-c a m 514
Headlines with TAGS match: 514
Press `C-u r' to search again with new search string
  tags-test:  PPTDEV-514 Miscellaneous
:514:
  tags-test:  W04 email, morning
 :514::
  tags-test:  TODO 2014-01-20 Mon did some work
:514::

As expected.

But:
C-c a t
Global list of TODO items of type: ALL
Available with `N r': (0)[ALL] (1)TODO (2)WORK (3)TEST (4)HOLD (5)DONE
(6)SPEC (7)JWRK (8)JRVW (9)JTST (10)JUSR
  (11)JDNE (12)LOG (13)NOTES
  tags-test:  TODO 2014-01-20 Mon did some work

No inherited tags are shown.  Even if filtered using / 514, the
appropriate entry shows up but does not reveal the inherited tag

Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


Re: [O] org-clock-report by hours

2014-01-12 Thread Subhan Tindall
Try adding this to your .emacs file:

 '(org-time-clocksum-format (quote (:hours %d :require-hours t :minutes
:%02d :require-minutes t)))

That should do it for you.
Subhan


On Sun, Jan 12, 2014 at 9:36 AM, Nikolay Kudryavtsev 
nikolay.kudryavt...@gmail.com wrote:

 Hello.

 Recently I've updated my org to a newer version and it by default uses
 days in clock reports.

 In the earlier version I had something like this:
 *Total time* | *28:40*

 Now I get this:
  *Total time* | *1d 4:40*

 How can I get the old behavior back? I've tried searching for a variable
 that controls this, but could not find it.

 --
 Best Regards,
 Nikolay Kudryavtsev





-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] A few configuration questions plus mode line not appearing in graphical frame

2014-01-06 Thread Subhan Tindall
Hi, I'm trying to tighten up my org setup for the new year.

I currently use a single file Work-log.org with headlines and subtrees for
tracking work  time:
IE:
(unfolded sub tree)

* JWRK PPTDEV-455 Add 'hve' to all Appropriate Library calls in
web_src/hve/scripts :455:
** WORK 2013-12-04 Wed code review, developer testing, prepare for install
   CLOCK: [2013-12-04 Wed 14:00]--[2013-12-04 Wed 15:00] =  1:00
** DONE 2013-12-02 Mon search archive for appropriate lib calls  add have
   CLOCK: [2013-12-04 Wed 13:10]--[2013-12-04 Wed 14:00] =  0:50
   CLOCK: [2013-12-03 Tue 09:15]--[2013-12-03 Tue 09:25] =  0:10
   CLOCK: [2013-12-02 Mon 15:29]--[2013-12-02 Mon 16:05] =  0:36
:PROPERTIES:


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] a few configuration questions plus an Effort question

2014-01-06 Thread Subhan Tindall
I'm trying to tighten up my org configuration for the new year.

I currently use a single file Work.org for tracking work, notes, and time
an a per-ticket basis
EG
* PPTDEV-511 Documentation
 :511:
** WORK investigate  document plog problem 1/3/14
   CLOCK: [2014-01-06 Mon 09:11]--[2014-01-06 Mon 09:12] =  0:01
   CLOCK: [2014-01-03 Fri 13:59]--[2014-01-03 Fri 14:35] =  0:36
   :PROPERTIES:
   :Effort:   1
   :END:
* JWRK PPTDEV-455 Add 'hve' to all Appropriate Library calls in
web_src/hve/scripts :455:
** WORK 2013-12-04 Wed code review, developer testing, prepare for install
   CLOCK: [2013-12-04 Wed 14:00]--[2013-12-04 Wed 15:00] =  1:00
** DONE 2013-12-02 Mon search archive for appropriate lib calls  add have
   CLOCK: [2013-12-04 Wed 13:10]--[2013-12-04 Wed 14:00] =  0:50
   CLOCK: [2013-12-03 Tue 09:15]--[2013-12-03 Tue 09:25] =  0:10
   CLOCK: [2013-12-02 Mon 15:29]--[2013-12-02 Mon 16:05] =  0:36

I have columns set up
#+COLUMNS: %58ITEM(Details) %TAGS(Context) %5TODO(ToDo) %6CLOCKSUM(Tot)
%6CLOCKSUM_T(Today) %10Effort(Est){:}

for the file.
When I run my daily agenda, I can get to column mode and see my various
effort times.  However,
I lose all my structure that tells me what headlines belong in which
subtrees. My column %TAGS shows empty for all but top-level tasks as the
tags are inherited, not explicitly set.

Is there a setting I should be using to make inherited tags appear here? I
haven't been able to find one.  Or, even better, a way to make the effort
estimates show up in the agenda clock table just like the time summaries?
Or even just a way to add an overlay either to the main file or the agenda
to show them?

Second, my currently clocking task info appears in the window titles with I
am in terminal mode, but not when I have a graphic window -
using gnome terminal and Ubuntu
emacs 23
Org 8

Thanks!



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


Re: [O] A few configuration questions plus mode line not appearing in graphical frame

2014-01-06 Thread Subhan Tindall
Fat fingers and/or lack of coffee was the problem, sent it out to early!
Sorry.


On Mon, Jan 6, 2014 at 9:24 AM, Bastien b...@gnu.org wrote:

 I think you forgot to tell us what the problem is :)

 --
  Bastien




-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] How to export all content of a sparse tree to a separate buffer/file?

2013-12-02 Thread Subhan Tindall
I'm looking for a relatively straightforward way to export content from one
org file to a separate org file or org-mode buffer.

I've got the org exporter bit working

I can create the sparse tree based on a given tag with no problem.
But, when I export it using 'visible only'
what I get is headlines only.
There are a fair number of headlines with content below the headline like
this:
** NOTES
a whole buch of stuff
here that I would like to export as well

as well as a lot of clocking information.

Any ideas?

Example process
C-c / tag  - create sparse tree
C-c C-e -bring up dispatcher
C-v -export visible only, if I don't do this I get the whole file, not the
sparse tree
O O -export to org buffer

Thanks!
Subhan


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] Search to show only trees with no recent clock entries

2013-12-02 Thread Subhan Tindall
Looking for a search to show only first-level trees that meet the following
criteria:

all clock entries under the heading are older than a given date (IE 2 weeks
ago)
clock entries may be under several different sub-headings, at levels
ranging from * to 

ONLY level-1 entries meeting this criteria should be returned.

I'm at a bit of a loss.

Thanks!
Subhan


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] Want to copy a sparse tree to a buffer

2013-10-24 Thread Subhan Tindall
Hi, I'm looking for a way to effectively copy a sparse tree to another
buffer.
I'm restructuring some files, and what I have is a large datetree, with sub
trees one per day tagged by external ticket number

** 2013-09 September
*** 2013-09-03 Tuesday
 PPTDEV-300 tswap
:300:
* LOG 2013-09-03 Tue toci updates
  CLOCK: [2013-09-03 Tue 14:03]--[2013-09-03 Tue 17:13] =  3:10
  CLOCK: [2013-09-03 Tue 10:40]--[2013-09-03 Tue 14:03] =  3:23
  might be some notes here too
* TODO do this thing
* NOTES workingnotes
 PPTDEV-59 Misc
 :59:
* LOG 2013-09-03 Tue email, morning
  CLOCK: [2013-09-03 Tue 08:44]--[2013-09-03 Tue 09:29] =  0:45
..

What I need to do is grab all subtrees matching e.g. 300  copy them into
one contiguous block in
another file.

I can generate a sparse tree for the tag, but it only displays the
headlines and so org-copy-visible fails
to copy the clock lines, or any other next not included in the headline

Any ideas for a simple way to do this?

Thanks,
Subhan


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] patch for support of oracle/sqlplus - please review

2013-10-09 Thread Subhan Tindall
This patch adds support for oracle databases in code blocks using sqlplus.
Strictly speaking all that is necessary is the addition of the .sql
extension to in-file-name, however I also included header line
specification of dbuser, dbpassword, and dbhost


diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
index 658a54f..5208a20 100644
--- a/lisp/ob-sql.el
+++ b/lisp/ob-sql.el
@@ -53,6 +53,12 @@
 ;; - support for more engines (currently only supports mysql)
 ;; - what's a reasonable way to drop table data into SQL?
 ;;
+;; CHANGES:
+;;
+;; - smt 10/8/13
+;; - added support for oracle using sqlplus. Included header args
+;; -- dbuser, dbpassword, dbhost.  Added
+;; - added .sql extension to in-file-name for oracle support

 ;;; Code:
 (require 'ob)
@@ -98,7 +104,7 @@ This function is called by
`org-babel-execute-src-block'.
  (database (cdr (assoc :database params)))
  (engine (cdr (assoc :engine params)))
  (colnames-p (not (equal no (cdr (assoc :colnames params)
- (in-file (org-babel-temp-file sql-in-))
+ (in-file (org-babel-temp-file sql-in- .sql))
  (out-file (or (cdr (assoc :out-file params))
(org-babel-temp-file sql-out-)))
 (header-delim )
@@ -127,6 +133,30 @@ This function is called by
`org-babel-execute-src-block'.
(org-babel-process-file-name in-file)
(org-babel-process-file-name out-file)
(or cmdline )))
+('oracle (format
+  sqlplus -s %s
+ (cond ( (and dbuser dbhost dbpassword)
+ (format %s/%s@%s @%s  %s
+ dbuser dbpassword dbhost
+ (org-babel-process-file-name
in-file)
+ (org-babel-process-file-name
out-file)
+ )
+ ) ;; user specified dbuser,
dbpassword,  dbhost
+   ( (or dbuser dbhost dbpassword)
+ (error (format Must specify
dbuser/dbpassword@dbhost, missing %s %s %s
+(if dbuser 
:dbuser)
+(if dbpassword 
:dbpassword)
+(if dbhost 
:dbhost)
+)
+  )
+ ) ;; if one specified, they all must
be
+   ( t
+ (format %s @%s  %s
+ (or cmdline )
+ (org-babel-process-file-name
in-file)
+ (org-babel-process-file-name
out-file)
+ )
+ 
 (t (error No support for the %s SQL engine
engine)
 (with-temp-file in-file
   (insert


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] Finding LAST copy of a given headline in a file

2013-07-25 Thread Subhan Tindall
So I've been working on this issue,  still don't have it quite worked out
like I would want.  What I would like to do is either)
Have template that inserts itself under the LAST entry in the target file
for a given headline
OR
composes the right strings to use file+olp to find the specific headline
under the current date's date-tree heading.
For example, I have a date tree with  Ticket X under each of several
days, including today's date.
I want to insert an entry * What I did today   with some additional
information under  Ticket X for today.

*  2013
** 2013-07-25
*** 2013-07-24 Wednesday
 Ticket X
* LOG ticket X stuff for Wednesday
*** 2013-07-25 Thursday
 Ticket X
* LOG ticket X stuff
 Ticket Y
** Log ticket y stuff

Any pointers?

-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


Re: [O] Finding LAST copy of a given headline in a file

2013-07-25 Thread Subhan Tindall
Yes, you are correct, file+datetree does not do this.  A while ago I
suggested a file+datetree+headline type function be added, but it was not
received well.
I attempted a function for use with file+function, but couldn't get it
quite working.
I'm not quite sure how to use org-map-entries to find headlines?
Thanks!
Subhan



On Thu, Jul 25, 2013 at 3:51 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote:

 Hello Subhan,

 On Thu, Jul 25, 2013 at 03:29:10PM -0700, Subhan Tindall wrote:
  Have template that inserts itself under the LAST entry in the target file
  for a given headline

 What problem do you have with the above?  Can you give us a minimal
 example?

  composes the right strings to use file+olp to find the specific headline
  under the current date's date-tree heading.
  For example, I have a date tree with  Ticket X under each of several
  days, including today's date.
  I want to insert an entry * What I did today   with some additional
  information under  Ticket X for today.
 
  *  2013
  ** 2013-07-25
  *** 2013-07-24 Wednesday
   Ticket X
  * LOG ticket X stuff for Wednesday
  *** 2013-07-25 Thursday
   Ticket X
  * LOG ticket X stuff
   Ticket Y
  ** Log ticket y stuff

 Date trees can be tricky.  As far as I understand, you want to add a
 subheading to entries for a day.  I do not think file+datetree can do
 that.  I would recommend you try file+function instead.  It should be
 easy to implement.  You could use org-map-entries to find the headline
 in your headline finding function.

 Hope this helps,

 --
 Suvayu

 Open source is the future. It sets us free.




-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] Where to report bugs, submit patches? (babel)

2013-06-25 Thread Subhan Tindall
Where is the appropriate place to submit bug reports and/or patches for org
mode, especially babel and code block execution errors?
Thanks!
Subhan


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


Re: [O] Possible bug report - error with time string recognition in clocktable

2013-05-09 Thread Subhan Tindall
More info:
This appears to be failing in org-parse-time-string, when it compares the
string now to org-ts-regexp0
Nothing in the regexp nor in the call tree is attempting to process the
special time values.

It seems like there is missing code needed either in org-parse-time-string
to handle the special strings, or in the clock-updater code to convert the
special time strings to actual times before passing them on.

Is there somewhere else I should be submitting this bug?






On Wed, May 8, 2013 at 4:47 PM, Subhan Tindall 
subhan.tind...@rentrakmail.com wrote:

 The following clocktable line:
 #+BEGIN: clocktable :tstart -7d :tend now

 #+END:

 errors out on the tstart  tend times
 According to all the documentation I can find, these are both valid
 'special' time strings.
 Attempts to evaluate the clocktable with C-c C-c give the error:

 Updating dynamic block `clocktable' at line 57...
 org-parse-time-string: Not a standard Org-mode time string: -7d

 however this:
 #+BEGIN: clocktable :tstart 2013-05-08 Wed :tend 2013-05-09 Thu
 #+END:

 works just fine


 --
 Subhan Michael Tindall | Software Developer
 | s...@rentrakmail.com
 RENTRAK | www.rentrak.com | NASDAQ: RENT




-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] Possible bug report - error with time string recognition in clocktable

2013-05-08 Thread Subhan Tindall
The following clocktable line:
#+BEGIN: clocktable :tstart -7d :tend now

#+END:

errors out on the tstart  tend times
According to all the documentation I can find, these are both valid
'special' time strings.
Attempts to evaluate the clocktable with C-c C-c give the error:

Updating dynamic block `clocktable' at line 57...
org-parse-time-string: Not a standard Org-mode time string: -7d

however this:
#+BEGIN: clocktable :tstart 2013-05-08 Wed :tend 2013-05-09 Thu
#+END:

works just fine


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] clocktable for 15-day period, + use as input to source block

2013-04-30 Thread Subhan Tindall
Hi, I'm looking for a way to produce a clock-table covering entries in a
datetree buffer for a 15-day period (well, actually from 1st-14th 
15th-28/30/31 of the month, but 15 days will do)

Also, is there a way to 'name' a clock-tree block so it's output can be
used as input to a source code block for some literate programming work?

TIA!
Subhan


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


Re: [O] OT: Android, external HW-keyboard and Emacs (was: Org-mode as a replacement for Google Reader)

2013-04-18 Thread Subhan Tindall
Android emacs has known problems segfaulting dependant on font size.  Try
starting with the smallest font  work your way up.
See:
https://github.com/zielmicha/emacs-android/issues/2
for further information  workarounds


On Tue, Apr 16, 2013 at 6:21 AM, Karl Voit devn...@karl-voit.at wrote:

 * Tom t...@goochesa.de wrote:
 
  Karl Voit devn...@karl-voit.at schrieb:
 
 I also tested a FreedomPro bluetooth keyboard with my XOOM tablet.
 Unfortunately, no Ctrl/ESC/Alt is working. So Android/Emacs is not
 usable without the Hacker's keyboard which is an on-screen
 keyboard that offers all those modifier keys. When the on-screen
 keyboard uses half of the tablet screen, it is no fun using Emacs
 at all.
 
  There is an app, External Keyboard Helper (Pro), that enables full
  usage of most bluetooth/usb keyboards. It is not without usability
  Problems, some would need a rooted phone to solve, but I'm happy
  with the setup so far. I mostly need it for connectbot sessions.

 Thank you *very* much for this pointer!

 Unfortunately, my Android Emacs segfaults now (can't test it) and
 while typing in a note taking app works quite fine, simple
 characters like «!» do not work in ConnectBot/vim :-(

 I have to invest some time in this tool. Probably I might be able to
 get it to work.

 --
 mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
 get Memacs from https://github.com/novoid/Memacs 

 https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on
 github





-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


Re: [O] need file+function help

2013-04-09 Thread Subhan Tindall
The ability I am looking forward here IS to find a location - it's just
that I need a little more detailed control.
For example, file+headline(or file+subheadline, or whatever) would find a
specific headline in a file,  inserts the entry under it, creating it if
it doesn't exist (IE * Notes)
file+datetree acts the same, but creates bits of a datetree to get to the
specific date.
What I want is (somewhat) of a combination of the two:
1) find/create the datetree to get today's date
2) under this subtree, find/create headline
3) insert the entry under this headline.
Ideally I'd like to grab a value using capture to specify the headline, but
from what I gather that's not going to happen.  Nonetheless, I can live
with specifying 1 template for each category headline I need:
For a simple example:
datetree+headline capture template for headline * Notes
inserts entry into
* 2013
** April
*** 2013-04-09 Tuesday
 PPT111 Dev Ticket for new functionality
* Log 2013-04-09 Worked on spec for this ticket
   CLOCK: [2013-04-09 Tue 08:40]

This simple extension would then give the ability to log in/out of the
PPT111 ticket, with notes on what was worked on, and a simple CLOCKTAB line
at the right level will bundle up all the time for a ticket in single
entries.

This functionality would also be useful for me as a student, with
sub-headlines for classes where I could add notes, todos, etc.


On Fri, Apr 5, 2013 at 4:09 PM, Bastien b...@altern.org wrote:

 Hi Subhan,

 Subhan Tindall subhan.tind...@rentrakmail.com writes:

  questions:
  1) are the values gathered by capture available to the function
  specified for file+function,  if so what are their names?

 No.

  2) what is the general template for a function for use with
  file+function, cleanup, return values, etc that would be expected?

 The function is expected to find a location where to put the new
 entry, not to return any specific value, and if it returns a value,
 the value is ignored.  It can also act on the subtree at the location
 it has found, but this is slightly abusing the feature I'd say.

  3) would it be better to extend datetree to datetree+headline for
  entries of this type? it seems like it a pretty usefully
  functionality to have (I can think of 2 or 3 instances i'd regularly
  use this just off the top of my head

 datetree+headline is improper, because a location in a datetree is
 a headline... so maybe your best chance is to use (function ...) or
 (file+function ...) and try to see if the function can interactively
 prompt for the values you want and edit the location as you want.
 But again, this goes beyond the purpose of function, which is to
 find to location.

 --
  Bastien




-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


[O] need file+function help

2013-04-04 Thread Subhan Tindall
There's really very little documentation about how this works, could use a
pointer to an example or two, or even a bit of help.

Here's my goal:
Using a capture temple of file+function to do the following: (basically
enhancing file+datetree)
user enters a bit of information (ticket ID, description, etc) using normal
capture template stuff (prompt for tags or prompt{enter ticket ID}
the ticket number is used as a parameter to file+function to:
a) find the current date in the tree
b) find or create a subtree based on the ticket ID
c) add an entry below this subtree with the ticket ID as a tag, and the
description as the headline, plus possible links to the file where capture
was initiated etc.
d) 'clock in' to the task (:clock-in property works great)

I have all of this working fine using file+datetree EXCEPT the subtree
create or add

questions:
1) are the values gathered by capture available to the function specified
for file+function,  if so what are their names?
2) what is the general template for a function for use with file+function,
cleanup, return values, etc that would be expected?
3) would it be better to extend datetree to datetree+headline for entries
of this type? it seems like it a pretty usefully functionality to have (I
can think of 2 or 3 instances i'd regularly use this just off the top of my
head
Thanks, all!
Subhan



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


Re: [O] looking for advice on where/how to store org realted files (attachments/images etc)

2013-04-04 Thread Subhan Tindall
I have a few different ways I organize my files:
1) I work a lot of tickets in specific source-code directories.  Each
directory has a .capture.org file in it w/capture templates for TODOs and
NOTES. These typically get archived with the ticket is finished
2) I also use emacs/org on my tablet for note-taking in class.  These org
files all go in a subdir off my Dropbox directory:  ~/Dropbox/ClassNotes
 with a classname-date naming scheme
3) I also have a org directory off my home director (~/org) that holds all
my more general org files such as more general TODO  NOTES, my daily work
log file, and so forth.
But really, the big thing is that whatever order you use, that it work for
you.  Plus, it can always be changed later if it doesn't work quite right,
or needs expanded.
Subhan



On Thu, Apr 4, 2013 at 7:16 AM, Itai kloog ikl...@gmail.com wrote:

 Hi all

 After my first week or so with org im finally starting to switch to it
 full time. Im also in the process of migrating all my notebooks from all
 other apps. previous note apps ive used stored attachments/images inside
 the notes/databases. this made me wonder how i should approach this with
 org.

 I take alot of screenshots and attach alot of PDF's/ scrips to my notes.
 I would love to hear back from the community on how people organize these 
 realted org files. do they go to separate folder per org note file, IE
 having a research2000.org file and then a research2000 folder for all
 related files? is it better to just dump all files into one big repository
 for ALL org notes? are there better solution?

 thanks alot in advance

 z.





-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT


Re: [O] Agenda for 14 days, but still starting on Sat

2013-03-25 Thread Subhan Tindall
Try this:
 (z test ((agenda test ((org-agenda-start-on-weekday 6)
  (org-agenda-start-day 0)
  (org-agenda-span 14)


On Wed, Mar 20, 2013 at 4:39 PM, David An david64...@gmail.com wrote:
 In my progress of configuring Org-Mode, I set 'org-agenda-start-on-weekday'
 to 6 so my Agenda week will start on Saturday and show the next 7 days
 including whatever current day it may be.

 Next, I wanted 14 days (2 weeks) displayed, so I then set 'org-agenda-span'
 to 14.  However, the agenda started on the current day, not the Saturday of
 the current week.  For example, if today is Wednesday the 9th, the agenda
 would show 14 days starting with today, Wednesday the 9th...not this past
 Saturday the 5th and then showing 14 days from there.

 Is this normal?  How (if possible) can I get my 2 week agenda but starting
 on my current week's Saturday start-of-week?

 Thanks!



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] Help request - auto-fill/word wrap with headlines and tags

2013-03-18 Thread Subhan Tindall
Not quite - this wraps the headline visually, leaves any tags at the
end, and doesn't fold the additional lines, as it technically leaves
you with 1 long headline spanning multiple lines, not a 1-line
headline with a body of text following it

On Fri, Mar 15, 2013 at 2:12 PM, Bastien b...@altern.org wrote:
 Hi Subhan,

 Subhan Tindall subhan.tind...@rentrakmail.com writes:

 I haven't been able to find a combination of options to do this, any
 ideas?

 Did you try this?

 M-x visual-line-mode RET

 --
  Bastien



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



[O] Help request - auto-fill/word wrap with headlines and tags

2013-03-14 Thread Subhan Tindall
I haven't been able to find a combination of options to do this, any ideas?

I use org extensively for note-taking in my classes.  What I would
like is to have the following, preferably while typing allthough after
the fact would do:

* headline one is a short one :tag1:tag2:
* headline two is the next section, and is quite a bit longer :tag2:
  then the one before it, and wraps around into a full paragraph
** sub headline two is also pretty long, and instead of:tag2:
   continuing on into a very long headline it also wraps, and
   indents to match the headline level

Where things flow like this: (-- indicates a progression of typing on
the same line )

*
--
* :tag1:tag2:
---
* some text, this pushes tags out :tag1:tag2:
---
* some text, this pushes tags out. as I add more text :tag1:tag2:
--
 *  eventually things reach the fill column (text +tags),  and the
:tag1:tag2:fill col
text wraps around leaving the tags hanging out with the headline

-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] Org-mobile for Android and syncing

2013-03-14 Thread Subhan Tindall
Org mobile is currently unavailable in the Android market, with no
scheduled return time.

On Thu, Mar 14, 2013 at 3:05 PM, Charles Philip Chan cpc...@bell.net wrote:
 Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 Hi Marcin:

 I'm about to buy an Android smartphone.  Of course, I want to use
 Org-mobile.  However, I don't use Dropbox (I use another, similar
 service, called SpiderOak).  Is it possible to synchronize using such a
 service?

 No currently Mobileorg does not support SpiderOak. Here is a list of
 supported methods:

   - Sync files from sdcard
   - Sync files from a WebDAV server
   - Sync files from Dropbox
   - Sync files from Ubuntu One
   - Sync files from an SSH server

 Charles

 --
 Oh, I've seen copies [of Linux Journal] around the terminal room at The
 Labs.
 (By Dennis Ritchie)



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] pxref in texinfo export

2013-02-25 Thread Subhan Tindall
There are 4 different ref commands, all with slightly syntactic
requirements and outputs when compiled using makeinfo.  I for one use
@pxref{} a lot, and it has different requirements for placement than
@ref or @xref (namely those two MUST have a . or , following the end
of the ref)
8.1 Different Cross Reference Commands
There are four different cross reference commands:
@xref Used to start a sentence in the printed manual saying ‘See . . .
’ or an Info
 cross-reference saying ‘*Note name : node.’.
@ref Used within or, more often, at the end of a sentence; same as
@xref for Info;
produces just the reference in the printed manual without a preceding ‘See’.
@pxref Used within parentheses to make a reference that suits both an
Info file and a
printed book. Starts with a lower case ‘see’ within the
printed manual. (‘p’ is
   for ‘parenthesis’.)
@inforef Used to make a reference to an Info file for which there is
no printed manual.

(from the Texinfo manual)

On Mon, Feb 25, 2013 at 10:32 AM, Jonathan Leech-Pepin
jonathan.leechpe...@gmail.com wrote:
 Hello Tom,

 On 25 February 2013 12:52, Thomas S. Dye t...@tsdye.com wrote:

 Aloha all,

 IIUC, there is currently no support for @pxref{} in the texinfo
 exporter.  This is a texinfo @-command that does one thing in the info
 output and another in the LaTeX output.


 Ultimately there is actually no real difference between see @ref{}
 and @pxref{}.  I just checked using the first @pxref{} in org.texi
 (Under Activation).

 In org.texi it is shown as (@pxref{Conflicts}), in org.html it
 becomes: (see a href=#ConflictsConflicts/a) while in the info
 file (org) it is shown as (*note Conflicts::).

 Opening the info file in Info (C-u C-h i path to info file), *node
 Conflicts:: becomes see Conflicts.  Adding see manually
 before *note does not change the output.  The same is the case for
 @xref{}.  @xref{} adds See before the link in html/LaTeX, and
 uses *Note in the info document; See [[link]] produces the same See in
 html/LaTeX, and creates See *note in the info file (which is
 inserted as See link in Emacs Info.

 Yes the output is different if looking at the info file directly,
 however when viewing it withing Emacs the text is consistent.

 I didn't implement support for @xref{} or @pxref{} in the texinfo
 exporter, because I could not find a way to reliably determine the
 context so as to use the right type of link in the texi file.

 Using occur there were already 47 cases in org.texi where [Ss]ee
 @ref was used rather than the stylistically appropriate @pxref/@xref.

 Regards,

 Jon


 My idea is to create a custom link type, something like this:

 (org-add-link-type
pxref nil
(lambda (path desc format)
  (cond
   ((eq format 'html)
(format span class=\pxref\%s/span path))
   ((eq format 'latex)
(format \\ref{%s} path))
   ((eq format 'texinfo)
(format @pxref{%s,%s} path desc)

 I haven't tested this, but it should export approximately correctly and
 I'm confident I can get the export part working.

 What I can't figure out is how to have Org recognize that a link like
 this:

 [[pxref:Internal link]]

 is really an internal link, rather than an external link.  I'd like to
 be able to click on this and end up at Internal link in the Org
 buffer.

 Is this possible?  If so, can you point me to a solution?


 All the best,
 Tom

 --
 T.S. Dye  Colleagues, Archaeologists
 735 Bishop St, Suite 315, Honolulu, HI 96813
 Tel: 808-529-0866, Fax: 808-529-0884
 http://www.tsdye.com





-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] pxref in texinfo export

2013-02-25 Thread Subhan Tindall
The point being that compiling .texinfo source into an Info file
treats references differently. For example:
(@pxref{my_node_name}).  will compile just fine.
(@ref{my_node_name}). will not.  There are also differences in case
(see v. See, note v. Note), and differences in output by ref type
depending on target output of file (info, DVI, HTML,...). For example,
@pxref generates different punctuation for typeset v. info files, @ref
does not generate a 'See ' in printed material while @xref does, etc.

Although the differences are subtle, they really are not equivalent
and should not be treated as such.

On Mon, Feb 25, 2013 at 10:48 AM, Jonathan Leech-Pepin
jonathan.leechpe...@gmail.com wrote:
 Hello,

 On 25 February 2013 13:40, Subhan Tindall subhan.tind...@rentrakmail.com
 wrote:

 There are 4 different ref commands, all with slightly syntactic
 requirements and outputs when compiled using makeinfo.  I for one use
 @pxref{} a lot, and it has different requirements for placement than
 @ref or @xref (namely those two MUST have a . or , following the end
 of the ref)


 Not entirely true, @ref{} will add a period after the end of the reference
 in the info output
 if no period or comma present, @xref{} needs a comma or period.  @pxref{}
 can be
 followed by a period, comma or right parenthesis, otherwise the info output
 will include
 a period as well.

 So all three must have some sort of punctuation (or paren) following them to
 ensure that
 the references are clearly delimited.

 Regards,


 8.1 Different Cross Reference Commands
 There are four different cross reference commands:
 @xref Used to start a sentence in the printed manual saying ‘See . . .
 ’ or an Info
  cross-reference saying ‘*Note name : node.’.
 @ref Used within or, more often, at the end of a sentence; same as
 @xref for Info;
 produces just the reference in the printed manual without a preceding
 ‘See’.
 @pxref Used within parentheses to make a reference that suits both an
 Info file and a
 printed book. Starts with a lower case ‘see’ within the
 printed manual. (‘p’ is
for ‘parenthesis’.)
 @inforef Used to make a reference to an Info file for which there is
 no printed manual.

 (from the Texinfo manual)

 On Mon, Feb 25, 2013 at 10:32 AM, Jonathan Leech-Pepin
 jonathan.leechpe...@gmail.com wrote:
  Hello Tom,
 
  On 25 February 2013 12:52, Thomas S. Dye t...@tsdye.com wrote:
 
  Aloha all,
 
  IIUC, there is currently no support for @pxref{} in the texinfo
  exporter.  This is a texinfo @-command that does one thing in the info
  output and another in the LaTeX output.
 
 
  Ultimately there is actually no real difference between see @ref{}
  and @pxref{}.  I just checked using the first @pxref{} in org.texi
  (Under Activation).
 
  In org.texi it is shown as (@pxref{Conflicts}), in org.html it
  becomes: (see a href=#ConflictsConflicts/a) while in the info
  file (org) it is shown as (*note Conflicts::).
 
  Opening the info file in Info (C-u C-h i path to info file), *node
  Conflicts:: becomes see Conflicts.  Adding see manually
  before *note does not change the output.  The same is the case for
  @xref{}.  @xref{} adds See before the link in html/LaTeX, and
  uses *Note in the info document; See [[link]] produces the same See in
  html/LaTeX, and creates See *note in the info file (which is
  inserted as See link in Emacs Info.
 
  Yes the output is different if looking at the info file directly,
  however when viewing it withing Emacs the text is consistent.
 
  I didn't implement support for @xref{} or @pxref{} in the texinfo
  exporter, because I could not find a way to reliably determine the
  context so as to use the right type of link in the texi file.
 
  Using occur there were already 47 cases in org.texi where [Ss]ee
  @ref was used rather than the stylistically appropriate @pxref/@xref.
 
  Regards,
 
  Jon
 
 
  My idea is to create a custom link type, something like this:
 
  (org-add-link-type
 pxref nil
 (lambda (path desc format)
   (cond
((eq format 'html)
 (format span class=\pxref\%s/span path))
((eq format 'latex)
 (format \\ref{%s} path))
((eq format 'texinfo)
 (format @pxref{%s,%s} path desc)
 
  I haven't tested this, but it should export approximately correctly and
  I'm confident I can get the export part working.
 
  What I can't figure out is how to have Org recognize that a link like
  this:
 
  [[pxref:Internal link]]
 
  is really an internal link, rather than an external link.  I'd like to
  be able to click on this and end up at Internal link in the Org
  buffer.
 
  Is this possible?  If so, can you point me to a solution?
 
 
  All the best,
  Tom
 
  --
  T.S. Dye  Colleagues, Archaeologists
  735 Bishop St, Suite 315, Honolulu, HI 96813
  Tel: 808-529-0866, Fax: 808-529-0884
  http://www.tsdye.com
 
 



 --
 Subhan Michael Tindall | Software Developer
 | s...@rentrakmail.com
 RENTRAK

Re: [O] pxref in texinfo export

2013-02-25 Thread Subhan Tindall
I noticed you left out @inforef, was that by design?  It actually does
behave quite differently than other members of the @*ref family, and
the more arguments it gets the more different it looks IE Here's an
example with a full 5 arguments:
REF *note Arg2: (Arg4)Lore Ipsum.
INFOREF *note Arg2: (Arg3)Lore Ipsum Arg4, Arg5




On Mon, Feb 25, 2013 at 12:29 PM, Jonathan Leech-Pepin
jonathan.leechpe...@gmail.com wrote:
 (Here are the attached files, forgot to add them)


 On 25 February 2013 15:24, Jonathan Leech-Pepin
 jonathan.leechpe...@gmail.com wrote:

 Hello,

 On 25 February 2013 14:01, Subhan Tindall subhan.tind...@rentrakmail.com
 wrote:

 The point being that compiling .texinfo source into an Info file
 treats references differently. For example:
 (@pxref{my_node_name}).  will compile just fine.
 (@ref{my_node_name}). will not.


 Both work perfectly fine for me.
 makeinfo (GNU texinfo) 5.0


 There are also differences in case
 (see v. See, note v. Note), and differences in output by ref type
 depending on target output of file (info, DVI, HTML,...). For example,
 @pxref generates different punctuation for typeset v. info files, @ref
 does not generate a 'See ' in printed material while @xref does, etc.

 Although the differences are subtle, they really are not equivalent
 and should not be treated as such.


 With a slight amount of work on the user's part, they can be made
 functionally equivalent on export.

 Using the two attached minimal .texi files (good-ref.texi is using
 @xref/@pxref as is preferred while ref.texi is using @ref with
 appropriate See/see added in the text) and disregarding filename
 differences (since they are noted in the info output) I get the
 following differences:

  makeinfo --html --no-split good-ref.texi ref.texi
 0 Diffs

  makeinfo --docbook --no-split good-ref.texi ref.texi
 Filename ID appears in diff

  makeinfo --xml --no-split good-ref.texi ref.texi
 Filename difference.

 Links are different since TexinfoML does still distinguish xref/pxref
 and ref in how they create the links.

  makeinfo --no-split good-ref.texi ref.texi

 The info file does show the expected differences between the two
 documents, notably that the @xref{} becomes *Note while the
 equivalent See @ref{} becomes See *note with @pxref{}-*note vs
 see @ref{} - see *note.

 However once they are viewed within the *info* buffer (C-u C-h i
 good-ref.info/ref-only.info) the lines in question are visually
 identical since *Note becomes See and *note becomes see if there
 is not already see present.

 I will not disagree that @ref, @pxref and @xref are subtly different,
 however with slight user intervention @ref can be used in the same
 above locations by simply replacing:

 @xref{}  - See @ref{}
 @pxref{} - see @ref{}

 I had to compare these possible outcomes when working on the texinfo
 exporter.  Since links are parsed before being included in their
 paragraphs, I did not have a way to obtain context and therefore
 attempt to guess (and be successful) at which type of reference was
 intended by a link in Org.  Restricting it to @ref{} in all cases,
 even if it added a slight burden to the user (4 additional characters
 to type in Org) if they wanted to emulate @xref or @pxref was in my
 opinion the best choice.

 Regards,

 --
 Jon

 [...]





-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] pxref in texinfo export

2013-02-25 Thread Subhan Tindall
I don't think there is a specific context that can clearly separate
them. The differences are largely semantic, not syntactic. What is
needed is some sort of marker on the tag in the original file telling
it what kind of link is to be used.



On Mon, Feb 25, 2013 at 1:38 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Jonathan Leech-Pepin jonathan.leechpe...@gmail.com writes:

 I had to compare these possible outcomes when working on the texinfo
 exporter.  Since links are parsed before being included in their
 paragraphs, I did not have a way to obtain context and therefore
 attempt to guess (and be successful) at which type of reference was
 intended by a link in Org.

 What kind of context would you need to know? The string that will be
 exported just before the current ref link?


 Regards,

 --
 Nicolas Goaziou



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] need: custom agenda for last 7 days

2013-02-21 Thread Subhan Tindall
Actually I think the behavior of agendas is somewhat broken in this
regard - a 6 day span shows 6 days, an 8 day span shows 8 days, a 7
day span shows a weekly agenda starting on Monday.  Silently
redefining the meaning of a variable like this depending on it's value
is pretty horrible.

But thanks to everybody for the tips, I think I can work out what I
want from here!
Subhan


On Thu, Feb 21, 2013 at 3:39 AM, Jeremy LeJyBy jbar...@dcc.uchile.cl wrote:
[SNIP]

 I tried (and failed) to find how to define a custom command in the agenda to
 this purpose, but the last function fulfilled my wish. An unexpected twist
 (which you might like) is that (org-agenda-list nil (- (org-today) 7) 7) 
 gives a
 7 day agenda starting Monday of last week, rather than 7 days ago.

 I hope it helps!

 Many thanks to all people involved in org-mode for their good work and 
 patience
 with the rowdy users!





-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



[O] need: custom agenda for last 7 days

2013-02-20 Thread Subhan Tindall
I have a question regarding a custom agenda report.  I've found the
variable org-agenda-span to set the number of days shown.  But, I
can't seem to some up with a way to make it start in the past.
IE I want to see all agenda items for today and the previous 6 days.
Also, can someone point me at a good tutorial for customized agendas
including all option variables  what they do? I can't seem to put my
fingers on one.
Thanks!
Subhan
'(org-agenda-custom-commands (quote ((w Weekly Logs agenda 
((org-agenda-span 8))


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



[O] Agenda export with E option (Org entry text lines)

2013-02-14 Thread Subhan Tindall
Working with an agenda file, off the rack daily agenda.
org-agenda-entry-text-maxlines = 5
All nodes are TODO nodes
When I hit E or v E, I see the first few lines of the node
When I export using C-x C-w, all I get in the export file is the
headlines, not the additional context
Even a highlight/cut/past only picks up the header lines.
How can I get export to match my agenda view more closely  include
the header lines as displayed?
Thanks!
Subhan



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] copy file from link into agenda

2013-02-01 Thread Subhan Tindall
Sorry, that , while cool, is not what I am looking for.
Following the instructions you game will show
org-agenda-entry-text-maxlines (default 5) lines
of the entry itself in the note file:
So, if this is then entry in the date tree in the Daily-work-log.org file:
 LOG 2013-01-31 Thu /home/stindall/.emacs
Lots of time helping tom w/test plan for xtn_invgen_BE.pl
some lines
some more lines

Running the agenda command initially shows this:
Daily-work-log.org: LOG/home/stindall/.emacs

Hitting E expands it to:
Daily-work-log.org: LOG/home/stindall/.emacs
Lots of time helping tom w/test plan for xtn_invgen_BE.pl
some lines
some more lines

What I'm looking for is a way to load the contents of
/home/stindall/.emacs into the agenda,
ideally producing something similar to this:
LOG  datestamp /home/stindall/.emacs
contents of .emacs file

LOG  datestamp some other file
contents of some other file

my elisp-fu is not strong, so I'm hoping that a workable approximation
of what I need already exists.

Subhan



On Wed, Jan 30, 2013 at 2:38 AM, Bastien b...@altern.org wrote:
 Hi Subhan,

 Subhan Tindall subhan.tind...@rentrakmail.com writes:

 Hi, I am trying to set up a class notes system using Org (based on my
 Nexus 7 w/BT Keyboard, but that's another story)
 I mostly have things they way I would like (I think), with each day's
 class notes as an org file, and a capture template to insert an entry
 into a date tree with some information + a link to the file name.
 This is all working great.
 What I would like is an agenda view that will pull the date tree
 entries matching a certain tag (IE class name) *AND* the linked file,
 and combine them into an agenda file
 For example,
 * 2013
 ** 2013-01 January
 *** 2013-01-21 Monday
  NOTE [2013-01-21 Mon 1410] :class1:
 filename.c
 *** 2013-01-28 Monday
  NOTE  [2013-01-28 Mon 14:51]:class1:
 filename.a
  NOTE  [2013-01-28 Mon 14:51]:class2:
 filename.9
 *** 2013-01-29 Tuesday
  NOTE  [2013-01-29 Mon 14:51]:class1:
 filename.b

 You can do this manually -- in your date-tree file:

 M-x org-agenda RET  a

 will produce the agenda view for this file.

 Then in this first agenda view, / TAB :class1: will
 filter out entries that don't have the :class1: tag.

 Then `E' will show the first lines of each entries,
 displaying the .c files.

 Of course, you can also build a custom agenda view
 which does all this -- see the manual and the tutorials
 on http://orgmode.org/worg/.

 HTH,

 --
  Bastien



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



[O] copy file from link into agenda

2013-01-28 Thread Subhan Tindall
Hi, I am trying to set up a class notes system using Org (based on my
Nexus 7 w/BT Keyboard, but that's another story)
I mostly have things they way I would like (I think), with each day's
class notes as an org file, and a capture template to insert an entry
into a date tree with some information + a link to the file name.
This is all working great.
What I would like is an agenda view that will pull the date tree
entries matching a certain tag (IE class name) *AND* the linked file,
and combine them into an agenda file
For example,
* 2013
** 2013-01 January
*** 2013-01-21 Monday
 NOTE [2013-01-21 Mon 1410] :class1:
filename.c
*** 2013-01-28 Monday
 NOTE  [2013-01-28 Mon 14:51]:class1:
filename.a
 NOTE  [2013-01-28 Mon 14:51]:class2:
filename.9
*** 2013-01-29 Tuesday
 NOTE  [2013-01-29 Mon 14:51]:class1:
filename.b

Would like to transform this to something like:
:class1:
2013-01-21 Monday
contents of filename.c

2013-01-28 Monday
contents of filename.a

2013-01-29 Tuesday
contents of filename.b

Any ideas?  I'm an avid org user in some ways but pretty new to agenda
file customization
Subhan


-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT