emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* automating incrementing of date stamps
@ 2012-11-12 18:46 Jude DaShiell
  2012-11-12 21:12 ` Michael Brand
  0 siblings, 1 reply; 5+ messages in thread
From: Jude DaShiell @ 2012-11-12 18:46 UTC (permalink / raw)
  To: emacs-orgmode

I have a table set up with the first column being a date column and I put 
a date stamp of <2012-11-10 Sat +1D> in for the first date.  I figure to 
use the table to log events not in any todo context.  Does some way exist 
when I tab into the next row of the table that <2012-11-11 Sun +1D> would 
appear in the first column automatically? and continue to do so for 
subsequent additions of rows in the table?  I'll probably need to put a 
vmean entry in for another column but I've got help from this list doing 
that before with another table.


--------------------------------------------------------------------------- 
jude <jdashiel@shellworld.net> Adobe fiend for failing to Flash

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

* Re: automating incrementing of date stamps
  2012-11-12 18:46 automating incrementing of date stamps Jude DaShiell
@ 2012-11-12 21:12 ` Michael Brand
  2012-11-12 23:10   ` Jude DaShiell
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Brand @ 2012-11-12 21:12 UTC (permalink / raw)
  To: Jude DaShiell; +Cc: Org Mode

Hi Jude

On Mon, Nov 12, 2012 at 7:46 PM, Jude DaShiell <jdashiel@shellworld.net> wrote:
> I have a table set up with the first column being a date column and I put
> a date stamp of <2012-11-10 Sat +1D> in for the first date.  I figure to
> use the table to log events not in any todo context.  Does some way exist
> when I tab into the next row of the table that <2012-11-11 Sun +1D> would
> appear in the first column automatically? and continue to do so for
> subsequent additions of rows in the table?  I'll probably need to put a
> vmean entry in for another column but I've got help from this list doing
> that before with another table.

S-<RET> (org-table-copy-down) on

| <2012-11-10 Sat> |

fills the cell below point with the next day:

| <2012-11-10 Sat> |
| <2012-11-11 Sun> |

For integers the increment is derived from the current cell and the
one above. For dates the increment is always one day.

Michael

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

* Re: automating incrementing of date stamps
  2012-11-12 21:12 ` Michael Brand
@ 2012-11-12 23:10   ` Jude DaShiell
  2012-11-13  6:27     ` Michael Brand
  0 siblings, 1 reply; 5+ messages in thread
From: Jude DaShiell @ 2012-11-12 23:10 UTC (permalink / raw)
  To: Michael Brand; +Cc: Org Mode

On Mon, 12 Nov 2012, Michael Brand wrote:

> Hi Jude
> 
> On Mon, Nov 12, 2012 at 7:46 PM, Jude DaShiell <jdashiel@shellworld.net> wrote:
> > I have a table set up with the first column being a date column and I put
> > a date stamp of <2012-11-10 Sat +1D> in for the first date.  I figure to
> > use the table to log events not in any todo context.  Does some way exist
> > when I tab into the next row of the table that <2012-11-11 Sun +1D> would
> > appear in the first column automatically? and continue to do so for
> > subsequent additions of rows in the table?  I'll probably need to put a
> > vmean entry in for another column but I've got help from this list doing
> > that before with another table.
> 
> S-<RET> (org-table-copy-down) on
> 
> | <2012-11-10 Sat> |
> 
> fills the cell below point with the next day:
> 
> | <2012-11-10 Sat> |
> | <2012-11-11 Sun> |
> 
> For integers the increment is derived from the current cell and the
> one above. For dates the increment is always one day.
> 
> Michael
> 
> 

---------------------------------------------------------------------------
jude <jdashiel@shellworld.net>
Adobe fiend for failing to Flash

if S-<ret> means hold the shift key down then hit return, in emacs 
org-mode 7.9.2 this key combination did not increment the date stamp.  
When I keyed in the date stamp, I did it by hand keying in all of the 
required characters myself since a couple of the dates are already in the 
past.  Could that have prevented proper date incrementing?  Could I get 
around this block by entering the first date stamp as <today -2d> and then 
trying shift-return from there on out to get the other needed dates in the 
log?

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

* Re: automating incrementing of date stamps
  2012-11-12 23:10   ` Jude DaShiell
@ 2012-11-13  6:27     ` Michael Brand
  2012-11-13  9:56       ` Alan Schmitt
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Brand @ 2012-11-13  6:27 UTC (permalink / raw)
  To: Jude DaShiell; +Cc: Org Mode

Hi Jude

On Tue, Nov 13, 2012 at 12:10 AM, Jude DaShiell <jdashiel@shellworld.net> wrote:
> On Mon, 12 Nov 2012, Michael Brand wrote:

> if S-<ret> means hold the shift key down then hit return,

Yes.

> in emacs
> org-mode 7.9.2 this key combination did not increment the date stamp.

What tells “C-h c S-<RET>” in that place? Also check the manual
section “3.1 The built-in table editor” about S-<RET> saying “This key
is also used by shift-selection and related modes (see Conflicts).” or
try emacs -Q.

> When I keyed in the date stamp, I did it by hand keying in all of the
> required characters myself since a couple of the dates are already in the
> past.  Could that have prevented proper date incrementing?

No, it doesn’t matter if you only type. But the powerful “C-c . [...]
RET” can be used also for dates in the past, replace “[...]” with
“12-9-8”, use shift with arrows, etc.

> Could I get
> around this block by entering the first date stamp as <today -2d> and then
> trying shift-return from there on out to get the other needed dates in the
> log?

Such relative dates are not supported in tables but you can use
“C-c . -2 RET” etc.

Michael

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

* Re: automating incrementing of date stamps
  2012-11-13  6:27     ` Michael Brand
@ 2012-11-13  9:56       ` Alan Schmitt
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Schmitt @ 2012-11-13  9:56 UTC (permalink / raw)
  To: Michael Brand; +Cc: Jude DaShiell, Org Mode

Michael Brand <michael.ch.brand@gmail.com> writes:

>> in emacs
>> org-mode 7.9.2 this key combination did not increment the date stamp.
>
> What tells “C-h c S-<RET>” in that place? Also check the manual
> section “3.1 The built-in table editor” about S-<RET> saying “This key
> is also used by shift-selection and related modes (see Conflicts).” or
> try emacs -Q.

I found out that the cursor position is important for this to work. For
instance it works if it is after the date.

Alan

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

end of thread, other threads:[~2012-11-13  9:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-12 18:46 automating incrementing of date stamps Jude DaShiell
2012-11-12 21:12 ` Michael Brand
2012-11-12 23:10   ` Jude DaShiell
2012-11-13  6:27     ` Michael Brand
2012-11-13  9:56       ` Alan Schmitt

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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